In a random experiment, the outcomes may not always be numerical and we maybe interested in some consequences of its random outcome. These outcomes maybe associated with some numerical values of interest using the notation of a random variable.
Definition 1 (Random variable) :
A random variable is a function X:Ω→R with the property that {ω∈Ω:X(ω)≤x}∈F for each x∈R. Random variables map Ω into R.
Example 1
A fair coin is tossed twice. The sample space can be written as Ω={HH,HT,TH,TT}. For ω∈Ω, let X(ω) be the number of heads in ω so X(HH)=2,X(HT)=X(TH)=1,X(TT)=0. This function X:Ω→(R) is a random variable with respect to the σ algebra F={ϕ,Ω,{TT},{HH,HT,TH},{HH},{HT,TH,TT}},
Example 2
Let W be a random variable based on the experiment where a person A is gambling B rs amount on the result of the experiment. He gambles cumalatively so that his fortunes double everytime a head appears and is annhilated when a tail appears. Lets assume that the person A has gambled twice. The sample space can be written as Ω={HH,HT,TH,TT}. For ω∈Ω and the sigma algebra F={ϕ,Ω,{TT,TH,HT},{HH}}, so W(HH)=4B,W(HT)=W(TH)=W(TT)=0.
After the experiment is done and the outcome ω∈Ω is known, a random variable X:Ω→R takes some value.
Definition 2 (Cumulative Distribution Function) :
The distribution function of a random variable X is the function FX:R→[0,1] given by FX(x)=P(X≤x)
For Example 1, if PX(x)=1/4, for all x∈X
FX(x)=⎩⎨⎧041431x<00≤x<11≤x<2x≥2
For Example 2, if PW(ω)=1/4, for all ω∈W
FW(ω)=⎩⎨⎧0431ω<00≤ω<4ω≥4
The CDF F has the following properties
limx→−∞F(x)=0, limx→∞F(x)=1
if x<y. then F(x)≤F(y)
F is a right continous, that is F(x+h)→F(x) as h→0
F is the cumulative distribution function of some random variables if and only if it satisfies the above 3 properties.