Fun math problem...Bayesian

Started by Ace 6 replies 2,416 views Jump to latest

Ace
Ace
  • 43 posts
  • Threads: 6
Joined: Aug 15, 2013
August 1st, 2017 at 9:27:16 PM #1
A New York City cab was involved in a hit-and-run accident last night. Five witnesses reported the incident, four of whom said that the cab was green and one of whom said that the cab was yellow. Assume each witness correctly identifies the color of a cab with probability 2/3. It is known that 85% of registered cabs in New York City are yellow and 15% are green. Based on this information, what is the probability that the cab was green?
ChesterDog
ChesterDog
  • 1,858 posts
  • Threads: 9
Joined: Jul 26, 2010
August 1st, 2017 at 10:58:23 PM #2
Quote: Ace

...Based on this information, what is the probability that the cab was green?



only 58.54%.
Solve this equation for the first probability:
P(it was green if 4 say green, 1 says yellow) * P( 4 say green, 1 says yellow) = P(a taxi is green) * P ( 4 say green, 1 says yellow if the taxi is green)
ThatDonGuy
ThatDonGuy
  • 8,203 posts
  • Threads: 140
Joined: Jun 22, 2011
August 2nd, 2017 at 6:07:17 AM #3

There are two possibilities: either the cab was green, and 4 out of the 5 witnesses were correct, or the cab was yellow, and only 1 of the 5 was correct.

P(green) = 3 / 20 x 5 x (2 / 3)4 x 1 / 3 = (15 x 16) / (20x 243) = 240 / (20 x 243)

P(yellow) = 17 / 20 x 5 x (1 / 3)4 x 2 / 3 = (85 x 2) / (20 x 243) = 170 / (20 x 243)

P(green) / (P(green) + P(yellow)) = 240 / (240 + 170) = 24 / 41


In other words, what ChesterDog said.
Wizard
Wizard
  • 28,470 posts
  • Threads: 1550
Joined: Oct 14, 2009
August 2nd, 2017 at 6:21:23 AM #4

Classic Bayesian problem. I see a couple right answer above me so I'll be brief. Here is my answer:
0.15*5*(2/3)^4*(1/3)/(0.15*5*(2/3)^4*(1/3)+0.85*5*(2/3)^1*(1/3)^4) = 0.585365854
"No great mind has ever existed without a touch of madness." -- Aristotle
Ace
Ace
  • 43 posts
  • Threads: 6
Joined: Aug 15, 2013
August 2nd, 2017 at 8:02:22 AM #5
Right, right and right.
Romes
Romes
  • 5,646 posts
  • Threads: 29
Joined: Jul 22, 2014
August 2nd, 2017 at 8:48:28 AM #6
Since this is done and solved (multiple times over)... 4/5 witnesses said the cab was green. Thus, the cab was green or the people of NY desperately need a revamped educational system to work on their colors.
Playing it correctly means you've already won.
Ibeatyouraces
Ibeatyouraces
  • 11,933 posts
  • Threads: 68
Joined: Jan 12, 2010
August 2nd, 2017 at 8:51:22 AM #7
Quote: Romes

...or the people of NY desperately need a revamped educational system to work on their colors.


This....because the cab was clearly white! 😁
DUHHIIIIIIIII HEARD THAT!

Join the discussion

Log in or create a free account to reply to this thread.

  • Jump to: