SlideShare a Scribd company logo
Probability
Introduction to Probability,
Conditional Probability and
Random Variables
June 3, 2008 2Stat 111 - Lecture 6 - Probability
 In deterministic processes, the outcome can be
predicted exactly in advance
• Eg. Force = mass x acceleration. If we are given values
for mass and acceleration, we exactly know the value of
force
 In random processes, the outcome is not known
exactly, but we can still describe the probability
distribution of possible outcomes
• Eg. 10 coin tosses: we don’t know exactly how many
heads we will get, but we can calculate the probability
of getting a certain number of heads
June 3, 2008 3Stat 111 - Lecture 6 - Probability
 …a random experiment is an action or process that
leads to one of several possible outcomes. For example:
6.4
Experiment Outcomes
Flip a coin Heads, Tails
Exam Marks Numbers: 0, 1, 2, ..., 100
Assembly Time t > 0 seconds
Course Grades F, D, C, B, A, A+
 List the outcomes of a random experiment…
 List: “Called the Sample Space”
 Outcomes: “Called the Simple Events”
 This list must be exhaustive, i.e. ALL possible
outcomes included.
 Die roll {1,2,3,4,5} Die roll {1,2,3,4,5,6}
 The list must be mutually exclusive, i.e. no two
outcomes can occur at the same time:
 Die roll {odd number or even number}
 Die roll{ number less than 4 or even number}
6.5
 A list of exhaustive [don’t leave anything out] and mutually
exclusive outcomes [impossible for 2 different events to
occur in the same experiment] is called a sample space
and is denoted by S.
 The outcomes are denoted by O1, O2, …, Ok
 Using notation from set theory, we can represent the
sample space and its outcomes as:
 S = {O1, O2, …, Ok}
6.6
 Given a sample space S = {O1, O2, …, Ok}, the
probabilities assigned to the outcome must satisfy
these requirements:
(1) The probability of any outcome is between 0 and 1
 i.e. 0 ≤ P(Oi) ≤ 1 for each i, and
(2) The sum of the probabilities of all the outcomes
equals 1
 i.e. P(O1) + P(O2) + … + P(Ok) = 1
6.7
P(Oi) represents the probability of outcome i
 The probability of an event is the sum of the
probabilities of the simple events that constitute the
event.
 E.g. (assuming a fair die) S = {1, 2, 3, 4, 5, 6} and
 P(1) = P(2) = P(3) = P(4) = P(5) = P(6) = 1/6
 Then:
 P(EVEN) = P(2) + P(4) + P(6) = 1/6 + 1/6 + 1/6 = 3/6 =
1/2
6.8
 Conditional probability is used to determine how
two events are related; that is, we can determine the
probability of one event given the occurrence of
another related event.
 Experiment: random select one student in class.
 P(randomly selected student is male) =
 P(randomly selected student is male/student is on 3rd
row) =
 Conditional probabilities are written as P(A | B) and
read as “the probability of A given B” and is calculated
as:
6.9
 Again, the probability of an event given that another event
has occurred is called a conditional probability…
 P( A and B) = P(A)*P(B/A) = P(B)*P(A/B) both are true
 Keep this in mind!
6.10
 An event is an outcome or a set of outcomes of a
random process
Example: Tossing a coin three times
Event A = getting exactly two heads = {HTH, HHT, THH}
Example: Picking real number X between 1 and 20
Event A = chosen number is at most 8.23 = {X ≤ 8.23}
Example: Tossing a fair dice
Event A = result is an even number = {2, 4, 6}
• Notation: P(A) = Probability of event A
• Probability Rule 1:
0 ≤ P(A) ≤ 1 for any event A
June 3, 2008 11Stat 111 - Lecture 6 - Probability
 Events A and B are independent if knowing that A
occurs does not affect the probability that B occurs
 Example: tossing two coins
Event A = first coin is a head
Event B = second coin is a head
 Disjoint events cannot be independent!
• If A and B can not occur together (disjoint), then knowing that A
occurs does change probability that B occurs
 Probability Rule 5: If A and B are independent
