Presentation is loading. Please wait.

Presentation is loading. Please wait.

Section 2.3 Suppose X is a discrete-type random variable with outcome space S and p.m.f f(x). The mean of X is The variance of X is The standard deviation.

Similar presentations


Presentation on theme: "Section 2.3 Suppose X is a discrete-type random variable with outcome space S and p.m.f f(x). The mean of X is The variance of X is The standard deviation."— Presentation transcript:

1 Section 2.3 Suppose X is a discrete-type random variable with outcome space S and p.m.f f(x). The mean of X is The variance of X is The standard deviation of X is  x  Sx  S x f(x) =E(X) = .  x  Sx  S (x –  ) 2 f(x) =E[(X –  ) 2 ] =  2 = Var(X). E[X 2 – 2X  +  2 ] = E(X 2 ) – 2  E(X) + E(  2 ) = E(X 2 ) – 2  2 +  2 = E(X 2 ) –  2 =  =  Var(X). Suppose x 1, x 2, …, x n represents a collection of n observed values of a random variable X. Such a collection of observed values is called a sample.

2 1.The random variable X in Class Exercise #4 of Section 1.1 was found to have p.m.f. Find the mean, variance, and standard deviation of X. if x = 0 f(x) =if x = 1 if x = 2 1/9 3/9 = 1/3 5/9  = E(X) = (0)(1/9) +(1)(3/9) +(2)(5/9) =13/9 E(X 2 ) =  2 = Var(X) = 23/9 – 169/81 = 38/81 To find the variance, we first find (0) 2 (1/9) +(1) 2 (3/9) +(2) 2 (5/9) =23/9 E(X 2 ) –  2 = 23/9 – (13/9) 2 =  38  = —— 9

3 2.The random variable X in Class Exercise #1 of Section 2.2 was found to have p.m.f. Find the mean, variance, and standard deviation of X. f(x) = if x = 2 if x = 3 if x = 4 if x = 5 3/15 = 1/5 6/15 = 2/5 4/15 2/15  = E(X) = 3 (2) — + 15 6 (3) — + 15 4 (4) — + 15 2 (5) — = 15 50 10 — = — 15 3 This calculation was previously done in Class Exercise #1 of Section 2.2. To find the variance, we first find E(X 2 ) = 3 (2 2 ) — + 15 6 (3 2 ) — + 15 4 (4 2 ) — + 15 2 (5 2 ) — = 15 180 —– = 12 15 We now have  2 = Var(X) = E(X 2 ) –  2 = 12 – (10/3) 2 =8/9 2  2  = —— 3

4 3.Suppose k is a positive integer, and the random variable X has p.m.f. f(x) = 1/k if x = 1, 2, …, k. Find the mean and variance of X.  X = E(X) = (1)(1/k) + (2)(1/k) + (3)(1/k) + … + (k)(1/k) = (1/k)(1 + 2 + 3 + … + k) = 1 k(k + 1) — ——— = k 2 (k + 1) ——— 2  X 2 = Var(X) = E(X 2 ) – [E(X)] 2 = (1) 2 (1/k) + (2) 2 (1/k) + (3) 2 (1/k) + … + (k) 2 (1/k) – [(k + 1)/2] 2 = (1/k)(1 2 + 2 2 + 3 2 + … + k 2 ) – (k + 1) 2 /4 = (k + 1)(2k + 1) (k + 1) 2 ——————— – ——— = 6 4 (k 2 – 1) ——— 12

5 Return to Section 2.1 Suppose a set contains N = N 1 + N 2 items, where N 1 items are of one type, N 2 items are of another type, and n items are selected from the N items at random and without replacement. If the random variable X is defined to be the number of selected n items that are from the N 1 items, then X is said to have a hypergeometric distribution. The p.m.f. of X is f(x) = N n N n N1 xN1 x N 2 n – x if x is a nonnegative integer such that x  and n – x  N2N2 min{n, N 1 }

6 The mean of X is E(X) = N n N n N1 xN1 x N 2 n – x  x x = N – 1 n – 1 N 2 n – 1 – (x – 1)  x x = N— n N— n N 1 – 1 x – 1 N1— xN1— x N – 1 n – 1 N 2 n – 1 – (x – 1)  x = N 1 – 1 x – 1 N 1 n — N N 1 n — N

