Random Variables Observation
Random Variables Observation
Random Variables Observation
RANDOM VARIABLES
AND PROBABILITY
DISTRIBUTIONS
STATISTICS AND PROBABILITY MAGTANONG, MA. CRISTINA F, LPT
What is a random variable?
Random Variable is a function that associates a
real number to each element in the sample space. It is
a variable whose values are determined by chance.
A random variable is discrete random variable if its
set of possible outcomes is countable. Mostly,
discrete random variables represent count data, such
as the number of defective chairs produced in a
factory.
A random variable is a continuous random variable
if it takes values on a continuous scale. Often,
continuous random variables represent measured
data, such as heights, weights, and temperatures.
A. Classify the following random variables as discrete or
continuous.
1. The number of defective computers produced by a
manufacturer
2. The weight of newborns each year in a hospital
3. The number of siblings in a family
4. The amount of paint utilized in a building project
5. The number of dropouts in a school
6. The speed of a car
7. The number of female athletes
8. The time needed to finish the test
9. The amount of sugar in a cup of coffee
10. The number of people who are playing lotto each day
11. The number of accidents per year in an accident prone area
12. The amount of salt and ice to preserve ice cream
13. The number of all public school students in the world
14. The magnitude of several earthquakes
15. The number of private school teachers in the
Philippines
16. The body temperature of a patient
17. The size of a Flat TV screen
18. The number of households in a subdivision
19. The heights of students
20. The vital statistics a female candidate
21. The number of used clothes for the refugees
22. The number of eggs in one tray
RR 0
RB 1
BR 1
BB 2
Note: Using the idea of a combination (₁₁C₂ = 55), there are 55 outcomes of the sample
space. In that combinations, Blue doesn’t occur if you pick up all RED. Sometimes,
BLUE occurs only once or twice.
No Black 0
1 Black 2
2 Black 1
0 Back 1
1 Black 8
2 Black 6
Examples:
5 TAILS TTTTT
1. What is the probability of getting an even number in the experiment of rolling a die?
Solution:
S = {1, 2, 3, 4, 5, 6} n(S) = 6
A = {2, 4, 6} n(A) = 3
𝒏(𝑨)
P(A) = 𝒏(𝑺)
3
=
6
1
=2
STATISTICS AND PROBABILITY SAMSUDIN N. ABDULLAH, Ph.D.
2. What is the probabil ty that the sum of the faces of the two dice is 8?
Solution:
F = {(2, 6), (3, 5), (4, 4), (5, 3), (6, 2)}
n(F) = 5
n(S) = 36
5
P(F) = 36
5
=
36
STATISTICS AND PROBABILITY SAMSUDIN N. ABDULLAH, Ph.D.
Find the probability of the following events.
Event (E) P(E)
1 Getting an even number in a single roll of a die
4 The probability that all children are boys if a couple has three children
5 Getting an odd number and a tail when a die is rolled and a coin is tossed
simultaneously
6 Getting a sum of 11 when two dice are rolled
10 Getting a red ball from a box containing 3 red and 6 black balls
9 Getting doubles when two dice are rolled E = {10 of Spade, 10 of Club}
10 Getting a red ball from a box containing 3 red and 6 black balls
E = {Q of Diamond, Q of Heart}
E = {(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)}
6. n(E) = ( ₇C₃) = = = = 35
P(E) = =
They cannot
9. P(1) = 0.22, P(2) = 0.11, P(3) = 0.17,
P(4) = 0.50
4. P(X) = for x = 1, 2, 3, 4
5. P(X) = for x = 1, 2, 3, 4, 5
Seatwork (1 whole) (Show your solution).
A box contains 5 yellow ball, 4 brown
balls, 4 orange balls and 3 black balls. If
four balls are drawn at random, what is
the probability that
1. they are all yellow?
2. three are brown and one is black?
3. exactly two are orange?
4. none is black?
5. they are of different colors?
STATISTICS AND PROBABILITY SAMSUDIN N. ABDULLAH, Ph.D.
Week 2
Probability to a Random Variable
February 28, 2022
Review of the
Previous Lesson
What was our previous lesson?
________
___
_________
________
CHOOSE 1
A or Z
What was our previous lesson?
________
A__
_________
_A__A___
CHOOSE 1
Z or C
What was our previous lesson?
___C____
A__
C________
_A__A___
CHOOSE 1
E or U
What was our previous lesson?
___C_E_E
A__
C________
_A__A__E
CHOOSE 1
E or U
What was our previous lesson?
___C_E_E
A__
C_____U_U_
_A__A__E
CHOOSE 1
I or O
What was our previous lesson?
_I_C_E_E
A__
C___I_U_U_
_A_IA__E
CHOOSE 1
I or O
What was our previous lesson?
_I_C_E_E
A__
CO__I_UOU_
_A_IA__E
CHOOSE 1
N or C
What was our previous lesson?
_I_C_E_E
AN_
CON_INUOU_
_A_IA__E
CHOOSE 1
Z or S
What was our previous lesson?
_ISC_E_E
AN_
CON_INUOUS
_A_IA__E
CHOOSE 1
R or N
What was our previous lesson?
_ISCRE_E
AN_
CON_INUOUS
_ARIA__E
CHOOSE 1
T or U
What was our previous lesson?
_ISCRETE
AN_
CONTINUOUS
_ARIA__E
CHOOSE 1
A or D
What was our previous lesson?
DISCRETE
AND
CONTINUOUS
_ARIA__E
Our Previous Lesson is..
DISCRETE
AND
CONTINUOUS
VARIABLE
Previous Lesson
• A random variable is discrete random variable if its
set of possible outcomes is countable. Mostly,
discrete random variables represent count data,
such as the number of defective chairs produced in
a factory.
• A random variable is a continuous random
variable if it takes values on a continuous scale.
Often, continuous random variables represent
measured data, such as heights, weights, and
temperatures.
Examples of random variables
1. The number of defective computers produced
by a manufacturer (Discrete)
2. The weight of newborns each year in a hospital
(Continuous)
3. The number of siblings in a family (Discrete)
4. The amount of paint utilized in a building
project (Continuous)
5. The number of dropouts in a school (Discrete)
Decision-making is an important aspect in
business, education, insurance, and other real-
life situations. Many decisions are made by
assigning probabilities to all possible outcomes
pertaining to the situation and then evaluating
the results. This situation requires the use of
random variable and probability distribution.
Discrete Probability Distribution or
Probability Function consists of the values a
random variable can assume and the
corresponding probabilities of the values.
STATISTICS AND PROBABILITY MAGTANONG, MA. CRISTINA F. ,LPT
Properties of a Probability
Distribution
1. The probability of each value of the
random variable must be between or equal
to 0 and 1. In symbol, we write it as 0 ≤ P(E)
≤ 1.
2. The sum of the probabilities of all values
of the random variables must be equal to 1.
In symbol, we write it as Ʃ P(E) = 1.
Number of Heads
0 1 2 3 4
P(Z)
1 1 3 1 1
16 4 8 4 16
0.4
0.3
Probability P(Z)
0.2
0.1
0 1 2 3 4
Number of Tails (Z)
Probability P(Y)
0.3
Probability P(Y)
0.2
0.1
0 1 2 3
Number of Tails (Y)
Probability P(x)
0.8
0.6
Probability P(X)
0.4
0.2
0 1 2
Number of Tails (X)
X 0 2 4 6 8
2) P(X) 𝟏 𝟏 𝟏 𝟏 𝟏
𝟔 𝟔 𝟑 𝟔 𝟔
X 1 2 3 5
3) P(X) 𝟏 𝟏 𝟏 𝟏
𝟒 𝟖 𝟒 𝟖
X 4 8 12 15 17
4) P(X) 𝟏 𝟏 𝟏 𝟏 𝟏
𝟓 𝟖 𝟖 𝟓 𝟖
X 1 3 5 7
5) P(X) 0.35 0.25 0.22 0.12
Solve the following problems.
1. The daily demand for copies of a movie magazine
at a variety store has the probability distribution as
follows.
Number of Copies X Probability P(X)
0 0.06
1 0.14
2 0.16
3 0.14
4 0.12
5 0.10
6 0.08
7 0.07
8 0.06
9 0.04
10 0.03
Questions:
1. What is the probability that three or more
copies will be demanded in a particular day? 0.64
2. What is the probability that the demand will
be at least two but not more than six? 0.60
3. What is the probability that the demand is
between four and eight? 0.25
4. What is the probability that the demand is
less than nine? 0.93
5. What is the probability that the number of
demand is even number? 0.45
6. What is the probability that the demand is
more than five? 0.28
Mean of a Discrete Probability Distribution
Preparatory Lessons:
A. Given the values of the variables x and y,
evaluate the following summations:
x₁ = 4, x₂ = 2, x₃ = 5, x₄ = 1
y₁ = 2, y₂ = 1, y₃ = 0, y₄ = 2
1. Ʃx = 4 + 2 + 5 + 1 = 12
2. Ʃy = 2 + 1 + 0 + 2 = 5
3. Ʃxy = 4(2) + 2(1) + 5(0) + 1(2) = 12
4. Ʃ(x + y) = (4 + 2) + (2 + 1) + (5 + 0) + (1 + 2) =
17
5. Ʃ4xy = 4(4)(2) + 4(2)(1) + 4(5)(0) + 4(1)(2) = 48
STATISTICS AND PROBABILITY MAGTANONG, MA. CRISTINA F. ,LPT
B. The following are the scores of 40
students in a test. Compute the mean score.
Score Number of Students
42 8
50 12
53 9
38 7
46 4
Solution:
x = = = 46.575
Mean = = 3.5
I. Find the mean, median and mode of each set
of data. Show your solution if any. Round off
your answers in 4 decimal palaces.
1) 10, 8, 7, 15, 20, 8, 8
Solution:
x=
= =8
x = 10.8571 = 8
I. Find the mean, median and mode of each set
of data. Show your solution if any. Round off
your answers in 4 decimal palaces.
2) 150, 80, 95, 115, 250, 300, 125, 130, 150,
150
Solution:
x=
= = = = 140
= 154.5000 = 150
II. Solve for x , and of the following set of
scores.
Scores Frequency
25 10
23 5
20 4
15 11
Solution:
x=
= = = = 21.5000
= 20.3333 = 15
Formula for the Mean of the Probability
Distribution
µ = Ʃx · P(x)
Examples:
1. The probabilities that a customer will buy 1, 2, 3, 4,
or 5 items in a grocery store are What is the average
number of items that customer will buy?
Solution:
µ = 1() + 2() + 3() + 4() + 5()
= + + + +
µ = 3.1
QUIZ. Solve for the mean of the probability
distribution. (10 mins)
1 0.10
2 0.18
5 0.22
6 0.19
7 0.15
11 0.16
Ʃx.P(x) = Ʃ(x - µ)².P(x) =
A = 0.3413 or 34.13%
A = 2(0.4938)
= 0.9876 or 98.76%
2.
-1.25
A = 0.5 – 0.3944
= 0.1056 or 10.56%
A = 0.4938 + 0.2734
= 0.7672 or 76.72%
= 0.1056 + 0.2857
= 0.3913 or 39.13%
= 0.1056 or 10.56%
STATISTICS AND PROBABILITY SAMSUDIN N. ABDULLAH, Ph.D.
A = 0.5 – 0.3944 + 0.4772 – 0.3159
= 0.1056 + 0.1613
= 0.2669 or 26.69%
STATISTICS AND PROBABILITY SAMSUDIN N. ABDULLAH, Ph.D.
A = 0.5 – 0.3944 + 0.3413 + 0.5 – 0.3159
= 0.1056 + 0.3413 + 0.1841
= 0.6310 or 63.10%
STATISTICS AND PROBABILITY SAMSUDIN N. ABDULLAH, Ph.D.
-2.75
A = 0.5 – 0.4970
= 0.003 or 0.30%
STATISTICS AND PROBABILITY SAMSUDIN N. ABDULLAH, Ph.D.
-2.75
2. z = = = = -2
3. z = = = = 0.2
4. z = = = = -0.8
5. z = = = = 1.6
7. z = = = = 0.4
8. z = = = = -0.4
9. z = = = = 0
10. z = = = = -1.4
z= = = =2
A = 0.0987 + 0.4772
= 0.5759 or 57.59%
A = 0.5 – 0.1915
= 0.3085
250(0.3085) = 77.125 or 77
A = 0.5 – 0.2357
= 0.2643 or 26.43%
z = where:
= sample mean
μ = population mean
σ =population standard deviation
= -0.40
= 0.500 – 0.1554
= 0.3446 or 34.46%
= -2.83
=0
= 0.50 or 50%
= -0.2
= 0.0793 or 7.93%
= -0.3
= 0.0446 or 4.46%
Solution:
P(x > 95) = ? Thus, the probability of a randomly selected
student to have a score above 95 4.46%.
z=
= 1.7
z=
= -0.42
SAMPLE
Sample Mean
8 10
40 34 34
29 33 32
32.7 17
35 32.7 32
38
24 33 31
26 33 30
55
80 Figure 2
Figure 1
Descriptive Statistics of the two given sets of sample data
Figure 1 Figure 2
Mean 32.7 Mean 32.7
Standard Error 6.92989 Standard Error 0.4726
Median 27.5 Median 33
Mode None Mode 33
Standard Deviation 21.9142 Standard Deviation 1.4944
Sample Variance 480.233 Sample Variance 2.2333
Kurtosis 1.3037 Kurtosis -0.1518
Skewness 1.13241 Skewness -0.3595
Range 72 Range 5
Minimum 8 Minimum 30
Maximum 80 Maximum 35
Sum 327 Sum 327
Count 10 Count 10
Random Sampling refers to
the sampling technique in which
each member of the population
is given equal chance from a
population is called sample and
the process of taking samples is
called sampling.
Since survey research has a larger scope of
respondents, sampling technique is very
necessary. For instance, the population of the
research is 6,033 students, teachers, parents and
school administrators. It doesn’t mean that all of
these 6,033 target respondents will be given a
survey questionnaire. Sampling technique should
be done systematically so that expenses and time
will be minimized but the generality and reliability
of the information will be maintained.
Slovin’s Equation
n=
where:
n = desired sample
N = population
e = margin of error = 5% = 0.05
Students – 3050
Teachers – 550
Parents – 320
Principals – 150
n= Proportional Percentage:
= = 0.0894
Direction: Use the idea of a Normal Curve and the Central Limit
Theorem to solve the following problems. Illustrate the shaded
region of a normal curve representing your answer.
1. The IQ scores of children in a special education class are
normally distributed with a mean of 95 and a standard
deviation of 10.
a. What is the probability that one of the children has an IQ
score below 100?
b. What is the probability that a child has an IQ score above
120?
c. What are the chances that a child has an IQ score of 140?
d. How many children have IQ scores above 100 if there are
30 of them in class?
z=
II. α = 0.05
V. Computation:
II. α = 0.01
V. Computation:
II. α = 0.05
V. Computation:
II. α = 0.05
samples: 578, 605, 599, 790, 554, 615, 568, 498, 598, 625, 618, 608, 589, 580, 589
Question: Is the sample mean significantly different from the population mean?
V. Computation:
Solution:
x=
=
I. Ho: x = 594.41
Ha: x ≠ 594.41 = 600.9333
II. α = 0.05 z= =
=
III. z-test (Two-tailed)
= 0.2899
IV. The z-critical value = 1.96
II. α = 0.01
V. Computation:
VI. Decision Making/Conclusion
Since that z-computed value of -8.30565 is less
z= than the z-critical value of -2.58, we have to reject
the null hypothesis. The claim of a researcher is not
= true. Thus, the learning performance of male
students is significantly higher than female students
= in Mathematics.
II. α = 0.05
V. Computation:
VI. Decision Making/Conclusion
z= Since that z-computed value of 2.0618
is greater than the z-critical value of 1.96,
= we have to reject the null hypothesis.
Female students are more proficient in
= English compared with male students.
t=
V. Computation:
x=
=
x = 500.9
VI. Decision Making/Conclusion
t= Since that t-computed value of 0.4306 is less
than the t-critical value of 3.250, we have to
accept the null hypothesis. Thus, the net weights
=
of a sample of 10 boxes of soap are statistically
equal to the advertised brand of soap.
=
Testing a Hypothesis About Two
Sample Means (t-test)
𝒙₁−𝒙₂
t= ; Where:
𝒔₁² 𝒔₂²
ට +
𝒏₁ 𝒏₂
16. SOP: Are the public school teachers more satisfied with their
jobs compared to the private school teachers?