P(A and B) = P(A) x P(B)
June 3, 2008 12Stat 111 - Lecture 6 - Probability
Independent
multiplication rule for independent events
 One of the objectives of calculating conditional probability
is to determine whether two events are related.
 In particular, we would like to know whether they are
independent, that is, if the probability of one event is not
affected by the occurrence of the other event.
 Two events A and B are said to be independent if
 P(A|B) = P(A)
 and
 P(B|A) = P(B)
 P(you have a flat tire going home/radio quits working)
6.13
 one event has no influence on the outcome of
another event
 if events A & B are independent
then P(A&B) = P(A)*P(B)
 if P(A&B) = P(A)*P(B)
then events A & B are independent
 coin flipping
if P(H) = P(T) = .5 then
P(HTHTH) = P(HHHHH) =
.5*.5*.5*.5*.5 = .55 = .03
Probability
Probability
 A graduate statistics course has seven male and three
female students. The professor wants to select two students
at random to help her conduct a research project. What is
the probability that the two students chosen are female?
 P(F1 * F2) = ???
 Let F1 represent the event that the first student is female
 P(F1) = 3/10 = .30
 What about the second student?
 P(F2 /F1) = 2/9 = .22
 P(F1 * F2) = P(F1) * P(F2 /F1) = (.30)*(.22) = 0.066
 NOTE: 2 events are NOT independent.
6.17
 The professor in Example 6.5 is unavailable. Her
replacement will teach two classes. His style is to select
one student at random and pick on him or her in the
class. What is the probability that the two students
chosen are female?
 Both classes have 3 female and 7 male students.
 P(F1 * F2) = P(F1) * P(F2 /F1) = P(F1) * P(F2)
 = (3/10) * (3/10) = 9/100 = 0.09
 NOTE: 2 events ARE independent.
