0% found this document useful (0 votes)
21 views4 pages

Enggmath 3 Random Variables Handouts

Chapter Four discusses discrete and continuous random variables, including their definitions, probability distributions, and examples. It explains how to calculate probabilities and cumulative distribution functions for both types of random variables. Additionally, it covers joint probability distributions and marginal distributions, providing various examples to illustrate these concepts.

Uploaded by

2242276
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views4 pages

Enggmath 3 Random Variables Handouts

Chapter Four discusses discrete and continuous random variables, including their definitions, probability distributions, and examples. It explains how to calculate probabilities and cumulative distribution functions for both types of random variables. Additionally, it covers joint probability distributions and marginal distributions, providing various examples to illustrate these concepts.

Uploaded by

2242276
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Chapter Four: A discrete random variable X takes a fixed set of possible values with gaps between.

The
Engg Math 3: Random Variables & Probability probability distribution of a discrete random variable X lists the values xi and their
Discrete and Continuous probabilities pi:
Random Variables
Chapter 4
I.1. Random Variables

I. Discrete and Continuous Random A random variable, usually written X, is a variable whose
Variables possible values are numerical outcomes of a random
phenomenon. There are two types of random
II. Discrete and Continuous
variables, discrete and continuous. Suppose a random variable X may take k different values, with the probability that X =
Probability Distributions
xi defined to be P(X = xi) = pi. The probabilities pi must satisfy the following:
III. Joint Probability Distribution
Clearly a random variable is not a variable at all in the
usual sense, and it is a function.
Learning Outcome: At the end of the
chapter the student should be able to: A. DISCRETE RANDOM VARIABLES

TLO 3: Solve random variables and A discrete random variable is one which may take on Example 1. A shipment of 8 similar microcomputers to a retail outlet contains 3 that are defective.
their probability distributions, only a countable number of distinct values such as If a school makes a random purchase of 2 of these computers, find the probability distribution for
cumulative distribution 0,1,2,3,4,........ Discrete random variables are usually (but the number of defectives.
functions and expected values not necessarily) counts. If a random variable can take only
of random variables a finite number of distinct values, then it must be discrete. Example 2. In the experiment of tossing a fair coin three times. If X is the random variable giving
TLO 4: Solve two or random the number of heads obtained, find
variables (Joint Probability Examples of discrete random variables include: (a) 𝑃 (𝑋 = 2)
Distributions, marginal - number of children in a family, (b) 𝑃 (𝑋 < 2)
probability distributions, - Friday night attendance at a cinema,
conditional probability - number of patients in a hospital ward, Example 3. Suppose a variable X can take the values 1, 2, 3, or 4. The probabilities associated
distributions), linear functions
- number of defective light bulbs in a box of ten. with each outcome are described by the following table:
of random variables and
general functions of random
variables. DISCRETE PROBABILITY DISTRIBUTION

Reference: Probability and Statistics The probability distribution of a discrete random (a) Determine the probability that X is equal to 2 or 3
for Engineers by Walpole, Meyers and variable is a list of probabilities associated with each of its (b) Draw the Probability histogram
Ye possible values. It is also sometimes called the
(Definitions taken from Valerie J. Easton probability function or the probability mass CUMULATIVE DISTRIBUTION FUNCTION
and John H. McColl's Statistics Glossary function.
v1.1)
All random variables (discrete and continuous) have a cumulative distribution function. It is a
Illustration: Consider tossing a fair coin three times
function giving the probability that the random variable X is less than or equal to x, for every value x.
Reminders: Define X : the number of heads obtained
For a discrete random variable, the cumulative distribution function is found by summing up the
Midterm Quiz No. 1 after this Chapter probabilities.
X = 0 : TTT
X = 1 : HTT, THT, TTH
Example 4. The cumulative distribution function for the above probability distribution in example 3
X = 2 : HHT, HTH, THH
is calculated as follows:
X = 3 : HHH
The probability that X is less than or equal to 1 is 0.1,
the probability that X is less than or equal to 2 is 0.1+0.3 = 0.4,
the probability that X is less than or equal to 3 is 0.1+0.3+0.4 = 0.8, and
the probability that X is less than or equal to 4 is 0.1+0.3+0.4+0.2 = 1.

The probability histogram for the cumulative distribution of this random variable is shown on the
next page.

Prepared by: | Engr. Caroline M. Bautista-Moncada ENGGMATH 3


Example 6. Suppose that the error in the reaction temperature, in °C, for a controlled laboratory
experiment is a continuous random variable X having the probability density function

