General facts about Random Variables
A random variable is an object
Example 1. Our set is
Example 2. Our set is
The average of a function
Note. Moments are not always defined: the series
or the integral
might not converge.
If we have multiple random variables
We can define the joint probability distribution
Let's focus on the case with two random variables
We can obtain the marginal distribution function of
Two random variables are independent if
The covariance is defined as
If two RVs are independent, the covariance is equal to zero (the opposite is not true)
The distribution of
which implies Bayes' formula
The moment generating function is defined as
By Taylor expanding one gets
and therefore
where
For multivariate distributions we can similarly define
if
Suppose that we have
The moment generating function associated to the probability density
if the variables
from which we obtain
or equivalently
This implies that if we write
the value of
These quantitities
(
If we are interested in summing many variables
so it’s convienent to consider variables with small mean and variances. In particular we can (always!) write
where
By inserting this choice in the equations above we get
which corresponds to
in the limit of
which corresponds to a Gaussian distribution
Coin with probability of Head
Toss it
Imagine a sequence
If a sequences of length
Each coin has the same probability of turning head or tail.
But there are many sequences with the same number of heads! How many?
Let's call this number (the number of tosses of
Let's forget for a sec about tosses and coins. Imagine we have
There are
Of these
We have that
where the number of ways to order
We have
And therefore the binomial distribution reads