Chalk−1

Math · Introductory statistics · Worked example

Find the expected value and SD of a binomial

A quiz has 20 multiple-choice questions with four choices each, and a student guesses every answer at random. Let X be the number of correct answers. Find the expected value, variance and standard deviation of X, and the probability of exactly 5 correct.

Check that the count is binomial

There are n=20 trials, each guess is right or wrong, the guesses are independent, and each is right with probability p=1⁢/4=0.25. X is therefore binomial.

Expected value

Multiply the number of trials by the chance of success on each one.

X∼B⁢(20,0.25)E⁢(X)=n⁢p=20⋅0.25=5

Variance and standard deviation

The chance of a wrong guess is 1−p=0.75. The standard deviation is the square root of the variance.

X∼B⁢(20,0.25)V⁢a⁢r⁢(X)=n⁢p⁢(1−p)=20⋅0.25⋅0.75=3.75S⁢D⁢(X)=3.75≈1.94
X∼B⁢(20,0.25)V⁢a⁢r⁢(X)=n⁢p⁢(1−p)=20⋅0.25⋅0.75=3.75S⁢D⁢(X)=3.75≈1.94

Probability of exactly 5 correct

Choose which 5 of the 20 guesses are right, C⁢(20,5)=15,504 ways, and multiply by the probability of one such arrangement. A calculator gives about 0.2023.

X∼B⁢(20,0.25)P⁢(X=5)=(205)⁢(0.25)5(0.75)15=15504⁢(0.25)5(0.75)15
P⁢(X=k) for X ∼B⁢(20,0.25), near the expected value
kP⁢(X=k)
30.1339
40.1897
50.2023
60.1686
70.1124

Interpret

A guesser averages 5 correct, and about 93⁢% of the time the score is within two standard deviations of that. Those bounds are 5±2×1.94, about 1.1 to 8.9, so the scores 2 through 8. Exactly 5 is the single most likely score, yet it turns up only about one time in five. Ranges come from adding entries: P⁢(4≤X≤6) =0.1897+0.2023+0.1686 =0.5606. A score of 10 or more is rare: adding P⁢(X=k) from k=10 to 20 gives about 0.014.

Result

E⁢(X)=5, Var⁢(X)=3.75, SD⁢(X)≈1.94 and P⁢(X=5)≈0.2023.

Your turn

1. One like the example

X is binomial with n=50 and p=0.4. Find E⁢(X), Var⁢(X) and SD⁢(X).

Show the answer and explanation

E⁢(X)=20, Var⁢(X)=12 and SD⁢(X)≈3.46.

E⁢(X) =n⁢p =50⋅0.4 =20. Var⁢(X) =n⁢p⁢(1−p) =50⋅0.4⋅0.6 =12, and SD⁢(X)=12≈3.46.

X∼B⁢(50,0.4)E⁢(X)=n⁢p=50⋅0.4=20V⁢a⁢r⁢(X)=n⁢p⁢(1−p)=50⋅0.4⋅0.6=12S⁢D⁢(X)=12≈3.46
X∼B⁢(50,0.4)E⁢(X)=n⁢p=50⋅0.4=20V⁢a⁢r⁢(X)=n⁢p⁢(1−p)=50⋅0.4⋅0.6=12S⁢D⁢(X)=12≈3.46

2. A variation

A player makes 80⁢% of her free throws, independently. She takes 10. What is the probability she makes exactly 8?

Show the answer and explanation

About 0.3020.

X∼B⁢(10,0.8) and k=8, so two shots miss. C⁢(10,8)=45 arrangements, each with probability (0.8)8(0.2)2. The expected count is 8, and 8 is also the single most likely count, at about 30⁢%.

X∼B⁢(10,0.8)P⁢(X=8)=(108)⁢(0.8)8(0.2)2=45⁢(0.8)8(0.2)2≈0.3020

3. Somewhere new

A vaccine gives a mild fever to 5⁢% of people, independently. A clinic vaccinates 40 people and 6 get a fever. Find the expected count and its standard deviation. Is 6 unusual?

Show the answer and explanation

E⁢(X)=2 and SD⁢(X)≈1.38. Six is about 2.9 standard deviations above the expected count, which is unusual.

X∼B⁢(40,0.05), so E⁢(X)=2 and Var⁢(X) =40⋅0.05⋅0.95 =1.9. The z-like distance (6−2)⁢/1.38≈2.9 is well past 2. The exact chance of 6 or more is about 0.014, so the clinic might check its batch.

X∼B⁢(40,0.05)E⁢(X)=n⁢p=40⋅0.05=2V⁢a⁢r⁢(X)=n⁢p⁢(1−p)=40⋅0.05⋅0.95=1.9S⁢D⁢(X)=1.9≈1.386−21.38≈2.9
X∼B⁢(40,0.05)E⁢(X)=n⁢p=40⋅0.05=2V⁢a⁢r⁢(X)=n⁢p⁢(1−p)=40⋅0.05⋅0.95=1.9S⁢D⁢(X)=1.9≈1.386−21.38≈2.9

Keep exploring

Open the rows in Math and change the variance row to Var⁢(X) =n⁢p =20⋅0.25 =5, leaving out 1−p. The row turns to ✗: “Doesn’t match Var(X) = np(1 − p) for a binomial.” Tap the ✗ and choose Show the value to see what the rule gives.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Study it, then try it

Practice the key terms as flashcards, then open the example in its tool, change a value and keep a useful result on your board.

Study the 7 key terms Check E⁢(X), Var⁢(X), SD⁢(X) and P⁢(X=5) in Math Check P⁢(X=5) in Math Drop balls through 20 rows in Binomial & the Galton Board Open worked example on a board Binomial probability in Math Reference

Your existing work stays on this device. Examples open as editable copies.