Discrete Random
Discrete Random
&
Discrete Probability Distribution
Discrete Random Variable
Variable is defined as a characteristic or attribute that can assume different
values.
A random variable is a variable whose values are determined by chance .
A discrete random variable is a variable that can take on a finite number of
different values.
• Example: Find the mean of the number of spots that appear when a
die is tossed.
Exp-2
Variance of a probability dist.
Example-1
• A box contains 5 balls. Two are numbered 3, one is numbered 4, and two
are numbered 5. The balls are mixed and one is selected at random.
After a ball is selected, its number is recorded. Then it is replaced. If the
experiment is repeated many times, find the variance and standard
deviation of the numbers on the balls.
Example-2
Expectation/Expected value
• In probability and statistics, the expectation or expected value, is
the weighted average value of a random variable.
• We expect to get the average when we are conducting a probability
experiment.
• 4. Each trial is independent. This simply means that the outcome of one trial
does not affect the outcome of another trial. For example, suppose we flip a coin and it
lands on heads. The fact that it landed on heads doesn’t change the probability that it
will land on heads on the next flip. Each flip (i.e. each “trial”) is independent.
Binomial Probability distribution
• A probability distribution that has only two outcomes: success & failure
Notations:
n: number of trials repeated
p: the probability of a successful outcome in a single trail.
q: the probability of a failure
X : the number of successes that occur in the n-trails.
P(X): the probability of getting “X” successes .
Example: Flip a coin 1000 times & getting 600 heads.
Here n=1000; Success is “getting heads” ; p=0.50; q=0.50; X=600
Note: Difference between p & X: X is the number of successes we are interested in &
p is the probability of a single trail.
Example-1: [Weighted Die]
• A probability of rolling a die and getting ‘4’ is 30%. The die is rolled 10-
times, find the probability of getting
i. exactly 8 4’s?
ii. At most 8 4’s?
Solution:
Here n=10;
Success(trail by trail based): Getting a ‘4’
Failure: Getting 1,2,3,5,6.
p=0.3; q=1-p=0.7
X=8; P(8)=? …
Example-2: [Cards]
• You draw 7 cards with replacement, you win the game if you get
a) At least 5 hearts
b) Exactly 4 hearts
c) At most 3 hears
d) More than 2 hearts
e) Less than 6 hearts
Solution:
N=7; Success: Getting a heart; Failure: Getting other than heart
p=13/52=0.25; q=39/52=0.75
X=5,6,7