3  Random variables

Definition 3.1 (Random variable)
Let’s consider a probability space (Ω,F,P), then a random variable is a map where (Ω,B)=(R,B(R)) and therefore the map takes values on the real line, i.e. X:(Ω,B)(R,B(R)) and such that: BB(R)X1(B)={ωΩ:X(ω)B}B

Note that when X is a random variable the test for measurability (), became: X1((,y])=[X(ω)y]ByR

Discrete vs continuous random variables

Definition 3.2 Let X be a random variable with set of possible outcomes Ω. Then, X is called discrete random variable if Ω is either a finite set or a countably infinite set. X is called continuous random variable if Ω is either a an uncountable infinite set.

3.1 Induced distribution function

Consider a probability space (Ω,B,P) and a measurable map X:(Ω,B)(Ω,B), then the composition PX1 is again a map. In this way at each element ωΩ is attached a probability measure. In fact, the composition is a map such that PX1:(Ω,B)[0,1](Ω,B)X1(Ω,B)P[0,1] In general, the probability of a subset AB is denoted equivalently as: PX1(A)=P(X1(A))=P(X(ω)A)

Example 3.1 Let’s continue from the and compute the probability of PX1({+1}). Let’s consider one random extraction from the 52 cards, then for each distinct number we have 4 copies. Therefore the probability is computed as: P(X1({+1}))=P({ωΩ:X(ω){1}})==P({2,3,4,5,6})==5452=51338.46% Let’s now consider the probability of observing either {+1} or {1}, then P(X1({1,+1}))=P({ωΩ:X(ω){1,+1}})==P({2,3,4,5,6,10,11,12,13,14})==10452=101376.92% Finally, by property of the probability measure P(X(ω){0})=1P(X(ω){1,+1})23.08%.

3.1.1 Distribution function on R

When X is a random variable the composition P(X1(A)) is a probability measure induced on R by the distribution: P(X1((,y])=P(Xy)yR Hence, it is possible to attach to a random variable a distribution function of X that is a measure induced on the real line R and defined as: FX(y)=P(X(ω)[,y))=P(Xy) The distribution of X is a function that goes from FX:(R,B(R))[0,1]. If a random variable has a continuous and it’s distribution function is differentiable, then it is possible to define the density as: (3.1)fX(y)=dFX(y)dydFX(y)=fX(y)dy