Porisma

Worked solution

Find the mean and variance of defective-part counts

Three parts from a production line are sampled and tested. Let XX count the defective parts, with distribution

xx0123
P(X=x)P(X=x)0.510.380.100.01

Find the mean and variance of XX.

CJC · Lecture · Example 11

Find the mean first

E(X)=0(0.51)+1(0.38)+2(0.10)+3(0.01)=0.61E(X)=0(0.51)+1(0.38)+2(0.10)+3(0.01)=0.61. Thus μ=0.61\mu=0.61.

How did this part go?

Method 1: average the squared distances

Use Var⁡(X)=E[(X−μ)2]=∑x(x−μ)2f(x)\operatorname{Var}(X)=E[(X-\mu)^2]=\sum_x(x-\mu)^2f(x). The complete source table is

xx0123
P(X=x)P(X=x)0.510.380.100.01
(x−μ)2(x-\mu)^2(0−0.61)2=0.3721(0-0.61)^2=0.3721(1−0.61)2=0.1521(1-0.61)^2=0.1521(2−0.61)2=1.9321(2-0.61)^2=1.9321(3−0.61)2=5.7121(3-0.61)^2=5.7121

Var⁡(X)=0.51(0.3721)+0.38(0.1521)+0.1(1.9321)+0.01(5.7121)=0.4979\operatorname{Var}(X)=0.51(0.3721)+0.38(0.1521)+0.1(1.9321)+0.01(5.7121)=0.4979.

How did this part go?

Method 2: subtract the squared mean

Use Var⁡(X)=E(X2)−[E(X)]2\operatorname{Var}(X)=E(X^2)-[E(X)]^2. From the same four probabilities, E(X2)=02(0.51)+12(0.38)+22(0.10)+32(0.01)=0.87E(X^2)=0^2(0.51)+1^2(0.38)+2^2(0.10)+3^2(0.01)=0.87. Hence Var⁡(X)=0.87−0.612=0.4979\operatorname{Var}(X)=0.87-0.61^2=0.4979.

How did this part go?

Method 3: use the probability-weighted calculator workflow

Use the graphing calculator as the source’s third method for Example 11:

  1. Press STAT, then 1:Edit, to enter the distribution.
  2. Put 0,1,2,30,1,2,3 in L1, and the corresponding probabilities 0.51,0.38,0.10,0.010.51,0.38,0.10,0.01 in L2.
  3. Press STAT, choose CALC, then 1:1-Var Stats.
  4. Set List:L1 and FreqList:L2. Obtain L1 with 2nd, 1 and L2 with 2nd, 2.
  5. Highlight Calculate and press ENTER. The printed screen shows xˉ=0.61\bar x=0.61, Σx=0.61\Sigma x=0.61, Σx2=0.87\Sigma x^2=0.87, σx=0.7056202945\sigma_x=0.7056202945, n=1n=1, minX=0 and Q1=0; Sx is blank. Scroll down for more statistics.
  6. To avoid retyping a rounded value, press VARS, then 5:Statistics.
  7. Choose 2: x̄ for the mean or 4: σx for the population standard deviation. Recall the stored σx\sigma_x and square it: the displayed σx2=0.4979\sigma_x^2=0.4979 is the variance. The source explains that this workflow supplies standard deviation rather than variance directly.

Use σx, not Sx. Here the frequency weights are probabilities and sum to one, so the printed n=1 is the total weight, not one observed defective part. The source’s squared stored value avoids premature rounding. The diagram retains the meaningful source menu and screen contents.

How did this part go?

Compare your sketch

Use probability weights to find a mean and variance

  1. 1. Enter outcomes and their probabilities

    Press STAT, then 1:Edit. Put the outcomes in L1 and their probabilities in L2, keeping each pair on the same row.

    Enter outcomes and their probabilities
    L1 · outcomeL2 · probability
    00.51
    10.38
    20.10
    30.01
  2. 2. Use the probabilities as weights

    Open STAT → CALC → 1:1-Var Stats. Select L1 as List and L2 as FreqList, then Calculate. To enter L1 press 2nd then 1; for L2 press 2nd then 2.

    List
    L1
    FreqList
    L2
  3. 3. Read the mean and population standard deviation

    The weighted mean is x̄ = 0.61. Use σx, the population standard deviation, for this probability distribution. The displayed n = 1 is the total probability weight, not a sample size.

    x̄ = 0.61; σx ≈ 0.7056202945

  4. 4. Square the stored standard deviation

    Open VARS → 5:Statistics → XY. Recall σx and square the stored value, rather than retyping a rounded display.

    σx² = 0.4979

The source leaves Sx blank. Do not use a sample standard deviation here. An exact check is E(X²) − [E(X)]² = 0.87 − 0.61² = 0.4979.

View original calculator screens
Expand diagram

Use the scrollbars or arrow keys to inspect details.

Reconstructed meaningful screen contents from PDF 15–16. Eight panels retain STAT Edit/CALC menus, probability lists, setup, results, VARS and statistics recall. Population sigma x is .7056202945 and its square .4979; sample Sx is blank because the probability weights sum to one. Decorative battery/status chrome omitted.
Reconstructed meaningful screen contents from PDF 15–16. Eight panels retain STAT Edit/CALC menus, probability lists, setup, results, VARS and statistics recall. Population sigma x is .7056202945 and its square .4979; sample Sx is blank because the probability weights sum to one. Decorative battery/status chrome omitted.
Reconstructed meaningful screen contents from PDF 15–16. Eight panels retain STAT Edit/CALC menus, probability lists, setup, results, VARS and statistics recall. Population sigma x is .7056202945 and its square .4979; sample Sx is blank because the probability weights sum to one. Decorative battery/status chrome omitted.
Open original screens (new tab)

Common mistakes

E(X²) is not [E(X)]². Retain the supplied distribution; no independent-defect or binomial assumption is required to use this probability table.

Solution notes

The calculator continuation on PDF 15–16 is integrated as Method 3; probability weights and population sigma are distinguished from sample statistics.

Read the hint