Steply

x: 1, 2, 3, 4; P(x): 0.4, 0.3, 0.2, 0.1, find the mean

Step by step, with the reason for every step · Random variables · University Statistics

Step by step

The question

Question: x can be 1, 2, 3, 4, with probabilities 0.4, 0.3, 0.2, 0.1: find the mean.

x: 1, 2, 3, 4; P(x): 0.4, 0.3, 0.2, 0.1. mean?

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.4 plus 0.3 plus 0.2 plus 0.1 is 1.

Good.

0.4 + 0.3 + 0.2 + 0.1 = 1

2 Multiply x × P(x)

The mean of a random variable: each x times its probability, all added up.

mean μ = add up all x × P(x)

1 times 0.4 is 0.4.

2 times 0.3 is 0.6.

3 times 0.2 is 0.6.

4 times 0.1 is 0.4.

3 Add the column

0.4 plus 0.6 plus 0.6 plus 0.4 is 2.

The mean, μ, is 2.

μ = 0.4 + 0.6 + 0.6 + 0.4 = 2

Careful!

The plain average treats every x the same.

But the likely ones count more: we weight by P of x.

Careful: not (1 + 2 + 3 + 4) ÷ 4 = 2.5 ✗

4 Check

Let's check with 10 tries.

Each x comes up about 10 times its probability: 1, 4 times; 2, 3 times; 3, 2 times; 4, 1 times.

10 tries: 1 comes 4 times, 2 comes 3 times, 3 comes 2 times, 4 comes 1 times

All the x's of the 10 tries add up to 20.

total 1 × 4 + 2 × 3 + 3 × 2 + 4 × 1 = 20

20 divided by 10 is 2: the mean.

So it is right!

20 ÷ 10 = 2

Let's look back.

First: check the table.

Then: multiply x × P(x).

Then: add the column.

Last: check.

Answer
Careful: not (1 + 2 + 3 + 4) ÷ 4 = 2.5 ✗

Your turn

Try this one yourself, then check:

x: 1, 2, 3, 4; P(x): 0.1, 0.1, 0.5, 0.3. mean?
Show the answer
μ = 3

More from Random variables

The whole lesson: Random variables →