Discrete Random Variables and Probability
Discrete Random Variables and Probability
Here are the key characteristics of a probability distribution for a discrete random variable:
• Each probability is between 0 and 1 (inclusive): For any possible value x of the random
variable X, the probability P(X=x) must satisfy 0 ≤ P(X=x) ≤ 1. You can't have a negative
probability or a probability greater than 1.
• The sum of all probabilities is equal to 1: If you consider all the possible values that the
discrete random variable can take, the sum of their probabilities must equal 1.
Mathematically, if the possible values of X are x1,x2,x3,…, then: ∑ P(X=xi) =1
Let's look at a simple example:
This table represents the probability distribution of the discrete random variable X. It tells us
the likelihood of getting 0, 1, or 2 heads in two coin flips.
Summary :
The mean or expected value of a discrete random variable X, denoted by E(X) or μ, is a measure
of the central tendency of the distribution. It's the weighted average of all possible values that X
can take, where the weights are the corresponding probabilities.
The variance of a discrete random variable X, denoted by Var(X) or 𝝈𝟐 , measures the spread or
dispersion of the distribution around its mean. It quantifies how much the values of X tend to
deviate from the expected value.
5) Standard Deviation:
Standard deviation = 𝝈 = 𝝈𝟐
6) Coefficient of Variation :
𝝈
C.V = * 100 %
𝝁
True/False
1) Variables which take on values only at certain points over a given interval are called
continuous random variable . False ( continuous discrete)
2) The number of automobiles sold by a dealership in a day is an example of a discrete random
variable. True
3) The mean or the expected value of a discrete distribution is the long run average of the
occurrences. True
4) To compute the variance of a discrete distribution it is not necessary to know the mean of the
distribution. False (not necessary must be calculated)
Multiple choice
The following represents the probability distribution for the daily demand of microcomputers at a
local store:
1) The value of K equal
(a) 0.3 (b) 1.7 (c) 0.9 (d) 0.2 Demand(x) 0 1 2 3 4
2) The expected daily demand is : Probability 0.1 0.2 K 0.2 0.2
(a) 1.0 (b) 2.2 (c) 2.0 (d) 4.0 P(x)
3) The variance of daily demand is:
(a) 6.4 (b) 4.84 (c) 1.56 (d) 2.2
4) The probability of having a demand for at least two microcomputer:
(a) 0.7 (b) 0.3 (c) 0.4 (d) 1.0
Solution
Number of goals(x) 0 1 2 3 4
Probability p(x) 0.05 0.15 0.35 0.30 K
1) The value of K equal? (a) 1 (b) 0.15 (c) 0.30 (d) 0.85
2) The expected number of goals per game is (a) 0 (b) 1 (c) 2 (d) 2.35
3) The variance of number of goals per game is (a) 0 (b) 1 (c) 1.13 (d) 6.65
4) What is the probability that in a given game the team will score at least 1 goal
(a) 0.95 (b) 0.20 (c) 1.0 (d) 0.55
5) What is the probability that in a given game the team will score less than 3 goals
(a) 0.85 (b) 0.8 (c) 0.55 (d) 0.45
6) What is the probability that in a given game the team will score no goals
(a) 0.95 (b) 0.75 (c) 0.60 (d) 0.05
Solution
➢ Think of it as a way to model scenarios where you have a repeated process, and each
time there are only two possible outcomes.
Key Characteristics and Conditions for Using a Binomial Distribution:
For a situation to be modeled by a binomial distribution, the following conditions must be met:
1) Fixed Number of Trials (n): The experiment consists of a fixed number of repetitions or
trials.
2) Two Mutually Exclusive Outcomes: Each trial has only two possible outcomes, often
labeled as "success" or "failure".
3) Constant Probability of Success (p): The probability of "success" (denoted by p) remains
the same for each trial. The probability of "failure" (denoted by q) is therefore (1 - p).
4) Independent Trials: Each trial must be independent of the others. The outcome of one trial
does not affect the outcome of subsequent trials.
When to Use the Binomial Distribution:
➢ The binomial distribution is used in situations where you want to find the probability of a
specific number of successes in a set number of trials, given that each trial:
• Has only two possible outcomes.
• Is independent of the others.
• Has the same probability of success.
➢ Examples of Binomial Distribution:
• Coin Tossing: The probability of getting exactly 7 heads in 10 coin tosses (where p = 0.5 for
a fair coin).
• Quality Control: The probability that exactly 3 items out of a sample of 20 are defective,
given a known defect rate.
• Medical Trials: The probability that a certain number of patients out of a trial group respond
positively to a new drug.
• Surveys: The probability that a specific number of people in a random sample will answer
"yes" to a question.
• Sports: Estimating the chances of a basketball player making a certain number of free
throws in a given number of attempts.
The Binomial Probability Formula:
➢ The probability of getting exactly x successes in n trials is given by the probability mass
function (PMF):
P(X=x) = n 𝒄𝒙 𝒑𝒙 (𝟏 − 𝒑)𝒏−𝒙
Where:
• [ n 𝒄𝒙 ] (read as "n combination x") is the binomial coefficient, which calculates the number
n!
of ways to choose x successes from n trials. It's calculated as: (n 𝒄𝒙 )= (where "!"
x! (n−x)!
denotes the factorial, e.g., 4!=4×3×2×1)
Parameters of the Binomial Distribution:
Mean (Expected Value): The average number of successes you would expect. μ=np
Variance: A measure of how spread out the distribution is 𝝈𝟐 = np(1-p)
Standard Deviation: The square root of the variance, also indicating the spread 𝝈 = 𝑛𝑝(𝟏 − 𝐩)
Shape:
• Statistics and Probability: It's a fundamental concept for understanding discrete probability.
• Finance: Used in models for dichotomous outcomes, such as predicting whether a borrower will default or
not, or whether an asset price will go up or down. Banks might use it to estimate the likelihood of loan
defaults and determine reserve amounts.
• Quality Control: To determine the probability of finding a certain number of defective items in a
production batch.
• Social Sciences: Modeling outcomes like whether a person will vote for a particular candidate.
• In summary, the binomial probability distribution is a powerful tool for analyzing experiments with a
fixed number of independent trials, each having only two possible outcomes and a constant
probability of success.
Example
In san Francisco 30% of workers take public transportation daily. In a sample of 10 workers ,
➢ what is the probability that exactly 3 workers take public transportation daily .
➢ P = 0.3 the binomial distribution shape is skewed to the right since p< 0.5
End of chapter 5