7 To find the variance of X (using Theorem 2.2-1), find E[X(X – 1)] = Since E[X(X – 1)] = E(X 2 ) – E(X) =, N n N n N1 xN1 x N 2 n – x  x(x – 1) x =  x(x – 1) x N – 2 n – 2 N 2 n – 2 – (x – 2) = N— n N— n N 1 – 2 x – 2 N1— xN1— x N 1 – 1 ——– x – 1 N – 1 —— n – 1 N – 2 n – 2 N 2 n – 2 – (x – 2)  x = N 1 – 2 x – 2 N 1 (N 1 – 1) n (n – 1) ———— N(N – 1) N 1 (N 1 – 1) n(n – 1) ———— N(N – 1) N 1 (N 1 – 1) n(n – 1) ———— N(N – 1)

8 then E(X 2 ) =, and Var(X) = E(X 2 ) – [E(X)] 2 = N 1 (N 1 – 1) n(n – 1) ———— + N(N – 1) N 1 n — N N 1 (N 1 – 1) n(n – 1) ———— + N(N – 1) N 1 n — – N N 1 n — = N 2 N 1 n — N N 1 – 1 (n – 1) ——— + 1 – N – 1 N 1 n — = N N 1 n — N (n – 1)(N 1 – 1)N + N(N – 1) – nN 1 (N – 1) ———————————————— = N(N – 1) N 1 n — N N 2 – N 1 N – nN + nN 1 ————————— = N(N – 1) N 1 n — N NN 2 – nN 2 ————— = N(N – 1) N 1 n — N N 2 N – n — —— N N – 1

9 Return to Class Exercise #3 in Section 2.1 3. (c) An urn contains 4 clear marbles and 10 colored marbles. Consider the random variable Q = “the number of clear marbles when 3 marbles are selected at random without replacement” with p.m.f. f(q). Find f(q), E(Q), and Var(Q). f(q) = E(Q) = Var(Q) = 14 3 4 q 10 3 – q if q =0, 1, 2, 3  Q = 4 (3) — = 14 6 — 7  Q 2 = 4 10 14 – 3 (3) — — ——— = 14 14 14 – 1 330 —– 637

10 3. (d) An urn contains 4 clear marbles and 10 colored marbles. Consider the random variable V = “the number of clear marbles when 7 marbles are selected at random without replacement” with p.m.f. g(v). Find g(v), E(V), and Var(V). g(v) = E(V) = Var(V) = 14 7 4 v 10 7 – v if v = 0, 1, 2, 3, 4  V = 4 (7) — = 14 2  V 2 = 4 10 14 – 7 (7) — — ——— = 14 14 14 – 1 10 — 13

11 3. (e) An urn contains 4 clear marbles and 10 colored marbles. Consider the random variable W = “the number of colored marbles when 7 marbles are selected at random without replacement” with p.m.f. h(w). Find h(w), E(W), and Var(W). (Note that V + W = 7.) h(w) = E(W) = Var(W) = 14 7 10 w 4 7 – w if w =3, 4, 5, 6, 7  W = 10 (7) — = 14 5  W 2 = 10 4 14 – 7 (7) — — ——— = 14 14 14 – 1 10 — 13 Return to Section 2.3

12 4. (a) (b) Let X be a random variable with the space {u 1, u 2,..., u k } and p.m.f. f(x), that is, P(X = u i ) = f(u i ) for i = 1, 2,..., k. Define the random variable Y = aX + b, where a and b are constants. Find the space of the random variable Y. If  X is the mean for the random variable X, use the p.m.f. of Y to prove that the mean for the random variable Y is  Y = a  X + b. outcome space for Y = {au 1 + b, au 2 + b, …, au k + b} f(u i ) for i = 1, 2,..., k.  Y = The p.m.f. for Y is g(au i + b) = k  [(au i + b) g(au i + b)] = i = 1 k  [(au i + b) f(u i )] = i = 1 k  au i f(u i ) +  b f(u i ) = i = 1i = 1 k a  u i f(u i ) +b  f(u i ) = i = 1 i = 1 a  X + b (c) If  X is the mean for the random variable X, use Theorem 2.2-1 to prove that the mean for the random variable Y is  Y = a  X + b.  Y = a  X + b E(Y) =E(aX + b) =aE(X) + b =

