Docsity

Understanding Random Variables & Probability Distributions: Discrete & Binomial, Study notes of Probability and Statistics

Toggle sidebar
bg1
Lecture 8
1. Random Variables
We would like to say that a random variable Xis a “numerical outcome of
a complicated experiment.” This is not sufficient. For example, suppose
you sample 1,500 people at random and find that their average age is 25.
Is X=25 a “random variable”? Surely there is nothing random about the
number 25!
What is random? The procedure that led to 25. This procedure, for
a second sample, is likely to lead to a different number. Procedures are
functions, and thence
Definition 8.1. A random variable is a function Xfrom Ωto some set D
which is usually [for us] a subset of the real line R, or d-dimensional space
Rd.
In order to understand this, let us construct a random variable that
models the number of dots in a roll of a fair six-sided die.
Define the sample space,
Ω={1, 2, 3, 4, 5, 6}.
We assume that all outcome are equally likely [fair die].
Define X(ω) = ωfor all ω∈Ω, and note that for all k=1, . . . , 6,
P({ω∈Ω:X(ω) = k})=P({k}) = 1
6. (5)
This probability is zero for other values of k. Usually, we write {X∈A}in
place of the set {ω∈Ω:X(ω)∈A}. In this notation, we have
P{X=k}=!1
6if k=1, . . . , 6,
0 otherwise. (6)
25
pf3

Partial preview of the text

Download Understanding Random Variables & Probability Distributions: Discrete & Binomial and more Study notes Probability and Statistics in PDF only on Docsity!

Lecture 8

1. Random Variables

We would like to say that a random variable X is a “numerical outcome of a complicated experiment.” This is not sufficient. For example, suppose you sample 1,500 people at random and find that their average age is 25. Is X = 25 a “random variable”? Surely there is nothing random about the number 25!

What is random? The procedure that led to 25. This procedure, for a second sample, is likely to lead to a different number. Procedures are functions, and thence

Definition 8.1. A random variable is a function X from Ω to some set D which is usually [for us] a subset of the real line R , or d-dimensional space R d^.

In order to understand this, let us construct a random variable that models the number of dots in a roll of a fair six-sided die.

Define the sample space, Ω = {1, 2, 3, 4, 5, 6}.

We assume that all outcome are equally likely [fair die].

Define X(ω) = ω for all ω ∈ Ω, and note that for all k = 1,... , 6,

P ({ω ∈ Ω : X(ω) = k}) = P({k}) =

This probability is zero for other values of k. Usually, we write {X ∈ A} in place of the set {ω ∈ Ω : X(ω) ∈ A}. In this notation, we have

P{X = k} =

1 6 if^ k^ =^ 1,... , 6, 0 otherwise.

This is a math model for the result of a coin toss.

2. General notation

Suppose X is a random variable, defined on some probability space Ω. By the distribution of X we mean the collection of probabilities P{X ∈ A}, as A ranges over all sets in F.

If X takes values in a finite, or countably-infinite set, then we say that X is a discrete random variable. Its distribution is called a discrete distribution. The function f(x) = P{X = x}

is then called the mass function of X. Note that f(x) = 0 for all but a countable number of values of x. The values x for which f(x) > 0 are called the possible values of X.

Some important properties of mass functions:

  • 0! f(x)! 1 for all x. [Easy]

x f(x) =^ 1.^ Proof:^

x f(x) =^

x P{X^ =^ x}, and this is equal to P(∪x {X = x}) = P(Ω), since the union is a countable disjoint union.

3. The binomial distribution

Suppose we perform n independent trials; each trial leads to a “success” or a “failure”; and the probability of success per trial is the same number p ∈ (0 , 1).

Let X denote the total number of successes in this experiment. This is a discrete random variable with possible values 0,... , n. We say then that X is a binomial random variable [“X = Bin(n , p)”].

Math modelling questions:

  • Construct an Ω.
  • Construct X on this Ω. Let us find the mass function of X. We seek to find f(x), where x = 0,... , n. For all other values of x, f(x) = 0.

Now suppose x is an integer between zero and n. Note that f(x) = P{X = x} is the probability of getting exactly x successes and n − x failures. Let Si denote the event that the ith trial leads to a success. Then,

f(x) = P

S 1 ∩ · · · ∩ Sx ∩ Scx+ 1 ∩ · · · Scn

where we are summing over all possible ways of distributing x successes and n − x failures in n spots. By independence, each of these probabilities