Imagine you are a basketball player. On average, out of 10 free throw attempts, you successfully make 8 shots. Well, this number 8 can be called your expected value or expectation of success.
Simply put, expected value is the average value we expect to occur from an experiment if that experiment is repeated many times under the same conditions. This doesn't mean you will definitely get that result every time, but it's a prediction of the long-term average.
This concept is very useful in binomial distribution. Remember, binomial distribution is used for experiments that have only two possible outcomes (success or failure) and are performed repeatedly. Binomial expected value helps us predict how many successes we're most likely to get.
Binomial distribution b(x;n,p) has an expected value:
E(X)=np
where n is the number of trials and p is the probability of success.
This formula is very intuitive. If the probability of success in one trial is p, then in n trials, the expected number of successes is:
You might be curious, why is the formula so simple? Let's break down the logic.
Each trial in a binomial distribution can be thought of as a small random variable, let's call it Ik. This variable has a value of 1 if the k-th trial is successful, and 0 if it fails.
The expected value for a single trial is:
E(Ik)=1⋅p+0⋅q=p
Since the total number of successes (X) is the sum of all successes in each trial, then:
X=I1+I2+...+In
Using the properties of expected value, we can sum all expected values from each trial:
E(X)=E(I1)+E(I2)+...+E(In)
E(X)=n timesp+p+...+p=np
See? The total expected value is the product of the number of trials and the probability of success.
A fair die is rolled 7 times. What is the expected value for getting a five on the die from all the rolls?
Solution:
First, let's make sure this meets the requirements for binomial distribution:
There are only two possibilities: success (rolling a 5) or failure (rolling a number other than 5)
Fixed number of trials: 7 times
Each roll is independent: the result of previous rolls doesn't affect subsequent rolls
Same probability of success: p=61 on each roll
Now we identify the parameters:
S={1,2,3,4,5,6}
p=61
n=7
Now we can directly calculate the expected value using the formula:
E(X)=np=7×61=67=1.167
So, what does this number 1.167 mean?
Expected value 1.167 doesn't mean you will get 1.167 times the number 5 in one experiment (because that's impossible). What it means is: if you repeat this experiment of rolling a die 7 timeshundreds or thousands of times, then on average you will get the number 5 about 1.167 times per set of 7 rolls.
In practice, in one set of 7 rolls, you might get the number 5 as many as 0, 1, 2, or even 3 times. But when averaged over the long term, the result will approach 1.167.