13 (d) If  X 2 is the variance for the random variable X, use the p.m.f. of Y to prove that the variance for the random variable Y is  Y 2 = a 2  X 2.  Y 2 = k  [(au i + b –  Y ) 2 g(au i + b)] = i = 1 k  [(au i + b – (a  X + b)) 2 f(u i )] = i = 1 k  [(au i – a  X ) 2 f(u i )] = i = 1 a2X2a2X2 k a 2  [(u i –  X ) 2 f(u i )] = i = 1 (e) If  X 2 is the variance for the random variable X, use Theorem 2.2-1 to prove that the variance for the random variable Y is  Y 2 = a 2  X 2.  Y 2 =E[(Y –  Y ) 2 ] =E[(aX + b – (a  X + b)) 2 ] = E[(aX – a  X ) 2 ] =E[a 2 (X –  X ) 2 ] =a 2 E[(X –  X ) 2 ] =a2X2a2X2

14 5. (a) The random variable X has p.m.f.f(x) = if x = –2 if x = –1 if x = 0 if x = 1 1/10 1/5 Find the mean and variance of X. if x = 22/5  X = E(X) = (–2)(1/10) + (–1)(1/10) + (0)(2/10) + (1)(2/10) + (2)(4/10) = 7/10 = 0.7 E(X 2 ) =  X 2 = Var(X) = E(X 2 ) – [E(X)] 2 = (–2) 2 (1/10) + (–1) 2 (1/10) + (0) 2 (2/10) + (1) 2 (2/10) + (2) 2 (4/10) = 23/10 – [7/10] 2 = 23/10 – 49/100 =181/100 = 1.81 23/10

15 (b)Find the p.m.f. g(y), the mean, and the variance of Y = X + 3. g(y) = if y = 1 if y = 2 if y = 3 if y = 4 1/10 1/5 if y = 52/5  Y = E(Y) = E(X + 3) =1  X + 3 = 7/10 + 3 =37/10 = 3.7  Y 2 = Var(Y) = Var(X + 3) =12X2 =12X2 = 181/100 = 1.81 (c)Find the p.m.f. h(v), the mean, and the variance of V = 5X. h(v) = if v = –10 if v = –5 if v = 0 if v = 5 1/10 1/5 if v = 102/5  V = E(V) = E(5X) =5  X = (5)(7/10) =35/10 = 7/2 = 3.5  V 2 = Var(V) = Var(5X) =52X2 =52X2 = (25)(181/100) = 181/4 =45.25

16 (d)Find the p.m.f. s(w), the mean, and the variance of W = X 2. s(w) = if w = 0 if w = 1 if w = 4 1/5 3/10 1/2  W = E(W) = E(X 2 ) = 23/10 = 2.3 (from calculations done in part (a)) E(W 2 ) = To find the variance, we first find (0) 2 (1/5) +(1) 2 (3/10) +(4) 2 (1/2) =83/10  W 2 = Var(W) = 301/100 = 3.01 E(W 2 ) –  W 2 = 83/10 – (23/10) 2 = 6.Verify that the p.m.f. given in Text Exercise 2.3-15 is correct. The 16 equally likely outcomes when the two dice are rolled: (1,1)(1,2)(1,3)(1,4) (2,1)(2,2)(2,3)(2,4) (3,1)(3,2)(3,3)(3,4) (4,1)(4,2)(4,3)(4,4) P(Larger roll is 1) = P(Larger roll is 2) = P(Larger roll is 3) = P(Larger roll is 4) = 1 / 16 3 / 16 5 / 16 7 / 16

17 Section 2.3 Suppose X is a discrete-type random variable with outcome space S and p.m.f f(x). The mean of X is The variance of X is The standard deviation of X is  x  Sx  S x f(x) =E(X) = .  x  Sx  S (x –  ) 2 f(x) =E[(X –  ) 2 ] =  2 = Var(X). E[X 2 – 2X  +  2 ] = E(X 2 ) – 2  E(X) + E(  2 ) = E(X 2 ) – 2  2 +  2 = E(X 2 ) –  2 =  =  Var(X). Suppose x 1, x 2, …, x n represents a collection of n observed values of a random variable X. Such a collection of observed values is called a sample.

