Module 2 - Lesson 4
Module 2 - Lesson 4
MATH 212
ENGINEERING DATA ANALYSIS
1|Page
ENGINEERING DATA ANALYSIS
Faculty Information:
Getting help
2|Page
ENGINEERING DATA ANALYSIS
TABLE OF CONTENTS
CONTENTS PAGE
Lesson 4 ………..……………………………….. 4
Application 4…………………………………………. 8
References ………………………………………….. 11
3|Page
ENGINEERING DATA ANALYSIS
Learning Outcome:
Introduction:
In science and in real life, we frequently have the occasion to study the
mutual interactions between two or more variables. For example, we might measure
the height and weight of person, or the IQ and birth weight of children, or the power
and efficiency of machine, or the amount of force and the compressive strength of
concrete . How useful are a student’s senior high school grade point average (GPA)
and college grade point average as predictor variables for a student’s future
performance in the board examination?
In such situations the random variables have a joint distribution that allows us
to compute probabilities of events involving both variables and understand the
relationship between the variables.
Abstraction:,
Suppose X and Y are two discrete random variables and that X takes values
* + and Y takes values * + . The ordered pair (X, Y ) take
values in the product *( )( ) ( )+
The joint probability mass function (joint pmf) of X and Y is the function p(( )
giving the probability of the joint outcome X = , Y =
4|Page
ENGINEERING DATA ANALYSIS
Example 1. Two dice are rolled. Let X be the value on the first die and let Y be the
value on the second die. Then both X and Y take values 1 to 6 and the joint pmf is p(i;
j) = 1=36 for all i and j between 1 and 6. Construct a joint probability table showing
the joint probability of X and Y.
Solution:
X\Y 1 2 3 4 5 6
Example 2. Two dice are rolled. Let X be the value on the first die and let T be the
total on both dice. Construct a joint probability table showing the probabilities of X
and T.
Solution: Below is the table showing the joint probabilities.
5|Page
ENGINEERING DATA ANALYSIS
X\T 2 3 4 5 6 7 8 9 10 11 12
1. 0 ( )
2. The total probability is 1. We express this as a double sum:
∑ ∑ ( )=1
The events B are the outcomes in the shaded squares. The probability of B is the sum
of the probabilities in the shaded squares, so
P(B) = .
6|Page
ENGINEERING DATA ANALYSIS
Marginal distributions
When X and Y are jointly-distributed random variables, we may want to consider only one
of them, say X. In that case we need to find the probability mass function (pmf) of X without
Y . This is called a marginal pmf .
Marginal pmf’s are obtained from the joint pmf by summing:
( ) ∑ ( ), ( ) ∑ ( )
The term marginal refers to the fact the values are written in the margins of the table.
Example 4. From Example 2, let X be the value on the first die and T be the total on
both dice. Compute the marginal pmf of X= 3 and of T = 5 .
X\T 2 3 4 5 6 7 8 9 10 11 12 p( )
p( ) 1/36 2/6 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36 1
7|Page
ENGINEERING DATA ANALYSIS
Application: Exercise #4
Closure
You have just finished Lesson 4 of this module. Should there be some
parts of the lesson which you need clarification, please ask your tutor during your
face-to-face or on-line interactions.
You are almost done with this module. It is hoped that after finishing this
module, you are ready to proceed to the next module in which you will surely
appreciate the importance of the insights gained from this module. Congratulations!
The module summary and assessment will follow.
8|Page
ENGINEERING DATA ANALYSIS
SUMMARY
o Counting techniques:
A permutation is an arrangement of all or part of a set of
objects.
The number of permutations of subsets of r elements
selected from a set of n different elements is
𝑛!
𝑃𝑟𝑛 𝑃𝑟𝑛
(𝑛 𝑟)!
The number of ways of partitioning a set of n objects into
r cells with n1 elements in the first cell, n2 elements in the
second, and so forth, is
𝒏 𝒏!
𝒏𝟏 𝒏𝟐 𝒏𝟑 𝒏 𝒓 = 𝒏𝟏 ! 𝒏𝟐 ! 𝒏𝒓 !
where 𝒏𝟏 𝒏𝟐 𝒏𝒓 = n
The number of combinations of 𝑛 distinct objects taken 𝑟
at a time is
𝒏 𝒏!
𝑪 𝒏𝑪𝒓 𝑪(𝒏 𝒓)
𝒓 𝒓! (𝒏 𝒓)!
o The Addition Law of Probability-Simple Case
If two events A and B are mutually exclusive then P(A ∪
B) = P(A) + P(B)
o Conditional Probability-Simple Case
𝑃(𝐴∩𝐵)
P(B│A) = 𝑃(𝐴) or equivalently , P(A) > 0
P(A∩ B)) = P(B│A) P(A)
o The Multiplication Rule
If A and B are independent events then P(A ∩ B) = P(A) ×
P(B)
o Probability distribution are generally classified into two
according to the nature of the random variable involved.
o Those which are defined by discrete random variables are
called discrete probability distribution and the most
commonly used types under this major classification are the
binomial, hypergeometric, and Poisson distributions.
o Probability distribution which involve continuous random
variables are known as continuous probability distribution, the
most remarkable of which is the normal distribution.
9|Page
ENGINEERING DATA ANALYSIS
ASSESSMENT
Solve the following problems.
2. Thirteen cards are drawn from a deck of ordinary playing cards. Find the
probability of selecting 8 red cards and 5 black cards.
10 | P a g e
ENGINEERING DATA ANALYSIS
References
Peck, R., Olsen, C. and Devore, J.L. (2012): Introduction to Statistics and Data
Analysis(4th edition). Brooks/Cole/Cengage Learning, 20 Channel
Center Street Boston, MA 02210, USA
Walpole, RE, & Myers, RH.(1993). Probability and Statistics for Engineers and (5th
ed.). Macmillan Raton, London, New York. Publishing Company,
New York.
11 | P a g e