BITS Pilani
Pilani Campus
Introduction
to Statistical Methods
ISM Team
BITS Pilani
Pilani Campus
M.Tech. (AIML)
Session-5 (Random Variables)
Team ISM
IMP Note to Self
ISM_Session_5 _ 23rd and 24th December.pptx
Random variables –
Discrete & continuous Expectation of a random variable,
mean and variance of a random variable –
Single random random variable &
Joint distributions
Session-5 Agenda
Random Variables
 A random variable is a variable that assumes numerical values
associated with the random outcome of an experiment, where
one (and only one) numerical value is assigned to each sample
point.
 In mathematical language, a random variable is a function
whose domain is the sample space and whose range is the set
of real numbers.
 A random variable can be classified as being either discrete
or continuous depending on the numerical values it assumes.
 A discrete random variable may assume either finite or
countably infinite number of values
 A continuous random variable may assume any numerical
value in an interval or collection of intervals.
 Continuous random variables are generated in experiments
where things are “measured’ as opposed to “counted”.
 Experimental outcomes based on measurement of time,
distance, weight, volume etc. generate continuous RV.
Random Variables
Types of random Variables
 A discrete random variable can assume a countable
number of values.
o Number of steps to the top of the Eiffel Tower*
 A continuous random variable can assume any
value along a given interval of a number line.
o The time a tourist stays at the top once s/he gets there
8
 Discrete random variables
o Number of sales
o Number of calls
o Shares of stock
o People in line
o Mistakes per page
Two Types of Random Variables
 Continuous random variables
o Length
o Depth
o Volume
o Time
o Weight
 The probability distribution for a random variable describes how
probabilities are distributed over the values of the random variable.
 The probability distribution is defined by a probability function, denoted
by f(x), which provides the probability for each value of the random
variable.
The required conditions for a discrete probability function are:
f(x) > 0
f(x) = 1
 We can describe a discrete probability distribution with a table, graph, or
equation.
 Advantage: once the probability distribution is known, it is relatively easy
to determine the probability of a variety of events that may be of interest
to the decision maker.
Discrete Probability Distributions
Probability Distributions for
Discrete Random Variables
• Say a random variable x
follows this pattern: p(x) =
(.3)(.7)x-1 for x >0.
– This table gives the
probabilities (rounded to
two digits) for x between 1
and 10.
x P(x)
1 .30
2 .21
3 .15
4 .11
5 .07
6 .05
7 .04
8 .02
9 .02
10 .01
11
McClave, Statistics, 11th ed. Chapter 4:
Discrete Random Variables
 The expected value, or mean, of a random variable is a measure of
its central location.
o The mean or Expected value of a discrete random variable:
E(x) =  = xf(x)
 The variance summarizes the variability in the values of a random
variable.
o Variance of a discrete random variable:
Var(x) =  2 = (x - )2f(x)
 The standard deviation, , is defined as the positive square root of the variance.
Expected Value and Variance
Rules of Expected Value
 Multiplying RV by a constant a, E(aX) = a.E(X)
 Adding a constant b, E(X+b) = E(X) + b
 Therefore, E(aX + b) = ?
2 2 2
[( ) ] ( ) ( ).
E x x p x
  
   

Variability of Discrete Random Variables
 The variance of a discrete random variable x is
 The standard deviation of a discrete random variable x is
2 2 2
[( ) ] ( ) ( ).
E x x p x
  
   

Rules of variability
• Multiplying RV by a constant a, V(aX) = a2 . V(X)
• Adding a constant b, V(X+b) = V(X)
•
At a shooting range, a shooter is able to hit a target in either 1, 2
or 3 shots. Let x be a random variable indicating the number of
shots fired to hit the target. The following probability function
was proposed.
f(x) = x/6
Is this probability function valid?
Identify the r.v to be discrete or continuous?
Example
EXPERIMENT Random Variable (x)
Audit 50 tax returns Number of returns that contains error
Operate a restaurant for one day Number of customers
Observe an employee’s work No. of productive hours in an 8-hour workday
 The discrete uniform probability distribution is the simplest
