Random Variables and Probability Distribution
Random Variables and Probability Distribution
Random Variables and Probability Distribution
S HH , HT , T1, T 2, T 3, T 4, T 5, T 6
Exercises
Construct a tree diagram for the following experiments
and list the elements of their sample spaces.
1. Suppose that three items are selected at random
from a manufacturing process. Each item is
inspected and classified defective or non-
defective.
2. An experiment consists of tossing a die and then
flipping a coin if the number on the die is even. If
the number is odd, then the coin is flipped twice.
3. A coin is tossed until a tail or three heads appear.
Theprobability of an event A is the sum of weights
of all sample points in A. Therefore,
0 ≤ P(A) ≤ ,1
P ( ᶲ ) = 0, and
P (S) = 1.
Properties of the Probability
Activity 1
Toss a 1-peso coin three times and record the results
Count the number of heads that appeared
Activity 2
Hold your breath and record the time (use a cell phone
timer and record up to the nearest hundredth of a
second)
Statistical Experiment – an
activity that will produce
outcomes, or a process that will
generate data.
A random variable is a function that associates
a real number with each element in the
sample space. We use a capital letter, say X,
to denote a random variable and its
corresponding small letter, x, for one of its
values. Each possible value of X represents an
event that is a subset of the sample space for
the given experiment.
Sample Space X
RR 2
RB 1
BR 1
BB 0
Frequency and Relative Frequency Distributions of
the Number of TVs owned by City of Manila Families
Probability distribution
Number of
0 1 2 3
Heads (x)
1 2 3 4 5 6 7
A continuous variable is a quantitative variable that
can assume an infinitely many, uncountable number
of real number values. The value given to an
observation can include values as small as the
instrument of measurement allows.
Inan experiment, the outcome is said to be a
continuous random variable if an outcome can take
an uncountably infinite number of possible outcomes
within a specified real number interval. Here, it is
always possible to have an outcome between any
two existing ones. 0
1
Discrete Probability
Distributions
Discrete Probability Distributions
A probability distribution gives the probability for each value of the random variable.
Determine whether each distribution is a probability distribution.
𝑥
1. Does P(X) = (where X can take on the values of 0, 1, 2, 3,)
5
determine a probability distribution?
𝑥
2. Does P(X) = (where X can be 0, 1, 2, 3, or 4) determine a
10
probability distribution?
𝑥+3
3. Check whether the correspondence given by f(x) = for x =
15
1, 2, and 3 can serve as the probability distribution of some
random variable.
Example
Example
Let
the x-axis denote the independent variable,
which is the set of sample points, and let the
y-axis denote the dependent variable, which is
the corresponding probabilities of the
samples points.
PROBABILITY HISTOGRAM
P (X=x)
0.4
0.35
0.3
0.25
0.2
0.15
0.1
0.05
0 x
1 2 3 4
Binomial Distribution
A binomial distribution is a probability distribution with only two
possible outcomes: success and failure.
Let p = probability of success, q = probability of failure, and n =
number of trials performed during an experiment of getting x
successes. The probability of getting x successes out of n trials
is given by
P (x) = nCx • px • q n – x .
Binomial Distribution
The probability mass function of a binomial distribution is given by
X Success Failure
P(X) p q
where p + q = 1.
P (x) = nCx • p x •q n–x
Combination is an arrangement of
objects/things without reference to the order in
which they are arranged.
The number of possible combinations of r
objects from a collection of n objects is given
by the formula
𝒏!
nCr = 𝒏 −𝒓 ! 𝒓!
Note: Every arrangement in order of a set of things is called a permutation.
n! (n factorial) = n • (n – 1) • (n – 2) •…•(2) (1)
8C3
1. 8! 8! 8(7)(6)(5!)
= = = = 56
8 −3 !3! 5!3! 5!(3)(2)(1)
2. 7C2 7! 7! 7(6)(5!)
= = = = 21
7 −2 !2! 5!2! 5!(2)(1)
Example (Combination)
A shipment of 7 television sets contains 2 defective sets. A hotel makes a random purchase of 2 of
the sets. Let X represents the number of nondefective sets purchased by the hotel.
X (No. of Non-defective) 0 1 2
P (X = x) 1/21 10/21 10/21
P (X = 0) = (2/7)(1/6) = 1/21
P (X = 1) = (5/7)(2/6) + (2/7)(5/6) = 10/21
P (X = 2) = (5/7)(4/6) = 10/21
Example (binomial distribution)
P (x) = nCx • px • q n – x
Example (binomial distribution)
P (x) = nCx • px • q n – x
Example (binomial distribution)
1. Mean: 𝜇 = σ 𝑥 • 𝑃(𝑋 = 𝑥)
Students were asked to estimate the length (in inches) of a table. The
errors in the estimated values were recorded and tabulated as
follows:
Error (x) 3 4 5 6 7
P(X = x) 0.25 0.10 0.30 0.15 0.20
The report of a weather bureau on the forecast of the number of typhoons entering the
country’s area of responsibility is manifested in the following probability distribution.
Probability
No. of typhoons per month (x)
P(X=x)
0 0.15
1 0.35
2 0.30
3 0.10
4 0.10
x 19 20 21 22 23
P(X=x) 0.10 0.20 0.40 0.20 0.10