Example 7. The total number of hours, measured in units of 100 hours, that a family runs a vacuum
cleaner over a period of one year is a continuous random variable X that has the density function
𝑥, 0<𝑥<1
𝑓(𝑥) = {2 − 𝑥 , 1≤𝑥<2
0, 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒
DESCRIBING THE PROBABILITY DISTRIBUTIONS Find the probability that over a period of one year, a family runs the vacuum cleaner
- Describe the shape, center (mean), and spread (standard deviation), and identify (a) Less than 120 hours
outliers (b) Between 50 and 100 hours

Example 5. Babies’ Health at Birth. Given the data below of APGAR scores of newborn babies.
(a) Show that the probability distribution for X is legitimate Example 8. The proportion of people who respond to a certain mail-order solicitation is a continuous
(b) Make a histogram of the probability distribution. Describe what you see. random variable X that has the density function
(c) Apgar scores of 7 or higher indicate a healthy baby. What is 𝑃(𝑋 ≥ 7)?

B. CONTINUOUS RANDOM VARIABLES


(a) Show that P(0 < X < 1) = 1.
A continuous random variable is one which takes an infinite number of possible values. (b) Find the probability that more than 1/4 but fewer than 1/2 of the people contacted will respond
Continuous random variables are usually measurements. to this type of solicitation.

Examples: height, weight, the amount of sugar in an orange, the time required to run a mile.

A continuous random variable is not defined at specific values. Instead, it is defined over an interval of
values, and is represented by the area under a curve (in advanced mathematics, this is known as
an integral). The probability of observing any single value is equal to 0, since the number of values
which may be assumed by the random variable is infinite.

Suppose a random variable X may take all values over an interval of real numbers. Then the
probability that X is in the set of outcomes A, P(A), is defined to be the area above A and under a
curve. The curve, which represents a function p(x), must satisfy the following:

A curve meeting these requirements is known as


a density curve.

The function 𝑓(𝑥) is a probability density function for the


continuous random variable A’’, defined over the set of
real number R, if
1. 𝒇(𝒙) ≥ 𝟎, 𝒇𝒐𝒓 𝒂𝒍𝒍 𝒙 = 𝑹

2. ∫−∞ 𝒇(𝒙)𝒅𝒙 = 𝟏
𝒃
3. 𝑷(𝒂 < 𝑿 < 𝒃) = ∫𝒂 𝒇(𝒙) 𝒅𝒙

Prepared by: | Engr. Caroline M. Bautista-Moncada ENGGMATH 3


JOINT PROBABILITY DISTRIBUTIONS
If X and Y are two discrete random variables, the probability distribution for their simultaneous The marginal distributions of X alone and or Y alone are
occurrence can be represented by a function with values f(x,y) for any pair of values (x, y) within
the range of the random variables X and Y. It is customary to refer to this function as the joint  For the discrete case,
probability distribution of X and Y. 𝑔(𝑥) = ∑ 𝑓(𝑥, 𝑦) 𝑎𝑛𝑑 ℎ(𝑦) = ∑ 𝑓(𝑥, 𝑦)
Hence, in the discrete case, 𝑦 𝑥

 For the continuous case


+∞ +∞
𝑔(𝑥) = ∫−∞ 𝑓(𝑥, 𝑦)𝑑𝑦 𝑎𝑛𝑑 ℎ(𝑥) = ∫−∞ 𝑓(𝑥, 𝑦)𝑑𝑥
that is, the values f(x, y) give the probability that outcomes x and y occur at the same time.

The function 𝑓(𝑥, 𝑦) is a joint probability distribution or probability mass


function of the discrete random variables X and Y if The term marginal is used here because, in the discrete case, the values of g(x) and h(y) are just
1. 𝑓(𝑥, 𝑦) ≥ 0 for all (𝑥, 𝑦), the marginal totals of the respective columns and rows when the values of f(x,y) are displayed in a
rectangular table.
2. ∑𝑥 ∑𝑦(𝑥, 𝑦) = 1,
3. 𝑃(𝑋 = 𝑥 , 𝑌 = 𝑦) = 𝑓(𝑥, 𝑦). Example 11. Two refills for a ballpoint pen are selected at random from a box that contains 3 blue
refills, 2 red refills and 3 green refills. If X is the number of blue refills and Y is the number of red
For any region in A in the xy plane, 𝑃[(𝑋, 𝑌 ∈ 𝐴)] = ∑ ∑𝐴 𝑓(𝑥, 𝑦).
refills selected. Find:
a. the joint probability distribution table
Example 9. A candy company distributes boxes of chocolates with a mixture of creams, toffees, and
nuts coated in both light and dark chocolate. For a randomly selected box, let X and Y, respectively,
b. 𝑓𝑋𝑌 (0,1)
be the proportions of the light and dark chocolates that are creams and suppose that the joint density c. 𝑃(𝑋 = 0)
function is

2
(2𝑥 + 3𝑦), 0 < 𝑥 < 1 , 0 < 𝑦 < 1,
𝑓(𝑥, 𝑦) = {5
0, 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒.

a. Verify condition 2 of the definition above.


1 1 1
b. Find 𝑃[𝑋, 𝑌 𝜖 𝐴], 𝑤ℎ𝑒𝑟𝑒 𝐴 = {(𝑋, 𝑌)| 0 < 𝑋 < , < 𝑌 < }
2 4 2

Example 10. Let X and Y be two jointly continuous random variable with Joint Probability Function

2
𝑓(𝑥, 𝑦) = {𝑥 + 𝑐𝑦 0≤𝑥 ≤1, 0≤𝑦 ≤1
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒

a. Find the constant c Example 12. A candy company distributes boxes of chocolates with a mixture of creams, toffees,
1 1 and cordials. Suppose that the weight of each box is 1 kilogram, but the individual weights of the
b. Find 𝑃 (0 ≤ 𝑋 ≤ 2 , 0 ≤ 𝑌 ≤ )
2 creams, toffees, and cordials vary from box to box. For a randomly selected box, let X and Y represent
the weights of the creams and the toffees, respectively, and suppose that, the joint density function
MARGINAL PROBABILITY MASS FUNCTION of these variables is

Given the joint probability distribution f(x,y) of the discrete random variables X and Y, the probability 24𝑥𝑦, 0 ≤ 𝑥 ≤ 1 , 0 ≤ 𝑦 ≤ 1, 𝑥 + 𝑦 ≤ 1
distribution g(x) of X alone is obtained by summing f(x, y) over the values of Y. Similarly, the
𝑓 (𝑥, 𝑦) = {
0, 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒
probability distribution h(y) of Y alone is obtained by summing f(x,y) over the values of X. We define
g(x) and h(y) to be the marginal distributions of X and Y, respectively. When X and Y are continuous a. Find the probability that in a given box the cordials account for more than ½ of the weight.
random variables, summations are replaced by integrals. b. Find the marginal density for the weight of the creams.
c. Find the probability that the weight of the toffees in a box is less than 1/8 of a kilogram if
it is known that creams constitute ¾ of the weight.

Prepared by: | Engr. Caroline M. Bautista-Moncada ENGGMATH 3


Example 13. Find g(x) and h(y) for the joint density function of Example 9. MIDTERM ASSIGNMENT NO. 1. DUE NEXT MEETING

1. Let X denote the reaction time, in seconds, to a certain stimulus and Y denote the
CONDITIONAL DISTRIBUTION temperature (°F) at which a certain reaction starts to take place. Suppose that two random
variables X and Y have the joint density

Let X and Y be two random variables, discrete or continuous. The conditional 4𝑥𝑦 , 0<𝑥 <1, 0<𝑦<1
𝑓(𝑥, 𝑦) = {
distribution of the random variable Y given that X = x is 0 , 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒

𝑓(𝑥, 𝑦) Find
𝑓{𝑌 |𝑥} = , 𝑔(𝑥) > 0 a. 𝑃 (0 ≤ 𝑋 ≤
1
𝑎𝑛𝑑
1
≤𝑌≤ )
1
𝑔(𝑥) 2 4 2
Similarly, the conditional distribution of the random variable X given that Y=y is b. 𝑃(𝑋 < 𝑌)
𝑓(𝑥, 𝑦)
𝑓{𝑋|𝑦} = , ℎ(𝑦) > 0 2. Let X denote the number of times a certain numerical control machine will malfunction: 1,
ℎ(𝑦) 2, or 3 times on any given day. Let Y denote the number of times a technician is called on
an emergency call. Their joint probability distribution is given as

Example 14. In example 11, Find the conditional distribution of X, given that Y = 1, and use it to
determine 𝑷(𝑿 = 𝟎 | 𝒀 = 𝟏).

a. Evaluate the marginal distribution of X


Example 15. The joint density for the random variables (X,Y), where X is the unit temperature
b. Evaluate the marginal distribution of Y
change and Y is the proportion of the spectrum shift that a certain atomic particle produces, is
c. Find 𝑃(𝑌 = 3 | 𝑋 = 2)

10𝑥𝑦 2 , 0 < 𝑥 < 𝑦 < 1, 3. Each rear tire on an experimental airplane is supposed to be filled to a pressure of 40
𝑓 (𝑥, 𝑦) = {
0 , 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒 pound per square inch (psi). Let X denote the actual air pressure for the right tire and Y
denote the actual air pressure for the left tire. Suppose that X and Y are random variables
a. Find the marginal densities 𝑔(𝑥), ℎ(𝑦) , and the conditional density 𝑓(𝑦|𝑥) with the joint density
b. Find the probability that the spectrum shifts more than half of the total observations, given
that the temperature is increased to 0.25 unit. 𝑘 (𝑥 2 + 𝑦 2 ), 30 ≤ 𝑥 < 50 ; 30 ≤ 𝑦 < 50
𝑓 (𝑥, 𝑦) = {
0, 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒
Example 16. Given the joint density function a. Find k
b. Find 𝑃(30 ≤ 𝑋 ≤ 40 𝑎𝑛𝑑 40 ≤ 𝑌 < 50)
𝑥(1 + 3𝑦 2 c. Find the probability that both tires are underfilled.
𝑓 (𝑥, 𝑦) = { , 0 < 𝑥 < 2, 0 < 𝑦 < 1,
4
0 , 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒
1 1 1
Find 𝑔(𝑥 ), ℎ(𝑦), 𝑓(𝑥|𝑦) and evaluate 𝑃 (4 < 𝑋 < 2 | 𝑌 = 3)

Reminders:
MIDTERM QUIZ NO. 1
Next Meeting

Prepared by: | Engr. Caroline M. Bautista-Moncada ENGGMATH 3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy