Difference between revisions of "AP Statistics Curriculum 2007 Distrib MeanVar"

From SOCR
Jump to: navigation, search
(A Game of Chance)
(A Game of Chance)
Line 57: Line 57:
 
<math>=0.25\times 0.6 + 0.25\times 0.3 + 2.25\times 0.1 = 0.45</math>. Thus, the standard deviation is <math>SD[X] = \sqrt{VAR[X]}=0.67</math>.
 
<math>=0.25\times 0.6 + 0.25\times 0.3 + 2.25\times 0.1 = 0.45</math>. Thus, the standard deviation is <math>SD[X] = \sqrt{VAR[X]}=0.67</math>.
  
* Suppose now we ''alter the rules for the game of chance'' and the new pay-off is as follows:  
+
* Suppose now we ''alter the rules for the game of chance'' and the new pay-off is as follows: <center>
<center>
 
 
{| class="wikitable" style="text-align:center; width:75%" border="1"
 
{| class="wikitable" style="text-align:center; width:75%" border="1"
 
|-
 
|-
Line 68: Line 67:
 
|}
 
|}
 
</center>
 
</center>
 
+
* What is the ''new expected return'' of the game? Remember, the old expectation was equal to the entrance fee of $1.50, and the game was fair!
** What is the ''new expected return'' of the game? Remember, the old expectation was equal to the entrance fee of $1.50, and the game was fair!
+
* The change in the pay-off of the game may be represented by this linear transformation <math>Y = {3(X-1)\over 2}</math>. Therefore, by our rules for computing expectations of linear functions, <math>E(Y)={3E(X)\over 2} - {3\over 2}={3\over 4}=0.75</math>, and the game became clearly biased. Note how easy it is to compute ''E[Y]'', using this formula. At the same time, we could have computed the expectation of ''Y'' using first-principles (adding the values of the last row in the revised table above)!
** The change in the pay-off of the game may be represented by this linear transformation <math>Y = {3(X-1)\over 2}</math>. Therefore, by our rules for computing expectations of linear functions, <math>E(Y) = {3E(X)\over 2} {3\over 2} = {3\over 4} = 0.75</math>, and the game became clearly biased. Note how easy it is to compute ''E[Y]'', using this formula. At the same time, we could have computed the expectation of ''Y'' using first-principles (adding the values of the last row in the revised table above)!
 
  
 
* You can play similar games under different conditions for the probability distribution of the prices using the SOCR [[SOCR_EduMaterials_Activities_BinomialCoinExperiment | Binomial Coin]] or [[SOCR_EduMaterials_Activities_DiceExperiment | Die]] experiments.
 
* You can play similar games under different conditions for the probability distribution of the prices using the SOCR [[SOCR_EduMaterials_Activities_BinomialCoinExperiment | Binomial Coin]] or [[SOCR_EduMaterials_Activities_DiceExperiment | Die]] experiments.

Revision as of 13:29, 31 January 2008

General Advance-Placement (AP) Statistics Curriculum - Expectation (Mean) and Variance

Expectation (Mean)

Example