example of a discrete probability distribution given by a formula.
o The discrete uniform probability function is
f(x) = 1/n
where:
n = the number of values the random variable may assume
Note that the values of the random variable are equally likely.
Discrete Uniform Probability Distribution
BITS Pilani, Pilani Campus
Random
variable
Discrete
Probability mass
function(pmf)
f(x)
Cumulative
distribution
function
F(x)
Continuous
Probability Density
function(pdf)
f(x)
Cumulative
distribution
function
F(x)
ISM_Session_5 _ 23rd and 24th December.pptx
 A continuous random variable can assume any value in an interval
on the real line or in a collection of intervals.
 It is not possible to talk about the probability of the random
variable assuming a particular value.
 Instead, we talk about the probability of the random variable
assuming a value within a given interval.
 The probability of the random variable assuming a value within
some given interval from x1 to x2 is defined to be the area under
the graph of the probability density function between x1 and x2.
Continuous Probability Distributions
BITS Pilani, Pilani Campus
Continuous Random Variables
Example:
o Height of students in a class
o Amount of ice tea in a glass
o Change in temperature throughout a day
o Price of a car in next year
BITS Pilani, Pilani Campus
Continuous Random Variables
BITS Pilani, Pilani Campus
Continuous Random Variables
BITS Pilani, Pilani Campus
Continuous Random Variables
BITS Pilani, Pilani Campus
Integration Formulas
BITS Pilani, Pilani Campus
2/14/2024 26
Continuous Random Variables
BITS Pilani, Pilani Campus
BITS Pilani, Pilani Campus
BITS Pilani, Pilani Campus
2/14/2024 29
BITS Pilani, Pilani Campus
Home Assignments
Example:1
Example:2
BITS Pilani, Pilani Campus
2/14/2024 31
Example:3
BITS Pilani, Pilani Campus
Example:4
Example:5
BITS Pilani, Pilani Campus
2/14/2024 33
Example:6
BITS Pilani, Pilani Campus
2/14/2024 34
Example:7
BITS Pilani, Pilani Campus
2/14/2024 35
Cumulative Distribution for Discreate Data
BITS Pilani, Pilani Campus
Cumulative Distribution for continuous Data
ISM_Session_5 _ 23rd and 24th December.pptx
So far we have been talking about the probability of a single variable, or a variable
conditional on another.
We often want to determine the joint probability of two variables, such as X and Y.
Suppose we are able to determine the following information for education (X)
and age (Y) for all Indian citizens based on the census.
Age (Y):
Education
(X)
Age : 25-35
30
Age: 35-55
45
Age: 55-85
70
None 0 .01 .02 .05
Primary 1 .03 .06 .10
Secondary 2 .18 .21 .15
College 3 .07 .08 .04
Example: what is the probability
of getting a 30 year old college
graduate?
p(x,y) = Pr(X=3 and Y=30) = .07
We can see that: p(x) = y p(x,y)
p(x=1) = .03 + .06 + .10 = .19
Each cell is the relative frequency (f/N).
We can define the joint probability distribution as:
p(x, y)= Pr(X = x and Y = y)
Age (Y):
Education
(X)
Age :
25-35
30
Age:
35-55
45
Age:
55-
85
70
None 0 .01 .02 .05
Primary 1 .03 .06 .10
Secondary 2 .18 .21 .15
College 3 .07 .08 .04
Marginal Probability
 We call this the marginal probability because it is calculated by summing
across rows or columns and is thus reported in the margins of the table.
We can calculate this for our entire table.
Age (Y):
Education (X)
30 45 70
p(x)
None: 0 .01 .02 .05 .08
Primary: 1 .03 .06 .10 .19
Secondary: 2 .18 .21 .15 .54
College: 3 .07 .08 .04 .19
p(y) .29 .37 .34 1
If X and Y are discrete random variables, the joint probability distribution of X
and Y is a description of the set of points (x,y) in the range of (X,Y) along with
the probability of each point.
The joint probability distribution of two discrete random variables is sometimes
referred to as the bivariate probability distribution or bivariate
distribution.
Thus we can describe the joint probability distribution of two discrete random
variables is through a joint probability mass function
f(x,y)=P(X=x,Y=y)
Joint Probability Mass Function
Joint Density Function
Marginal Distributions
8
7
8
1
4
1
8
1
8
1
4
1
0 






