Probability/Random Variables

From testwiki
Jump to navigation Jump to search

Index


Random Variables: Definitions

Formally, a random variable on a probability space (Ω,Σ,P) is a measurable real function X defined on Ω (the set of possible outcomes)

X:Ω  ,

where the property of measurability means that for all real x the set

{Xx}:={ωΩ|X(ω)x}Σ, i.e. is an event in the probability space.

Discrete variables

If X can take a finite or countable number of different values, then we say that X is a discrete random variable and we define the mass function of X, p(xi) = P(X = xi), which has the following properties:

  • p(xi) 0
  • ip(xi)=1

Any function which satisfies these properties can be a mass function.

Continuous variables

If X can take an uncountable number of values, and X is such that for all (measurable) A:

P(XA)=Af(x)dx,

we say that X is a continuous variable. The function f is called the (probability) density of X. It satisfies:

  • f(x) 0 x 
  • f(x)dx=1

Cumulative Distribution Function

The (cumulative) distribution function (c.d.f.) of the r.v. X, FX is defined for any real number x as:

FX(x)=P(Xx)={i:xi xp(xi),if X is discretexf(y)dy,if X is continuous

The distribution function has a number of properties, including:

  • limxF(x)=0 and limxF(x)=1
  • if x < y, then F(x) ≤ F(y) -- that is, F(x) is a non-decreasing function.
  • F is right-continuous, meaning that F(x+h) approaches F(x) as h approaches zero from the right.

Independent variables