18 The sample mean is The variance of the empirical distribution is The sample variance is The sample standard deviation is n  x i (1/n) = i = 1 n  x i i = 1 n = x n  (x i – x) 2 (1/n) = i = 1 n  (x i – x) 2 i = 1 n = n  (x i 2 – 2x i x + x 2 ) i = 1 n = n  x i 2 – i = 1 n = n 2x  x i + i = 1 n  x 2 i = 1 n  x i 2 – i = 1 = 2nx 2 + n nx 2 n  x i 2 – i = 1 = nx 2 n v n  (x i – x) 2 i = 1 n – 1 = n  x i 2 – i = 1 = nx 2 n – 1 s2s2 s =  s 2

19 7.A fair, six-sided die is rolled 10 times, and the number of spots facing up is recorded for each roll with the following results: 4 6 2 3 5 6 5 1 1 3. Find the sample mean, the sample variance, and the sample standard deviation. x = n  x i i = 1 n = 4 + 6 + 2 + 3 + 5 + 6 + 5 + 1 + 1 + 3 10 = 36 — = 10 3.6 s 2 = n  (x i – x) 2 i = 1 n – 1 = (4–3.6) 2 +(6–3.6) 2 +(2–3.6) 2 +(3–3.6) 2 +(5–3.6) 2 +(6–3.6) 2 +(5–3.6) 2 +(1–3.6) 2 +(1–3.6) 2 +(3–3.6) 2 9 32.4 = —— = 3.6 9 s  1.897

20 8. (a) (b) Suppose a sample of observations of the random variable X results in the values x 1, x 2,..., x n, with sample mean x and sample variance s X 2. Consider the values y 1 = ax 1 + b, y 2 = ax 2 + b, …, y n = ax n + b, where a and b are constants. Prove that the sample mean for values y 1, y 2,..., y n is y = ax + b. y = n  y i i = 1 n = n  (ax i + b) i = 1 n = n  ax i + i = 1 n = n  b i = 1 n a  x i + nb i = 1 n =ax + b Prove that the sample variance for values y 1, y 2,..., y n is s Y 2 = a 2 s X 2. s Y 2 = n  (y i – y) 2 i = 1 n – 1 = n  (ax i + b – (ax + b)) 2 i = 1 n – 1 = n  (ax i – ax) 2 i = 1 n – 1 =

21 n  a 2 (x i – x) 2 i = 1 n – 1 = n a 2  (x i – x) 2 i = 1 n – 1 =a 2 s X 2. (c) The sample of 10 values x 1, x 2,..., x 10 in Class Exercise #7 of this section was found to have mean x = 3.6 and variance s X 2 = 3.6. Find the mean y and variance s Y 2 for the values y 1 = 0.5x 1 – 4, y 2 = 0.5x 2 – 4, …, y 10 = 0.5x 10 – 4. y =0.5x – 4 =0.5(3.6) – 4 =– 2.2 s Y 2 =(0.5) 2 (3.6) =(0.9)

22 9. (a) (1) (2) Add a sheet to the Excel file Describe_Data (created previously) which displays the mean, variance, and standard deviation for a sample. Edit the Excel file by performing the following steps: In Summary Stats, select cells A1:A500, and color these cells with a light color such as yellow. With cells A1:A500 still selected, select from the main menu the Formulas tab, select the option Name Manager, type the range name Sample, click the OK button to return to the Name Manager dialog box, and click the Close button to close the dialog box. Insert a new worksheet named Summary Stats. (3) Enter the labels displayed in columns B through H, and right justify the labels in cells G3:G6. (4)

23 Enter the following formulas respectively in cells H3:H6: =COUNT(Sample) =IF(COUNT(Sample)>0,AVERAGE(Sample),"-") =IF(COUNT(Sample)>1,VAR(Sample),"-") =IF(COUNT(Sample)>1,STDEV(Sample),"-") (6) Save the file as Describe_Data (in your personal folder on the college network). (7) (b)Use the Excel file Describe_Data to obtain the sample mean, sample variance, and sample standard deviation for the data in Class Exercise #7 of this section. Format cells H3:H6 so that the displays are centered. (5)


Download ppt "Section 2.3 Suppose X is a discrete-type random variable with outcome space S and p.m.f f(x). The mean of X is The variance of X is The standard deviation."

Similar presentations


Ads by Google