Probability - Mean

Mean

From our example from Binomial Distribution about dice rolling. We roll a dice ten times and get:

average=ξ¯=2+5+4+2+6+6+3+1+2+110

Another way to write this is tallying up our unique numbers and multiplying each by the occurence fraction:

ξ¯=2101+3102+1103+1104+1105+2106=3.3ξ¯=∑values∗fractions

This is using frequency. Imagine we are instead using the "fraction of infinitely many", the probability.

Our expectation E, also known as the mean, is the fraction we would get with infinitely many trials with known probabilities for each time.

E(ξ)=∑value⋅probabilityE(ξ)=161+162+163+164+165+166=3.5

Note that our expectation (mean) is different from our average. The average is the random variable, it might change between experiments and with sample size. The mean (expectation) will never change. A higher number of trials will make the average more likely to approach the mean.

In this course, the average will be used as our random variable, we will examine how the average changes between experiments and its variance (error bars). The expectation will never have error bars.

E(ξ)=∑kxkPk

"take the product of the value with the probability and add it up for every possible value."

Example: gambling

Cast a die.

E(ξ)=∑k=13xkPkE(ξ)=10⋅13+3⋅16−5⋅12=1.333...

So, if we play the game infinitely many times, we will gain 1.333€ per round, although we might lose money at some point and gain money at others. If you keep playing the game then you will eventually gain this much per round overall.

Expectation of the sum of two dice

We have a blue die and a red die.
ξ is the number on the blue die
η is the number on the red die

E(ξ+η)=(5+1)+(3+1)+...n

In this case, since we are looking for the expectation, n→∞

We can rearrange this to add up the blue dice numbers and red numbers separately:

E(ξ+η)=(5+3+...)n+(1+1+...)n=E(ξ)+E(η)

"The expectation of the sum is the sum of the expectation"

Important formulas

Expectation of Sum in Binomial Distribution:

Probability of ξ=1
ξ1 is either ξ1=1 (meaning yes) with probability p, or ξ1=0 (no, with probability 1−p)

Continue for ξ2...

The expectation for ξ1:
E(ξ1)=1⋅p+0⋅(1−p)=p

This is true for each ξn=p

So, the expectation of the sum in a binomial dist is:

E(ξ1+ξ2+...+ξn)=np

This of course also carries on to the Poisson Distributions, where λ=np, so the expectation of the sum is just equal to λ.