官术网_书友最值得收藏!

Using Bayesian analysis to solve a hit-and-run

In this case, we're going to be solving a hit-and-run. In a certain city, 95% of cabs are owned by the Yellow Cab Company, and 5% are owned by Green Cab, Inc. Recently, a cab was involved in a hit-and-run accident, injuring a pedestrian. A witness saw the accident and claimed that the cab that hit the pedestrian was a green cab. Tests by investigators revealed that, under similar circumstances, this witness is correctly able to identify a green cab 90% of the time and correctly identify a yellow cab 85% of the time. This means that they incorrectly call a yellow cab a green cab 15% of the time, and incorrectly call a green cab a yellow cab 10% of the time. So, the question is, should we pursue Green Cab, Inc.?

The following formula shows Bayes' theorem:

Here, H represents the event that a green cab hit the pedestrian, while G represents the event that the witness claims to have seen a green cab.

So, let's encode these probabilities, as follows:

Now that we have these probabilities, we can use Bayes' theorem to compute the posterior probability, which is given as follows:

So, the result is that the prior probability that the cab was actually green was 0.05, which was very low. The posterior probability, that is, the probability that the cab that hit the pedestrian was green, given that the witness said the cab was green, is now 32%, which is higher than that number, but it is still less than 50%.

Additionally, considering that this city consists only of yellow cabs and green cabs, this indicates that even though the witness saw a green cab or claimed to have seen a green cab, there are too few green cabs and the witness is not accurate enough to override how few green cabs there are. This means that it's still more likely that the pedestrian was hit by a yellow cab and that the witness made a mistake.

Now, let's take a look at some useful applications of Bayesian analysis. We will go through topics similar to those seen previously, but from the Bayesian perspective. 

主站蜘蛛池模板: 锡林浩特市| 甘肃省| 鹤峰县| 晋州市| 大名县| 什邡市| 来凤县| 乌海市| 巴中市| 海伦市| 蓬莱市| 大同市| 璧山县| 巴马| 红安县| 庄河市| 巴塘县| 迭部县| 大丰市| 乌恰县| 金坛市| 阳谷县| 江安县| 同仁县| 南通市| 江北区| 额济纳旗| 阿荣旗| 新巴尔虎左旗| 崇阳县| 永春县| 雷山县| 革吉县| 黔南| 洪洞县| 万盛区| 上饶市| 临海市| 高淳县| 宝应县| 镇平县|