Lecture 7- Discrete Probability Distributions Flashcards
A random variable
one whose value is determined by the outcome of a random experiment.
A discrete random variable
assumes countable variables
A continuous random variable
assumes values that can be measured or a value that is contained in one or more intervals.
A probability distribution
links a random variable X with the probability that X assumes a discrete value or a range of values. This can be presented by a table, function or formula
*Random variables can be discrete or continuous
*Probability distributions are also correspondingly discrete or continuous
Discrete vs Continuous Random Variables
Every random variable has associated with it a probability distribution.
*discrete random variables possess discrete probability distributions
*continuous random variables possess continuous probability distributions.
Discrete Probability Distributions covered in this course
The Binomial Distribution
*The Poisson Distribution
the Approximation of the Binomial Distribution by the Poisson Distribution.
Continuous Probability Distributions covered in this course
The Normal Distribution
*The Student-t Distribution
*The Chi Square Distribution
*The F Distribution
Two types of notation
Factorials
–The Combination Notation
Factorials
The value of the factorial of a number is obtained by multiplying all the integers from that number to 1
*The symbol n!, read as “n factorial”, represents the product of all the integers from n to 1.
*In other words,n! = (n) (n-1) (n-2)(n-3)…….3.2.1
*By definition, 0! = 1
*For example
–6! = 6x5x4x3x2x1
–10! = 10x9x8x7x6x5x4x3x2x1
Combinations
Combinations give the number of ways r elements can be selected from n elements.
*The number of Combinations for selecting r from n distinct elements is given by:
*nCr = n !
r! ( n-r)!
*5C2 is therefore calculated as (5!) / (2! 3!)
= 5 x 4 x 3 x 2 x 1
(2x1) (3x2x1)
= 120/12 = 10
All Scientific Calculators possess the “Combination” Formula
Binomial Experiment
one that possesses the following properties:
–The experiment consists of n repeated trials, n = 0, 1, 2, …
–Each trial results in an outcome that may be classified as a success or a failure
–The probability of a success, denoted by p, remains constant from trial to trial (in our illustration, p = 1/2)
–The repeated trials are independent
If any ONE of these conditions is violated, we do NOT have a Binomial Experiment.
Example of binomial experiment (tossing a fair coin)
P(Heads) = ½, P(Tails) = ½
*If you were to toss the coin 10 times, would you get Heads for 5 of those times?
*The truth is that you can get Heads any amount of times ranging from 0 to 10
*Of course, you are more likely to get 5 than 0, but the fact remains that both these numbers (as well as others in the range 0-10) are possible
*So the question is, how probable is each one?
*In other words, if we define the random variable X as the number of Heads we get, can we create a probability distribution for X?
the experiment is the tossing of the coin
*You are doing 10 trials of this experiment (tossing the coin 10 times)
*Each time you toss the coin (for each trial of the experiment), only one of two outcomes is possible: Heads (H) or Tails (T)
*No matter the previous outcomes, for each time you toss the coin, the P(H) remains ½ and the P(T) remains ½
Example of binomial experiment pt 2
Tossing a Fair Coin 30 times, defining X as the r.v. the number of Heads, and we are interested in creating the probability distribution for X
–The experiment (tossing the coin) consists of n repeated trials, n = 0, 1, 2, … (n=10)
–Each trial (tossing the coin) results in an outcome that may be classified as a success (Heads) or a failure (Tails)
–The probability of a success, denoted by p, remains constant from trial to trial (the probability of getting Heads remains constant each time, and p= ½)
–The repeated trials are independent (however many Heads we get on previous trials, that is not affecting the probability of getting Heads in future trials
The Binomial Distribution Formula
The formula is developed out of our attempt to put meaning to the question
‘What does P(X = r) mean?’
*P(X = r) ≡ P(r successes in n trials)
≡ P(r successes and n-r failures)
*The event of ‘r successes and n-r failures’ can occur in several ways; each way is called a combination of r successes and n-r failures.
*In our example, suppose we wanted to know P(X=2) : in other words, when tossing the coin 10 times, what is the probability that we get 2 Heads?
*If we get 2 Heads (r successes), that means we are getting 8 Tails (n-r failures)
The Binomial Distribution Formula
The formula is developed out of our attempt to put meaning to the question
‘What does P(X = r) mean?’
*P(X = r) ≡ P(r successes in n trials)
≡ P(r successes and n-r failures)
*The event of ‘r successes and n-r failures’ can occur in several ways; each way is called a combination of r successes and n-r failures.
*In our example, suppose we wanted to know P(X=2) : in other words, when tossing the coin 10 times, what is the probability that we get 2 Heads?
*If we get 2 Heads (r successes), that means we are getting 8 Tails (n-r failures
If X is a random variable that follows a Binomial Distribution, then
P(X = r) = nCr (p)r (q)n-r
*n = no of trials of the experiment
*p = probability of a success
*q = probability of a failure
*NOTE: Recognise the “Combination” Formula we previously introduced?