Difference between revisions of "AP Statistics Curriculum 2007 Bayesian Normal"

From SOCR
Jump to: navigation, search
m (Text replacement - "{{translate|pageName=http://wiki.stat.ucla.edu/socr/" to ""{{translate|pageName=http://wiki.socr.umich.edu/")
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
''Normal Example:''
+
==[[EBook | Probability and Statistics Ebook]] - Normal Example==
  
It is known that the speedometer that comes with a certain new sports car is not very accurate, which results in an estimate of the top speed of the car of 185 mph, with a standard deviation of 10 mph.  Knowing that his car is capable of much higher speeds, the owner took the car to the shop. After a checkup, the speedometer was replaced with a better one, which gave a new estimate of 220 mph with a standard deviation of 4 mph. The errors are assumed to be normally distributed.
+
===Motivational example===
 +
It is known that the speedometer that comes with a certain new sports car is not very accurate, which results in an estimate of the top speed of the car of 185 mph, with a standard deviation of 10 mph.  Knowing that his car is capable of much higher speeds, the owner take the car to the shop. After a checkup, the speedometer is replaced with a better one, which gives a new estimate of 220 mph with a standard deviation of 4 mph. The errors are assumed to be normally distributed.
  
We can say that the owner '''S’s''' prior beliefs about the top speed of his car were represented by:
+
We can say that the owner '''S’s''' prior beliefs about the top speed of his car are represented by:
  
<div style="text-align: center;"> '''µ ~ N(<math>\mu_0</math>, <math>\phi_0</math>) = µ ~ N(185,<math>10^2</math>)''' </div>
+
: <math>\mu \sim N \mu_0</math>, <math>\phi_0</math>, i.e., <math>\mu \sim N(185,10^2)</math>
  
 
We could then say that the measurements using the new speedometer result in a measurement of:
 
We could then say that the measurements using the new speedometer result in a measurement of:
  
<div style="text-align: center;">''' x ~ N(<math>\mu</math>, <math>\phi</math>) = x ~ N(µ,<math> 4^2</math>)''' </div>
+
:<math>x \sim N(\mu, \phi)</math>, i.e., <math> x \sim N(\mu, 4^2)</math>
  
 
We note that the observation '''x''' turned out to be 210, and we see that '''S’s''' posterior beliefs about '''µ''' should be represented by:
 
We note that the observation '''x''' turned out to be 210, and we see that '''S’s''' posterior beliefs about '''µ''' should be represented by:
  
<div style="text-align: center;"> '''µ | x ~ N(<math>\mu_1</math>, <math>\phi_1</math>)''' </div>
+
:<math>\mu | x \sim N(\mu_1, \phi_1)</math>
  
 
where (rounded)
 
where (rounded)
  
<div style="text-align: center;"> '''<math>\phi_1</math> = <math>(10^{-2} + 4^{-2})^{-1}</math> = 14 = <math>4^2</math>''' </div>
+
:<math>\phi_1 = (10^{-2} + 4^{-2})^{-1} = 14 = 4^2</math>
  
<div style="text-align: center;"> '''<math>\mu_1</math> = <math>14(185/10^2 + 220/4^2) = 218</math>''' </div>
+
:<math>\mu_1 = 14(185/10^2 + 220/4^2) = 218</math>.
  
 
Therefore, the posterior for the top speed is:
 
Therefore, the posterior for the top speed is:
  
<div style="text-align: center;"> '''<math>\mu</math> | x ~ N(<math>218,4^2</math>)''' </div>
+
:<math>\mu | x \sim N(218,4^2)</math>. Meaning 218 +/- 4 mph.
  
Meaning 218 +/- 4 mph.
+
If the new speedometer measurements were considered by another person '''S’''' who had no knowledge of the readings from the first speedometer, but still had a vague idea (from knowledge of the stock speedometer) that the top speed was about 200 +/- 30 mph. Then:
  
If the new speedometer measurements were considered by another person '''S’''' who had no knowledge of the readings from the first speedometer, but still had a vague idea (from knowledge of the stock speedometer) that the top speed was about 200 +/- 30 mph,
+
:<math>\mu \sim N(200,30^2)</math>.
Then:
 
 
 
<div style="text-align: center;"> '''<math>\mu</math> ~ N(<math>200,30^2</math>)''' </div>
 
  
 
Then '''S’''' would have a posterior variance:
 
Then '''S’''' would have a posterior variance:
  
<div style="text-align: center;"> '''<math>\phi_1 = (30^{-2} + 4^{-2})^{-1} = 16 = 4^2</math>''' </div>
+
: <math>\phi_1 = (30^{-2} + 4^{-2})^{-1} = 16 = 4^2</math>.
  
 
'''S’''' would have a posterior mean of:
 
'''S’''' would have a posterior mean of:
  
<div style="text-align: center;"> '''<math>\mu_1 = 16(200/30^2 + 220/4^2) = 224</math>'''</div>
+
:<math>\mu_1 = 16(200/30^2 + 220/4^2) = 224</math>.
  
 
Therefore, the distribution of '''S’''' would be:
 
Therefore, the distribution of '''S’''' would be:
  
<div style="text-align: center;"> '''<math>\mu</math> | x ~ N<math>(224,4^2)</math>''' </div>
+
:<math>\mu | x \sim N(224,4^2)</math>. Meaning 224 +/- 4 mph.
  
Meaning 224 +/- 4 mph.
 
 
This calculation has been carried out assuming that the prior information we have is rather vague, and therefore the posterior is almost entirely determined by the data.
 
This calculation has been carried out assuming that the prior information we have is rather vague, and therefore the posterior is almost entirely determined by the data.
  
 
The situation is summarized as follows:
 
The situation is summarized as follows:
 +
<center>
 +
{| class="wikitable" style="text-align:center; width:25%" border="1"
 +
|-
 +
! Speed || Prior Distribution || Likelihood from Data || Posterior Distribution
 +
|-
 +
| S || <math>N(185 , 10^2)</math>  || || <math>N(218 , 4^2)</math>
 +
|-
 +
|-
 +
| || || <math>N(220 , 4^2)</math> ||
 +
|-
 +
| S’ || <math>N(200,30^2)</math>|| || <math>N(224,4^2)</math>
 +
|}
 +
</center>
  
+
==See also==
          '''Prior Distribution    Likelihood from Data    Posterior Distribution'''
+
* [[EBook#Chapter_III:_Probability |Probability Chapter]]
  
    '''S    N<math>(185 , 10^2)</math>                                  N<math>(218 , 4^2)</math>'''
+
==References==
  
                                    '''N<math>(220 , 4^2)</math>'''
+
<hr>
 +
* SOCR Home page: http://www.socr.ucla.edu
  
    ''' S’    N<math>(200 , 30^2)</math>         N<math>(224 , 4^2)</math>'''
+
"{{translate|pageName=http://wiki.socr.umich.edu/index.php?title=AP_Statistics_Curriculum_2007_Bayesian_Normal}}

Latest revision as of 13:10, 3 March 2020

Probability and Statistics Ebook - Normal Example

Motivational example

It is known that the speedometer that comes with a certain new sports car is not very accurate, which results in an estimate of the top speed of the car of 185 mph, with a standard deviation of 10 mph. Knowing that his car is capable of much higher speeds, the owner take the car to the shop. After a checkup, the speedometer is replaced with a better one, which gives a new estimate of 220 mph with a standard deviation of 4 mph. The errors are assumed to be normally distributed.

We can say that the owner S’s prior beliefs about the top speed of his car are represented by:

\[\mu \sim N \mu_0\], \(\phi_0\), i.e., \(\mu \sim N(185,10^2)\)

We could then say that the measurements using the new speedometer result in a measurement of:

\[x \sim N(\mu, \phi)\], i.e., \( x \sim N(\mu, 4^2)\)

We note that the observation x turned out to be 210, and we see that S’s posterior beliefs about µ should be represented by:

\[\mu | x \sim N(\mu_1, \phi_1)\]

where (rounded)

\[\phi_1 = (10^{-2} + 4^{-2})^{-1} = 14 = 4^2\]

\[\mu_1 = 14(185/10^2 + 220/4^2) = 218\].

Therefore, the posterior for the top speed is:

\[\mu | x \sim N(218,4^2)\]. Meaning 218 +/- 4 mph.

If the new speedometer measurements were considered by another person S’ who had no knowledge of the readings from the first speedometer, but still had a vague idea (from knowledge of the stock speedometer) that the top speed was about 200 +/- 30 mph. Then:

\[\mu \sim N(200,30^2)\].

Then S’ would have a posterior variance:

\[\phi_1 = (30^{-2} + 4^{-2})^{-1} = 16 = 4^2\].

S’ would have a posterior mean of:

\[\mu_1 = 16(200/30^2 + 220/4^2) = 224\].

Therefore, the distribution of S’ would be:

\[\mu | x \sim N(224,4^2)\]. Meaning 224 +/- 4 mph.

This calculation has been carried out assuming that the prior information we have is rather vague, and therefore the posterior is almost entirely determined by the data.

The situation is summarized as follows:

Speed Prior Distribution Likelihood from Data Posterior Distribution
S \(N(185 , 10^2)\) \(N(218 , 4^2)\)
\(N(220 , 4^2)\)
S’ \(N(200,30^2)\) \(N(224,4^2)\)

See also

References


"-----


Translate this page:

(default)
Uk flag.gif

Deutsch
De flag.gif

Español
Es flag.gif

Français
Fr flag.gif

Italiano
It flag.gif

Português
Pt flag.gif

日本語
Jp flag.gif

България
Bg flag.gif

الامارات العربية المتحدة
Ae flag.gif

Suomi
Fi flag.gif

इस भाषा में
In flag.gif

Norge
No flag.png

한국어
Kr flag.gif

中文
Cn flag.gif

繁体中文
Cn flag.gif

Русский
Ru flag.gif

Nederlands
Nl flag.gif

Ελληνικά
Gr flag.gif

Hrvatska
Hr flag.gif

Česká republika
Cz flag.gif

Danmark
Dk flag.gif

Polska
Pl flag.png

România
Ro flag.png

Sverige
Se flag.gif