Solution:
Cont.
Problem:
 Two ballpoint pens are selected at random form a box that contains blue
pens, 2 red pens and 3 green pens. If X is the number of blue pens selected
and Y is the number of red pens selected, find the joint probability
function f(x,y)
 Solution:
The possible pairs of values (x,y) are (0,0),(0,1),(1,0),(1,1),(0,2),(2,0)
The joint probability distribution can be represented by the formula
f(x,y) X Rows
Total
0 1 2
y
0 3/28 9/28 3/28 15/28
1 3/14 3/14 0 3/7
2 1/28 0 0 1/28
Columns Total 5/14 15/28 3/28 1
Joint distribution
Solution:
Example
Homework Assignment
A candy company distributed 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, be the proportions of the light and dark chocolates that are creams
and suppose that the joint density function is
a) Verify whether
b) Find P[(X,Y)  A], where A is the region {(x,y) | 0<x<½,¼<y<½}
c) Find g(x) and h(y) for the joint density function.


 





elsewhere
,
0
1
0
,
1
0
),
3
2
(
)
,
( 5
2
y
x
y
x
y
x
f
 






 1
y)dxdy
f(x,
Home work Assignment:
1
5
3
5
2
5
3
5
2
5
6
5
2
5
6
5
2
)
3
2
(
5
2
)
,
(
1
0
2
1
0
1
0
1
0
2
1
0
1
0



















 
 








y
y
dy
y
dy
xy
x
dxdy
y
x
dxdy
y
x
f
x
x
a)
Solution
 