6.18
The Addition Rule
The probability that at least one of the events A or B
will occur, P(A or B), is given by:
If events A and B are mutually exclusive, then the
addition rule is simplified to:
This simplified rule can be extended to any number of
mutually exclusive events.
)()()()()( BAPBPAPBAPBorAP 
)()()()( BPAPBAPBorAP 
 If and A and B are mutually exclusive the occurrence of
one event makes the other one impossible. This means
that

 P(A and B) = P(A * B) = 0
 The addition rule for mutually exclusive events is

 P(A or B) = P(A) + P(B)
 Only if A and B are Mutually Exclusive.
6.20
 In a large city, two newspapers are published, the Sun and
the Post. The circulation departments report that 22% of
the city’s households have a subscription to the Sun and
35% subscribe to the Post. A survey reveals that 6% of all
households subscribe to both newspapers. What
proportion of the city’s households subscribe to either
newspaper?
 That is, what is the probability of selecting a household at
random that subscribes to the Sun or the Post or both?
 P(Sun or Post) = P(Sun) + P(Post) – P(Sun and Post)
 = .22 + .35 – .06 = .51
6.21
 Bayes’ Law is named for Thomas Bayes, an eighteenth
century mathematician.
 In its most basic form, if we know P(B | A),
 we can apply Bayes’ Law to determine P(A | B)
6.22
P(B|A) P(A|B)
for example …
Probability
 Conditional Probability
 Discrete Random Variables
 Continuous Random Variables
 Properties of Random Variables
• Means of Random Variables
• Variances of Random Variables
June 4, 2008 24Stat 111 - Lecture 6 - Random Variables
Conditional Probability
Conditional probability is the probability of an event
occurring, given that another event has already
occurred.
Conditional probability restricts the sample space.
The conditional probability of event B occurring, given
that event A has occurred, is denoted by P(B|A) and is
read as “probability of B, given A.”
We use conditional probability when two events
occurring in sequence are not independent. In other
words, the fact that the first event (event A) has occurred
affects the probability that the second event (event B)
will occur.
 A random variable is a numerical outcome of a
random process or random event
 Example: three tosses of a coin
• S = {HHH,THH,HTH,HHT,HTT,THT,TTH,TTT}
• Random variable X = number of observed tails
• Possible values for X = {0,1, 2, 3}
• Why do we need random variables?
• We use them as a model for our observed data
June 4, 2008 26Stat 111 - Lecture 6 - Random Variables
 A random variable is a real valued function whose
domain is the sample space of a random experiment
 Let us consider the experiment of tossing a coin two
times in succession.
 The sample space of the experiment is S = {HH, HT,
TH, TT}.
 A discrete random variable has a finite or
countable number of distinct values
 Discrete random variables can be summarized by
listing all values along with the probabilities
• Called a probability distribution
 Example: number of members in US families
June 4, 2008 28Stat 111 - Lecture 6 - Random Variables
X 2 3 4 5 6 7
P(X) 0.413 0.236 0.211 0.090 0.032 0.018
 Continuous random variables have a non-
countable number of values
 Can’t list the entire probability distribution, so we
use a density curve instead of a histogram
 Eg. Normal density curve:
June 4, 2008 29Stat 111 - Lecture 6 - Random Variables
 Average of all possible values of a random
variable (often called expected value)
 Notation: don’t want to confuse random
variables with our collected data variables
 = mean of random variable
x = mean of a data variable
 For continuous r.v, we again need integration to
calculate the mean
 For discrete r.v., we can calculate the mean by
hand since we can list all probabilities
June 4, 2008 30Stat 111 - Lecture 6 - Random Variables
Probability
 Mean is the sum of all possible values, with
each value weighted by its probability:
μ = Σ xi*P(xi) = x1*P(x1) + … + x12*P(x12)
 Example: X = sum of two dice
μ = 2⋅ (1/36) + 3⋅ (2/36) + 4 ⋅ (3/36) +…+12⋅ (1/36)
= 252/36 = 7
June 4, 2008 32Stat 111 - Lecture 6 - Random Variables
X 2 3 4 5 6 7 8 9 10 11 12
P(X) 1/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
 Spread of all possible values of a random
variable around its mean
 Again, we don’t want to confuse random
variables with our collected data variables:
2 = variance of random variable
s2 = variance of a data variable
 For continuous r.v, again need integration to
calculate the variance
 For discrete r.v., can calculate the variance by
hand since we can list all probabilities
June 4, 2008 33Stat 111 - Lecture 6 - Random Variables
Probability
Probability
Probability
 Variance is the sum of the squared deviations away
from the mean of all possible values, weighted by
the values probability:
μ = Σ(xi-μ)*P(xi) = (x1-μ)*P(x1) + … + (x12-μ)*P(x12)
 Example: X = sum of two dice
σ2 = (2 - 7)2⋅(1/36) + (3− 7)2⋅(2/36) +…+(12 - 7)2⋅(1/36)
= 210/36 = 5.83
June 4, 2008 37Stat 111 - Lecture 6 - Random Variables
X 2 3 4 5 6 7 8 9 10 11 12
P(X) 1/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
 a tossed coin shows a‘head’ or ‘tail’,
 a manufactured item can be ‘defective’ or ‘non-
defective’,
 the responseit is customary to call one of the outcomes
a ‘success’and the other ‘not success’
 Each time we toss a coin or roll a die. we call it a trial.
 two outcomes usually
 referred as ‘success’ or ‘failure’ are called Bernoulli
trials.
 Trials of a random experiment are called Bernoulli
trials, if they satisfy
Probability
Probability
Probability
Probability

More Related Content

PPT
Probability Powerpoint
PPT
Introduction to Probability and Probability Distributions
PPTX
Conditional probability
PPT
Theoretical Probability
PPT
Probability powerpoint
PPTX
permutation and combination
PPTX
4.1-4.2 Sample Spaces and Probability
Probability Powerpoint
Introduction to Probability and Probability Distributions
Conditional probability
Theoretical Probability
Probability powerpoint
permutation and combination
4.1-4.2 Sample Spaces and Probability

What's hot (20)

PPTX
introduction to probability
PPTX
Intro to probability
PPT
PROBABILITY AND PROBABILITY DISTRIBUTIONS.ppt
PPTX
PROBABILITY
PPT
Probability And Probability Distributions
PPT
probability
PDF
Probability Distributions
PDF
Introduction to probability distributions-Statistics and probability analysis
PDF
Discrete probability distributions
PPT
PROBABILITY AND IT'S TYPES WITH RULES
PPTX
Sampling distribution
PDF
Discrete probability distribution (complete)
PDF
Basic concepts of probability
PPT
Probability Concepts Applications
PPTX
Probability
PPT
Logic&proof
ODP
Differentiation and integration
PPTX
Statistical inference concept, procedure of hypothesis testing
PPTX
Basic concepts of probability
PDF
Chapter 4 part2- Random Variables
introduction to probability
Intro to probability
PROBABILITY AND PROBABILITY DISTRIBUTIONS.ppt
PROBABILITY
Probability And Probability Distributions
probability
Probability Distributions
Introduction to probability distributions-Statistics and probability analysis
Discrete probability distributions
PROBABILITY AND IT'S TYPES WITH RULES
Sampling distribution
Discrete probability distribution (complete)
Basic concepts of probability
Probability Concepts Applications
Probability
Logic&proof
Differentiation and integration
Statistical inference concept, procedure of hypothesis testing
Basic concepts of probability
Chapter 4 part2- Random Variables
Ad

Similar to Probability (20)

PPTX
Statistical Analysis with R -II
PDF
Probability concepts for Data Analytics
PDF
PTSP PPT.pdf
PPTX
BSM with Sofware package for Social Sciences
PPTX
Unit 1-probability
PPTX
ch4 probablity and probablity destrubition
PPTX
Probability and probability distribution.pptx
PDF
mathes probabality mca syllabus for probability and stats
PDF
Course material mca
PPTX
Data Distribution &The Probability Distributions
PPT
mal eta adep summa m eta alat settab222.ppt
DOCX
introduction to Probability theory
PPTX
Probability basics and bayes' theorem
PPT
Tp4 probability
DOCX
1 Probability Please read sections 3.1 – 3.3 in your .docx
PPTX
MATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptx
PPT
Discrete probability
PPTX
REVIEW OF BASIC PROBABILITY (1) (1).pptx
PPTX
01_Module_1-ProbabilityTheory.pptx
PPTX
Information Theory and coding - Lecture 1
Statistical Analysis with R -II
Probability concepts for Data Analytics
PTSP PPT.pdf
BSM with Sofware package for Social Sciences
Unit 1-probability
ch4 probablity and probablity destrubition
Probability and probability distribution.pptx
mathes probabality mca syllabus for probability and stats
Course material mca
Data Distribution &The Probability Distributions
mal eta adep summa m eta alat settab222.ppt
introduction to Probability theory
Probability basics and bayes' theorem
Tp4 probability
1 Probability Please read sections 3.1 – 3.3 in your .docx
MATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptx
Discrete probability
REVIEW OF BASIC PROBABILITY (1) (1).pptx
01_Module_1-ProbabilityTheory.pptx
Information Theory and coding - Lecture 1
Ad

More from Seyid Kadher (20)

PPTX
Physics-R.Yoga-Semiconductor at Work [1].pptx
PPTX
PPTX
PPTX
Exam fear
PPT
Soft skills
PPTX
Types of learners in a classroom
PPTX
Self confidence
PPTX
Goal setting
PPT
Self esteem
PPTX
Goal setting
PPT
Body language
PPT
Presentation skills
PPTX
Developing creative thinking
PPT
Team building
PPT
GD - Group Discussion
PPTX
Self confidence
PPTX
Types of learners in a classroom
PPTX
Interview
PPTX
Resume writing draft
PPTX
Examination fear
Physics-R.Yoga-Semiconductor at Work [1].pptx
Exam fear
Soft skills
Types of learners in a classroom
Self confidence
Goal setting
Self esteem
Goal setting
Body language
Presentation skills
Developing creative thinking
Team building
GD - Group Discussion
Self confidence
Types of learners in a classroom
Interview
Resume writing draft
Examination fear

Recently uploaded (20)

PDF
01-Introduction-to-Information-Management.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
RMMM.pdf make it easy to upload and study
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Classroom Observation Tools for Teachers
PDF
Business Ethics Teaching Materials for college
PDF
Complications of Minimal Access Surgery at WLH
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
01-Introduction-to-Information-Management.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
102 student loan defaulters named and shamed – Is someone you know on the list?
RMMM.pdf make it easy to upload and study
O7-L3 Supply Chain Operations - ICLT Program
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
2.FourierTransform-ShortQuestionswithAnswers.pdf
VCE English Exam - Section C Student Revision Booklet
human mycosis Human fungal infections are called human mycosis..pptx
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Classroom Observation Tools for Teachers
Business Ethics Teaching Materials for college
Complications of Minimal Access Surgery at WLH
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Final Presentation General Medicine 03-08-2024.pptx
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx

Probability

  • 2. Introduction to Probability, Conditional Probability and Random Variables June 3, 2008 2Stat 111 - Lecture 6 - Probability
  • 3.  In deterministic processes, the outcome can be predicted exactly in advance • Eg. Force = mass x acceleration. If we are given values for mass and acceleration, we exactly know the value of force  In random processes, the outcome is not known exactly, but we can still describe the probability distribution of possible outcomes • Eg. 10 coin tosses: we don’t know exactly how many heads we will get, but we can calculate the probability of getting a certain number of heads June 3, 2008 3Stat 111 - Lecture 6 - Probability
  • 4.  …a random experiment is an action or process that leads to one of several possible outcomes. For example: 6.4 Experiment Outcomes Flip a coin Heads, Tails Exam Marks Numbers: 0, 1, 2, ..., 100 Assembly Time t > 0 seconds Course Grades F, D, C, B, A, A+
  • 5.  List the outcomes of a random experiment…  List: “Called the Sample Space”  Outcomes: “Called the Simple Events”  This list must be exhaustive, i.e. ALL possible outcomes included.  Die roll {1,2,3,4,5} Die roll {1,2,3,4,5,6}  The list must be mutually exclusive, i.e. no two outcomes can occur at the same time:  Die roll {odd number or even number}  Die roll{ number less than 4 or even number} 6.5
  • 6.  A list of exhaustive [don’t leave anything out] and mutually exclusive outcomes [impossible for 2 different events to occur in the same experiment] is called a sample space and is denoted by S.  The outcomes are denoted by O1, O2, …, Ok  Using notation from set theory, we can represent the sample space and its outcomes as:  S = {O1, O2, …, Ok} 6.6
  • 7.  Given a sample space S = {O1, O2, …, Ok}, the probabilities assigned to the outcome must satisfy these requirements: (1) The probability of any outcome is between 0 and 1  i.e. 0 ≤ P(Oi) ≤ 1 for each i, and (2) The sum of the probabilities of all the outcomes equals 1  i.e. P(O1) + P(O2) + … + P(Ok) = 1 6.7 P(Oi) represents the probability of outcome i
  • 8.  The probability of an event is the sum of the probabilities of the simple events that constitute the event.  E.g. (assuming a fair die) S = {1, 2, 3, 4, 5, 6} and  P(1) = P(2) = P(3) = P(4) = P(5) = P(6) = 1/6  Then:  P(EVEN) = P(2) + P(4) + P(6) = 1/6 + 1/6 + 1/6 = 3/6 = 1/2 6.8
  • 9.  Conditional probability is used to determine how two events are related; that is, we can determine the probability of one event given the occurrence of another related event.  Experiment: random select one student in class.  P(randomly selected student is male) =  P(randomly selected student is male/student is on 3rd row) =  Conditional probabilities are written as P(A | B) and read as “the probability of A given B” and is calculated as: 6.9
  • 10.  Again, the probability of an event given that another event has occurred is called a conditional probability…  P( A and B) = P(A)*P(B/A) = P(B)*P(A/B) both are true  Keep this in mind! 6.10
  • 11.  An event is an outcome or a set of outcomes of a random process Example: Tossing a coin three times Event A = getting exactly two heads = {HTH, HHT, THH} Example: Picking real number X between 1 and 20 Event A = chosen number is at most 8.23 = {X ≤ 8.23} Example: Tossing a fair dice Event A = result is an even number = {2, 4, 6} • Notation: P(A) = Probability of event A • Probability Rule 1: 0 ≤ P(A) ≤ 1 for any event A June 3, 2008 11Stat 111 - Lecture 6 - Probability
  • 12.  Events A and B are independent if knowing that A occurs does not affect the probability that B occurs  Example: tossing two coins Event A = first coin is a head Event B = second coin is a head  Disjoint events cannot be independent! • If A and B can not occur together (disjoint), then knowing that A occurs does change probability that B occurs  Probability Rule 5: If A and B are independent P(A and B) = P(A) x P(B) June 3, 2008 12Stat 111 - Lecture 6 - Probability Independent multiplication rule for independent events
  • 13.  One of the objectives of calculating conditional probability is to determine whether two events are related.  In particular, we would like to know whether they are independent, that is, if the probability of one event is not affected by the occurrence of the other event.  Two events A and B are said to be independent if  P(A|B) = P(A)  and  P(B|A) = P(B)  P(you have a flat tire going home/radio quits working) 6.13
  • 14.  one event has no influence on the outcome of another event  if events A & B are independent then P(A&B) = P(A)*P(B)  if P(A&B) = P(A)*P(B) then events A & B are independent  coin flipping if P(H) = P(T) = .5 then P(HTHTH) = P(HHHHH) = .5*.5*.5*.5*.5 = .55 = .03
  • 17.  A graduate statistics course has seven male and three female students. The professor wants to select two students at random to help her conduct a research project. What is the probability that the two students chosen are female?  P(F1 * F2) = ???  Let F1 represent the event that the first student is female  P(F1) = 3/10 = .30  What about the second student?  P(F2 /F1) = 2/9 = .22  P(F1 * F2) = P(F1) * P(F2 /F1) = (.30)*(.22) = 0.066  NOTE: 2 events are NOT independent. 6.17
  • 18.  The professor in Example 6.5 is unavailable. Her replacement will teach two classes. His style is to select one student at random and pick on him or her in the class. What is the probability that the two students chosen are female?  Both classes have 3 female and 7 male students.  P(F1 * F2) = P(F1) * P(F2 /F1) = P(F1) * P(F2)  = (3/10) * (3/10) = 9/100 = 0.09  NOTE: 2 events ARE independent. 6.18
  • 19. The Addition Rule The probability that at least one of the events A or B will occur, P(A or B), is given by: If events A and B are mutually exclusive, then the addition rule is simplified to: This simplified rule can be extended to any number of mutually exclusive events. )()()()()( BAPBPAPBAPBorAP  )()()()( BPAPBAPBorAP 
  • 20.  If and A and B are mutually exclusive the occurrence of one event makes the other one impossible. This means that   P(A and B) = P(A * B) = 0  The addition rule for mutually exclusive events is   P(A or B) = P(A) + P(B)  Only if A and B are Mutually Exclusive. 6.20
  • 21.  In a large city, two newspapers are published, the Sun and the Post. The circulation departments report that 22% of the city’s households have a subscription to the Sun and 35% subscribe to the Post. A survey reveals that 6% of all households subscribe to both newspapers. What proportion of the city’s households subscribe to either newspaper?  That is, what is the probability of selecting a household at random that subscribes to the Sun or the Post or both?  P(Sun or Post) = P(Sun) + P(Post) – P(Sun and Post)  = .22 + .35 – .06 = .51 6.21
  • 22.  Bayes’ Law is named for Thomas Bayes, an eighteenth century mathematician.  In its most basic form, if we know P(B | A),  we can apply Bayes’ Law to determine P(A | B) 6.22 P(B|A) P(A|B) for example …
  • 24.  Conditional Probability  Discrete Random Variables  Continuous Random Variables  Properties of Random Variables • Means of Random Variables • Variances of Random Variables June 4, 2008 24Stat 111 - Lecture 6 - Random Variables
  • 25. Conditional Probability Conditional probability is the probability of an event occurring, given that another event has already occurred. Conditional probability restricts the sample space. The conditional probability of event B occurring, given that event A has occurred, is denoted by P(B|A) and is read as “probability of B, given A.” We use conditional probability when two events occurring in sequence are not independent. In other words, the fact that the first event (event A) has occurred affects the probability that the second event (event B) will occur.
  • 26.  A random variable is a numerical outcome of a random process or random event  Example: three tosses of a coin • S = {HHH,THH,HTH,HHT,HTT,THT,TTH,TTT} • Random variable X = number of observed tails • Possible values for X = {0,1, 2, 3} • Why do we need random variables? • We use them as a model for our observed data June 4, 2008 26Stat 111 - Lecture 6 - Random Variables
  • 27.  A random variable is a real valued function whose domain is the sample space of a random experiment  Let us consider the experiment of tossing a coin two times in succession.  The sample space of the experiment is S = {HH, HT, TH, TT}.
  • 28.  A discrete random variable has a finite or countable number of distinct values  Discrete random variables can be summarized by listing all values along with the probabilities • Called a probability distribution  Example: number of members in US families June 4, 2008 28Stat 111 - Lecture 6 - Random Variables X 2 3 4 5 6 7 P(X) 0.413 0.236 0.211 0.090 0.032 0.018
  • 29.  Continuous random variables have a non- countable number of values  Can’t list the entire probability distribution, so we use a density curve instead of a histogram  Eg. Normal density curve: June 4, 2008 29Stat 111 - Lecture 6 - Random Variables
  • 30.  Average of all possible values of a random variable (often called expected value)  Notation: don’t want to confuse random variables with our collected data variables  = mean of random variable x = mean of a data variable  For continuous r.v, we again need integration to calculate the mean  For discrete r.v., we can calculate the mean by hand since we can list all probabilities June 4, 2008 30Stat 111 - Lecture 6 - Random Variables
  • 32.  Mean is the sum of all possible values, with each value weighted by its probability: μ = Σ xi*P(xi) = x1*P(x1) + … + x12*P(x12)  Example: X = sum of two dice μ = 2⋅ (1/36) + 3⋅ (2/36) + 4 ⋅ (3/36) +…+12⋅ (1/36) = 252/36 = 7 June 4, 2008 32Stat 111 - Lecture 6 - Random Variables X 2 3 4 5 6 7 8 9 10 11 12 P(X) 1/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
  • 33.  Spread of all possible values of a random variable around its mean  Again, we don’t want to confuse random variables with our collected data variables: 2 = variance of random variable s2 = variance of a data variable  For continuous r.v, again need integration to calculate the variance  For discrete r.v., can calculate the variance by hand since we can list all probabilities June 4, 2008 33Stat 111 - Lecture 6 - Random Variables
  • 37.  Variance is the sum of the squared deviations away from the mean of all possible values, weighted by the values probability: μ = Σ(xi-μ)*P(xi) = (x1-μ)*P(x1) + … + (x12-μ)*P(x12)  Example: X = sum of two dice σ2 = (2 - 7)2⋅(1/36) + (3− 7)2⋅(2/36) +…+(12 - 7)2⋅(1/36) = 210/36 = 5.83 June 4, 2008 37Stat 111 - Lecture 6 - Random Variables X 2 3 4 5 6 7 8 9 10 11 12 P(X) 1/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
  • 38.  a tossed coin shows a‘head’ or ‘tail’,  a manufactured item can be ‘defective’ or ‘non- defective’,  the responseit is customary to call one of the outcomes a ‘success’and the other ‘not success’  Each time we toss a coin or roll a die. we call it a trial.  two outcomes usually  referred as ‘success’ or ‘failure’ are called Bernoulli trials.  Trials of a random experiment are called Bernoulli trials, if they satisfy