Step by step
The question
Question: x can be 0, 2, 4, with probabilities 0.3, 0.4, 0.3: find the expected value.
The expected value is the mean of x: what we get on average, in the long run.
1 Check the table
The table lists each value of x and its probability, P of x.
A probability table must add up to 1.
0.3 plus 0.4 plus 0.3 is 1.
Good.
2 Multiply x × P(x)
The mean of a random variable: each x times its probability, all added up.
0 times 0.3 is 0.
2 times 0.4 is 0.8.
4 times 0.3 is 1.2.
3 Add the column
0 plus 0.8 plus 1.2 is 2.
The mean, μ, is 2.
Careful!
Each x counts as much as its probability.
4 Check
Let's check with 10 tries.
Each x comes up about 10 times its probability: 0, 3 times; 2, 4 times; 4, 3 times.
All the x's of the 10 tries add up to 20.
20 divided by 10 is 2: the mean.
So it is right!
Let's look back.
First: check the table.
Then: multiply x × P(x).
Then: add the column.
Last: check.