160
13
16
3
4
1
4
3
2
1
10
1
10
3
10
5
3
10
1
5
6
5
2
)
3
2
(
5
2
)
,
0
(
)
,
(
2
1
4
1
2
1
4
1
2
1
4
1
2
1
2
1
4
1
2
1
2
0
2
0
2
1
4
1
2
1













































 


y
y
dy
y
dy
xy
x
dxdy
y
x
Y
X
P
A
Y
X
P
x
x
b)
Example – Solution
5
3
4
10
6
5
4
)
3
2
(
5
2
)
,
(
)
(
1
0
2
1
0














x
y
xy
dy
y
x
dy
y
x
f
x
g
y
y
5
)
3
1
(
4
)
3
2
(
5
2
)
,
(
)
(
1
0
y
dx
y
x
dx
y
x
f
y
h




 




By definition,
For 0x 1, and g(x)=0 elsewhere.
Similarly,
For 0 y 1, and h(y)=0 elsewhere.
Example – Solution
Problem:
Find ‘K’ if the joint probability density function of a bivariate
random variable (X,Y) is given by


 




otherwise
x
if
y
x
K
y
x
f
0
4
0
)
1
)(
1
(
)
,
(
Solution:
Example
Cont.
IMP Note to Self
Thank You !

More Related Content

PPTX
1853_Random Variable & Distribution.pptx
PPTX
Mathematical expectation (or expected value) of a random variable
PDF
STAT-WEEK-1-2.pdfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
PPT
random variation 9473 by jaideep.ppt
PPT
Probability and random process Chapter two-Random_Variables.ppt
PPTX
Probability distribution
DOCX
Random variables and probability distributions Random Va.docx
PPT
LSCM 2072_chapter 1.ppt social marketing management
1853_Random Variable & Distribution.pptx
Mathematical expectation (or expected value) of a random variable
STAT-WEEK-1-2.pdfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
random variation 9473 by jaideep.ppt
Probability and random process Chapter two-Random_Variables.ppt
Probability distribution
Random variables and probability distributions Random Va.docx
LSCM 2072_chapter 1.ppt social marketing management

Similar to ISM_Session_5 _ 23rd and 24th December.pptx (20)

PDF
U unit7 ssb
PDF
fi lecture 6 probability distribution pdf
PDF
Lec 2 discrete random variable
PPTX
Statistics and Probability-Random Variables and Probability Distribution
PPTX
Discussion about random variable ad its characterization
PPT
Probability and Statistics for Engineers
PPTX
Econometrics 2.pptx
PDF
Chapter 4 part2- Random Variables
PPT
Fin500J_topic10_Probability_2010_0000000
PPTX
Chapter 1 random variables and probability distributions
PPTX
Random Variables and Probability Distributions
PPT
PDF
Guia de estudio para aa5
PPTX
Probability distributionv1
PPTX
PDF
Probability cheatsheet
PDF
Appendix 2 Probability And Statistics
PPT
AP Statistic and Probability 6.1 (1).ppt
PDF
Bai giang Chapter 6 avandce math for engeneering
U unit7 ssb
fi lecture 6 probability distribution pdf
Lec 2 discrete random variable
Statistics and Probability-Random Variables and Probability Distribution
Discussion about random variable ad its characterization
Probability and Statistics for Engineers
Econometrics 2.pptx
Chapter 4 part2- Random Variables
Fin500J_topic10_Probability_2010_0000000
Chapter 1 random variables and probability distributions
Random Variables and Probability Distributions
Guia de estudio para aa5
Probability distributionv1
Probability cheatsheet
Appendix 2 Probability And Statistics
AP Statistic and Probability 6.1 (1).ppt
Bai giang Chapter 6 avandce math for engeneering
Ad

More from ssuser1eba67 (20)

PPTX
108_Machine learning approach to Predict solar photovoltaic.pptx
PPTX
SERVICE CLOUD FOR B2B for Business Autoation
PPTX
Salesforce CPQ_Sessoin 8,9overviews.pptx
PPTX
ACI-Webinar-3-MinMaxAlphaBetaPruning-TicTacToe.pptx
PPTX
ACI-LabSession2A-HillClimbing-TravelOptimization.pptx
PPTX
mi al material ISM_Session_4 _ 16th and 17th December (2).pptx
PPTX
final uniform_search_Uninformed Search.pptx
PPTX
Salesforce Billing SessionS 1,2,3 AUX.pptx
PPTX
Salesforce Billing Invoice session 6,7,8.pptx
PPTX
SALEFORCE BILLING MILESTONE.pptx
PPTX
Salesforce CPQ_Sessoin 5,6.pptx
PPTX
Salesforce CPQ updated 1.pptx
PPTX
Salesforce CPQ_Sessoin 5,6.pptx
PPTX
Presentation1.pptx
PPTX
Salesforce CPQ_Sessoin123.pptx
PPTX
Salesforce CPQ_Sessoin 3,4.pptx
PPTX
Salesforce CPQ updated 1.pptx
PPTX
Salesforce Billing overview_VARA.pptx
PPTX
PPT_Machine learning approach to Renewable Energy systems.pptx
PPTX
TRAINING VARAPRASAD (1).pptx
108_Machine learning approach to Predict solar photovoltaic.pptx
SERVICE CLOUD FOR B2B for Business Autoation
Salesforce CPQ_Sessoin 8,9overviews.pptx
ACI-Webinar-3-MinMaxAlphaBetaPruning-TicTacToe.pptx
ACI-LabSession2A-HillClimbing-TravelOptimization.pptx
mi al material ISM_Session_4 _ 16th and 17th December (2).pptx
final uniform_search_Uninformed Search.pptx
Salesforce Billing SessionS 1,2,3 AUX.pptx
Salesforce Billing Invoice session 6,7,8.pptx
SALEFORCE BILLING MILESTONE.pptx
Salesforce CPQ_Sessoin 5,6.pptx
Salesforce CPQ updated 1.pptx
Salesforce CPQ_Sessoin 5,6.pptx
Presentation1.pptx
Salesforce CPQ_Sessoin123.pptx
Salesforce CPQ_Sessoin 3,4.pptx
Salesforce CPQ updated 1.pptx
Salesforce Billing overview_VARA.pptx
PPT_Machine learning approach to Renewable Energy systems.pptx
TRAINING VARAPRASAD (1).pptx
Ad

Recently uploaded (20)

PPTX
Copy of ARAL Program Primer_071725(1).pptx
PPTX
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
PDF
Chevening Scholarship Application and Interview Preparation Guide
PPTX
IT infrastructure and emerging technologies
PPTX
Power Point PR B.Inggris 12 Ed. 2019.pptx
DOCX
EDUCATIONAL ASSESSMENT ASSIGNMENT SEMESTER MAY 2025.docx
PDF
FAMILY PLANNING (preventative and social medicine pdf)
PDF
African Communication Research: A review
PPTX
MMW-CHAPTER-1-final.pptx major Elementary Education
PDF
Laparoscopic Imaging Systems at World Laparoscopy Hospital
PPTX
Thinking Routines and Learning Engagements.pptx
DOCX
THEORY AND PRACTICE ASSIGNMENT SEMESTER MAY 2025.docx
PPTX
Cite It Right: A Compact Illustration of APA 7th Edition.pptx
PPT
hemostasis and its significance, physiology
PDF
CHALLENGES FACED BY TEACHERS WHEN TEACHING LEARNERS WITH DEVELOPMENTAL DISABI...
PPTX
Approach to a child with acute kidney injury
PDF
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
PDF
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
PPTX
Theoretical for class.pptxgshdhddhdhdhgd
PPTX
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
Copy of ARAL Program Primer_071725(1).pptx
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
Chevening Scholarship Application and Interview Preparation Guide
IT infrastructure and emerging technologies
Power Point PR B.Inggris 12 Ed. 2019.pptx
EDUCATIONAL ASSESSMENT ASSIGNMENT SEMESTER MAY 2025.docx
FAMILY PLANNING (preventative and social medicine pdf)
African Communication Research: A review
MMW-CHAPTER-1-final.pptx major Elementary Education
Laparoscopic Imaging Systems at World Laparoscopy Hospital
Thinking Routines and Learning Engagements.pptx
THEORY AND PRACTICE ASSIGNMENT SEMESTER MAY 2025.docx
Cite It Right: A Compact Illustration of APA 7th Edition.pptx
hemostasis and its significance, physiology
CHALLENGES FACED BY TEACHERS WHEN TEACHING LEARNERS WITH DEVELOPMENTAL DISABI...
Approach to a child with acute kidney injury
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
Theoretical for class.pptxgshdhddhdhdhgd
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt

ISM_Session_5 _ 23rd and 24th December.pptx

  • 1. BITS Pilani Pilani Campus Introduction to Statistical Methods ISM Team
  • 2. BITS Pilani Pilani Campus M.Tech. (AIML) Session-5 (Random Variables) Team ISM
  • 3. IMP Note to Self
  • 5. Random variables – Discrete & continuous Expectation of a random variable, mean and variance of a random variable – Single random random variable & Joint distributions Session-5 Agenda
  • 6. Random Variables  A random variable is a variable that assumes numerical values associated with the random outcome of an experiment, where one (and only one) numerical value is assigned to each sample point.  In mathematical language, a random variable is a function whose domain is the sample space and whose range is the set of real numbers.
  • 7.  A random variable can be classified as being either discrete or continuous depending on the numerical values it assumes.  A discrete random variable may assume either finite or countably infinite number of values  A continuous random variable may assume any numerical value in an interval or collection of intervals.  Continuous random variables are generated in experiments where things are “measured’ as opposed to “counted”.  Experimental outcomes based on measurement of time, distance, weight, volume etc. generate continuous RV. Random Variables
  • 8. Types of random Variables  A discrete random variable can assume a countable number of values. o Number of steps to the top of the Eiffel Tower*  A continuous random variable can assume any value along a given interval of a number line. o The time a tourist stays at the top once s/he gets there 8
  • 9.  Discrete random variables o Number of sales o Number of calls o Shares of stock o People in line o Mistakes per page Two Types of Random Variables  Continuous random variables o Length o Depth o Volume o Time o Weight
  • 10.  The probability distribution for a random variable describes how probabilities are distributed over the values of the random variable.  The probability distribution is defined by a probability function, denoted by f(x), which provides the probability for each value of the random variable. The required conditions for a discrete probability function are: f(x) > 0 f(x) = 1  We can describe a discrete probability distribution with a table, graph, or equation.  Advantage: once the probability distribution is known, it is relatively easy to determine the probability of a variety of events that may be of interest to the decision maker. Discrete Probability Distributions
  • 11. Probability Distributions for Discrete Random Variables • Say a random variable x follows this pattern: p(x) = (.3)(.7)x-1 for x >0. – This table gives the probabilities (rounded to two digits) for x between 1 and 10. x P(x) 1 .30 2 .21 3 .15 4 .11 5 .07 6 .05 7 .04 8 .02 9 .02 10 .01 11 McClave, Statistics, 11th ed. Chapter 4: Discrete Random Variables
  • 12.  The expected value, or mean, of a random variable is a measure of its central location. o The mean or Expected value of a discrete random variable: E(x) =  = xf(x)  The variance summarizes the variability in the values of a random variable. o Variance of a discrete random variable: Var(x) =  2 = (x - )2f(x)  The standard deviation, , is defined as the positive square root of the variance. Expected Value and Variance
  • 13. Rules of Expected Value  Multiplying RV by a constant a, E(aX) = a.E(X)  Adding a constant b, E(X+b) = E(X) + b  Therefore, E(aX + b) = ?
  • 14. 2 2 2 [( ) ] ( ) ( ). E x x p x         Variability of Discrete Random Variables  The variance of a discrete random variable x is  The standard deviation of a discrete random variable x is 2 2 2 [( ) ] ( ) ( ). E x x p x        
  • 15. Rules of variability • Multiplying RV by a constant a, V(aX) = a2 . V(X) • Adding a constant b, V(X+b) = V(X) •
  • 16. At a shooting range, a shooter is able to hit a target in either 1, 2 or 3 shots. Let x be a random variable indicating the number of shots fired to hit the target. The following probability function was proposed. f(x) = x/6 Is this probability function valid? Identify the r.v to be discrete or continuous? Example EXPERIMENT Random Variable (x) Audit 50 tax returns Number of returns that contains error Operate a restaurant for one day Number of customers Observe an employee’s work No. of productive hours in an 8-hour workday
  • 17.  The discrete uniform probability distribution is the simplest example of a discrete probability distribution given by a formula. o The discrete uniform probability function is f(x) = 1/n where: n = the number of values the random variable may assume Note that the values of the random variable are equally likely. Discrete Uniform Probability Distribution
  • 18. BITS Pilani, Pilani Campus Random variable Discrete Probability mass function(pmf) f(x) Cumulative distribution function F(x) Continuous Probability Density function(pdf) f(x) Cumulative distribution function F(x)
  • 20.  A continuous random variable can assume any value in an interval on the real line or in a collection of intervals.  It is not possible to talk about the probability of the random variable assuming a particular value.  Instead, we talk about the probability of the random variable assuming a value within a given interval.  The probability of the random variable assuming a value within some given interval from x1 to x2 is defined to be the area under the graph of the probability density function between x1 and x2. Continuous Probability Distributions
  • 21. BITS Pilani, Pilani Campus Continuous Random Variables Example: o Height of students in a class o Amount of ice tea in a glass o Change in temperature throughout a day o Price of a car in next year
  • 22. BITS Pilani, Pilani Campus Continuous Random Variables
  • 23. BITS Pilani, Pilani Campus Continuous Random Variables
  • 24. BITS Pilani, Pilani Campus Continuous Random Variables
  • 25. BITS Pilani, Pilani Campus Integration Formulas
  • 26. BITS Pilani, Pilani Campus 2/14/2024 26 Continuous Random Variables
  • 29. BITS Pilani, Pilani Campus 2/14/2024 29
  • 30. BITS Pilani, Pilani Campus Home Assignments Example:1 Example:2
  • 31. BITS Pilani, Pilani Campus 2/14/2024 31 Example:3
  • 32. BITS Pilani, Pilani Campus Example:4 Example:5
  • 33. BITS Pilani, Pilani Campus 2/14/2024 33 Example:6
  • 34. BITS Pilani, Pilani Campus 2/14/2024 34 Example:7
  • 35. BITS Pilani, Pilani Campus 2/14/2024 35 Cumulative Distribution for Discreate Data
  • 36. BITS Pilani, Pilani Campus Cumulative Distribution for continuous Data
  • 38. So far we have been talking about the probability of a single variable, or a variable conditional on another. We often want to determine the joint probability of two variables, such as X and Y. Suppose we are able to determine the following information for education (X) and age (Y) for all Indian citizens based on the census. Age (Y): Education (X) Age : 25-35 30 Age: 35-55 45 Age: 55-85 70 None 0 .01 .02 .05 Primary 1 .03 .06 .10 Secondary 2 .18 .21 .15 College 3 .07 .08 .04
  • 39. Example: what is the probability of getting a 30 year old college graduate? p(x,y) = Pr(X=3 and Y=30) = .07 We can see that: p(x) = y p(x,y) p(x=1) = .03 + .06 + .10 = .19 Each cell is the relative frequency (f/N). We can define the joint probability distribution as: p(x, y)= Pr(X = x and Y = y) Age (Y): Education (X) Age : 25-35 30 Age: 35-55 45 Age: 55- 85 70 None 0 .01 .02 .05 Primary 1 .03 .06 .10 Secondary 2 .18 .21 .15 College 3 .07 .08 .04
  • 40. Marginal Probability  We call this the marginal probability because it is calculated by summing across rows or columns and is thus reported in the margins of the table. We can calculate this for our entire table. Age (Y): Education (X) 30 45 70 p(x) None: 0 .01 .02 .05 .08 Primary: 1 .03 .06 .10 .19 Secondary: 2 .18 .21 .15 .54 College: 3 .07 .08 .04 .19 p(y) .29 .37 .34 1
  • 41. If X and Y are discrete random variables, the joint probability distribution of X and Y is a description of the set of points (x,y) in the range of (X,Y) along with the probability of each point. The joint probability distribution of two discrete random variables is sometimes referred to as the bivariate probability distribution or bivariate distribution. Thus we can describe the joint probability distribution of two discrete random variables is through a joint probability mass function f(x,y)=P(X=x,Y=y)
  • 46. Cont.
  • 47. Problem:  Two ballpoint pens are selected at random form a box that contains blue pens, 2 red pens and 3 green pens. If X is the number of blue pens selected and Y is the number of red pens selected, find the joint probability function f(x,y)  Solution: The possible pairs of values (x,y) are (0,0),(0,1),(1,0),(1,1),(0,2),(2,0) The joint probability distribution can be represented by the formula
  • 48. f(x,y) X Rows Total 0 1 2 y 0 3/28 9/28 3/28 15/28 1 3/14 3/14 0 3/7 2 1/28 0 0 1/28 Columns Total 5/14 15/28 3/28 1 Joint distribution
  • 51. A candy company distributed 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, be the proportions of the light and dark chocolates that are creams and suppose that the joint density function is a) Verify whether b) Find P[(X,Y)  A], where A is the region {(x,y) | 0<x<½,¼<y<½} c) Find g(x) and h(y) for the joint density function.          elsewhere , 0 1 0 , 1 0 ), 3 2 ( ) , ( 5 2 y x y x y x f          1 y)dxdy f(x, Home work Assignment:
  • 55. Problem: Find ‘K’ if the joint probability density function of a bivariate random variable (X,Y) is given by         otherwise x if y x K y x f 0 4 0 ) 1 )( 1 ( ) , (
  • 57. Cont.
  • 58. IMP Note to Self