Suppose 10% of the human population carries the green-eye allele. If we choose 1,000 people randomly and let the RV X be the number of green-eyed people in the sample. Then the distribution of X is binomial distribution with n = 1,000 and p = 0.1 (denoted as \(X \sim B(1,000, 0.1)\). In a sample of 1,000 people, how many are we expecting to have this allele? Clearly the count of individuals that carry the green-eye allele will vary between different samples of 1,000 subjects. Well, now much dispersion between the samples can we expect, in terms of the number of individuals carrying this allele? These questions will be answered by computing the mean and the variance (or standard deviation) for this process.

Definition

The expected value, expectation or mean, of a discrete random variable X is defined by \(E[X]=\sum_x{xP(X=x)}.\) The expectation of a continuously-values random variable Y is analogously defined by \(E[Y]=\int{yP(y)dy}\), where the integral is over the domain of Y and P(y) is the probability density function of Y.

Properties of Expectation

  • Expectation is a linear functional. That is, the expected value operator \(\operatorname{E}\) is linear in the sense that

\[\operatorname{E}(X + c)= \operatorname{E}(X) + c\,\] \[\operatorname{E}(X + Y)= \operatorname{E}(X) + \operatorname{E}(Y)\,\] \[\operatorname{E}(aX)= a \operatorname{E}(X)\,\] \[\operatorname{E}(aX+bY)= a \operatorname{E}(X) + b\operatorname{E}(Y)\,\] for any two random variables \(X\) and \(Y\) (which need to be defined on the same probability space) and any real numbers \(a\) and \(b\). This property follows directly from the definition of expectation. For instance, \[E[aX+b]=\sum_x{(a\times x+b)P(X=x)} = \sum_x{(a\times x)P(X=x)} +\sum_x{bP(X=x)} = \] \[=a\times \sum_x{xP(X=x)} + b\times \sum_x{P(X=x)} = a\times E[X] + b\times 1 =aE[X] + b\,\]

Variance

The variance, of a discrete random variable X is defined by \(VAR[X]=\sum_x{(x-E[X])^2P(X=x)}.\) The variance of a continuously-values random variable Y is analogously defined by \(VAR[Y]=\int{(y-E[Y])^2P(y)dy}\), where the integral is over the domain of Y and P(y) is the probability density function of Y.

Properties of Variance

  • The variance is not quite a linear functional. The variance has the following property:

\[\operatorname{VAR}(X + c)= \operatorname{VAR}(X) + c\,\] (Data shifts do not affect the dispersion.) \[\operatorname{VAR}(aX)= a^2 \operatorname{VAR}(X)\,\]

If X and Y are uncorrelated, \(\operatorname{E}(X + Y)= \operatorname{VAR}(X) + \operatorname{VAR}(Y)\,\)
If X and Y are dependent (correlated), \(\operatorname{VAR}(X + Y)= \operatorname{VAR}(X) + \operatorname{VAR}(Y) +COV(X,Y)\,\)
  • The covariance between two real-valued random variables X and Y, with corresponding expected values \(\scriptstyle E(X)\,=\,\mu\) and \(\scriptstyle E(Y)\,=\,\nu\) is defined as

\[\operatorname{COV}(X, Y) = \operatorname{E}((X - \mu) (Y - \nu))=\sum_x{(x-\mu)(y-\nu)P(X=x)} \,\]

  • In general, if we have {\(X_1, X_2, X_3, \cdots , X_n\)} correlated variables, then the variance of their sum is the sum of their covariances:

\[VAR\left(\sum_{i=1}^n X_i\right) = \sum_{i=1}^n \sum_{j=1}^n \operatorname{COV}(X_i, X_j).\]

Standard Deviation

The standard deviation, of a discrete random variable X is defined by \(SD[X]=\sqrt{\sum_x{(x-E[X])^2P(X=x)}} = \sqrt{VAR[X]}.\) The standard deviation of a continuously-values random variable Y is analogously defined by \(SD[Y]=\sqrt{\int{(y-E[Y])^2P(y)dy}} = \sqrt{VAR[Y]}\), where the integral is over the domain of Y and P(y) is the probability density function of Y.

Examples

A Game of Chance

  • Suppose we are offered to play a game of chance under these conditions: it costs us to play $1.50 and the awarded prices are {$1, $2, $3}. Assume the probabilities of winning each price are {0.6, 0.3, 0.1}, respectively. Should we play the game? What are our chances of winning/loosing? Let's let X=awarded price. Then X={1, 2, 3}.
x 1 2 3
P(X=x) 0.6 0.3 0.1
x*P(X=x) 0.6 0.6 0.3

Then the mean of this game (i.e., expected return or expectation) is computed as the weighted (by the outcome probabilities) average of all the outcome prices\[E[X] = x_1P(X=x_1) + x_2P(X=x_2)+x_3P(X=x_3) = 1\times 0.6 + 2\times 0.3 + 3\times 0.1 = 1.5\]. In other words, the expected return of this came is $1.5, which equals the entry fee, and hence the game is fair - neither the player nor the house has an advantage in this game (on the long run!) Of course, each streak of n games will produce different outcomes and may give small advantage to one side, however, on the long run, no one will make money.

The variance for this game is computed by \(VAR[X] = (x_1-1.5)^2P(X=x_1) + (x_2-1.5)^2P(X=x_2)+(x_3-1.5)^2P(X=x_3) = \) \(=0.25\times 0.6 + 0.25\times 0.3 + 2.25\times 0.1 = 0.45\). Thus, the standard deviation is \(SD[X] = \sqrt{VAR[X]}=0.67\).

  • Suppose now we alter the rules for the game of chance and the new pay-off is as follows:
x 0 1.5 3
P(X=x) 0.6 0.3 0.1
x*P(X=x) 0 0.45 0.3
  • What is the new expected return of the game? Remember, the old expectation was equal to the entrance fee of $1.50, and the game was fair!
  • The change in the pay-off of the game may be represented by this linear transformation \(Y = {3(X-1)\over 2}\). Therefore, by our rules for computing expectations of linear functions, \(E(Y)={3E(X)\over 2} - {3\over 2}={3\over 4}=0.75\), and the game became clearly biased. Note how easy it is to compute E[Y], using this formula. At the same time, we could have computed the expectation of Y using first-principles (adding the values of the last row in the revised table above)!
  • You can play similar games under different conditions for the probability distribution of the prices using the SOCR Binomial Coin or Die experiments.

Children Gender Expectation Example

Suppose we conduct an (unethical!) experiment involving young couple planning to have children. Suppose, the couples are interested in the number of girls they will have, and each couple agrees to have children until one of the following 2 stopping criteria is met: (1) the couple has at least one child of each gender, or (2) the couple has at most 3 children! Let's denote the RV X ={number of Girls}. The distribution of X is given by:

x 0 1 2 3
P(X=x) 1/8 5/8 1/8 1/8
x*P(X=x) 0 5/8 2/8 3/8

Therefore, the expected number of girls that each couple participating in this ("odd") experiment will have is given by \(E[X] = 0 + 5/8 + 2/8 + 3/8 = 1.5\). What is the interpretation of this expectation?

Can you calculate the variance and standard deviation for this random variable?


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