SlideShare a Scribd company logo
1 of 18
Download to read offline
Discrete Random Variables; Expectation

18.05 Spring 2014

Jeremy Orloff and Jonathan Bloom

http://www.mathsisfun.com/data/quincunx.html
http://www.youtube.com/watch?v=9xUBhhM4vbM
This image is in the public domain.
Board Question: Evil Squirrels
One million squirrels, of which 100 are pure evil!
Events: E = evil, G = good, A = alarm sounds
Accuracy: P(A|E) = .99, P(A|G) = .01.
a) A squirrel sets off the alarm, what is the probability that it is evil?
b) Is the system of practical use?
answer: a) Let E be the event that a squirrel is evil. Let A be the
event that the alarm goes off. By Bayes Theorem, we have:
P(A | E)P(E)
P(E | A) =
P(A | E)P(E) + P(A | Ec)P(Ec)
.99 100
1000000
= 100
+ .01 999900
.991000000 1000000
≈ .01.
b) No. The alarm would be more trouble than its worth, since for
every true positive there are about 99 false positives.
May 27, 2014 2 / 17
Big point

Evil Nice
Alarm 99 9999 10098
No alarm 1 989901 989902
100 999900 1000000
Summary:
99+989901
Probability a random test is correct = = .991000000
Probability a positive test is correct = 99
≈ .0110098
These probabilities are not the same!
May 27, 2014 3 / 17
Table Question: Dice Game

1
2
3
The Randomizer holds the 6-sided die in one fist and
the 8-sided die in the other.

The Roller selects one of the Randomizer’s fists and

covertly takes the die.

The Roller rolls the die in secret and reports the result

to the table.

Given the reported number, what is the probability that
the 6-sided die was chosen?
May 27, 2014 4 / 17
Reading Review
Random variable X assigns a number to each outcome:
X : Ω → R
“X = a” denotes the event {ω | X(ω) = a}.
Probability mass function (pmf) of X is given by
p(a) = P(X = a).
Cumulative distribution function (cdf) of X is given by
F(a) = P(X ≤ a).
May 27, 2014 5 / 17
Concept Question: cdf and pmf
X a random variable.
values of X: 1 3 5 7
cdf F(a): .5 .75 .9 1
1. What is P(X ≤ 3)?
a) .15 b) .25 c) .5 d) .75
2. What is P(X = 3)
a) .15 b) .25 c) .5 d) .75
May 27, 2014 6 / 17
a
p(a)
1 3 5 7
.5
.25
.15
CDF and PMF

a
F(a)
1 3 5 7
.5
.75
.9
1
May 27, 2014 7 / 17
Deluge of discrete distributions
Bernoulli(p) =	 1 (success) with probability p,

0 (failure) with probability 1 − p.

In more neutral language:
Bernoulli(p) = 1 (heads) with probability p,
0 (tails) with probability 1 − p.
Binomial(n,p) = # of successes in n independent
Bernoulli(p) trials.
Geometric(p) = # of tails before first heads in a
sequence of indep. Bernoulli(p) trials.
(Neutral language avoids confusing whether we want the number of
successes before the first failure or vice versa.)
May 27, 2014 8 / 17
Concept Question

1. Let X ∼ binom(n, p) and Y ∼ binom(m, p) be
independent. Then X + Y follows:
a) binom(n + m, p) b) binom(nm, p)
c) binom(n + m, 2p) d) other
2. Let X ∼ binom(n, p) and Z ∼ binom(n, q) be
independent. Then X + Z follows:
a) binom(n, p + q) b) binom(n, pq)
c) binom(2n, p + q) d) other
May 27, 2014 9 / 17
Board Question: Find the pmf

X = # of successes before the second failure of a
sequence of independent Bernoulli(p) trials.
Describe the pmf of X.
May 27, 2014 10 / 17
Dice simulation: geometric(1/4)

Roll the 4-sided die repeatedly until you roll a 1.

Click in X = # of rolls BEFORE the 1.

(If X is 9 or more click 9.)

Example: If you roll (3, 4, 2, 3, 1) then click in 4.

Example: If you roll (1) then click 0.

May 27, 2014 11 / 17
Fiction

Gambler’s fallacy: [roulette] if black comes up several
times in a row then the next spin is more likely to be red.
Hot hand: NBA players get ‘hot’.
May 27, 2014 12 / 17
Fact

P(red) remains the same.

The roulette wheel has no memory. (Monte Carlo, 1913).

The data show that player who has made 5 shots in a row
is no more likely than usual to make the next shot.
May 27, 2014 13 / 17
Memory

Show that Geometric(p) is memoryless, i.e.
P(X = n + k | X ≥ n) = P(X = k)
Explain why we call this memoryless.
May 27, 2014 14 / 17
�
�
Computing expected value

Definition: E(X) = xi p(xi)
i
1. E(aX + b) = aE(X) + b
2. E(X + Y ) = E(X) + E(Y )
3. E(h(X)) = h(xi) p(xi)
i
May 27, 2014 15 / 17
Board Question: Interpreting Expectation

a) Would you accept a gamble that offers a 10% chance
to win $95 and a 90% chance of losing $5?
b) Would you pay $5 to participate in a lottery that offers
a 10% percent chance to win $100 and a 90% chance to
win nothing?
• Find the expected value of your change in assets in each
case?
May 27, 2014 16 / 17
Board Question

Suppose (hypothetically!) that everyone at your table got
up, ran around the room, and sat back down randomly
(i.e., all seating arrangements are equally likely).
What is the expected value of the number of people
sitting in their original seat?
(We will explore this with simulations in Friday Studio.)
May 27, 2014 17 / 17
MIT OpenCourseWare
http://ocw.mit.edu
18.05 Introduction to Probability and Statistics
Spring 2014
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

More Related Content

What's hot

NEG6MathPTPaper.12.06.10.pdf
NEG6MathPTPaper.12.06.10.pdfNEG6MathPTPaper.12.06.10.pdf
NEG6MathPTPaper.12.06.10.pdfkalelmoisesrubia
 
Math vs. zombies (A Quiz Bowl on Polynomials)
Math vs. zombies (A Quiz Bowl on Polynomials)Math vs. zombies (A Quiz Bowl on Polynomials)
Math vs. zombies (A Quiz Bowl on Polynomials)jeshajomarie
 
4-5 Mental Math: Multiplication Patterns: Using 10, 100, 1000
4-5 Mental Math: Multiplication Patterns: Using 10, 100, 10004-5 Mental Math: Multiplication Patterns: Using 10, 100, 1000
4-5 Mental Math: Multiplication Patterns: Using 10, 100, 1000Rudy Alfonso
 
Mock cat solutions paper no 1
Mock cat solutions paper no 1Mock cat solutions paper no 1
Mock cat solutions paper no 1Vandan Kashyap
 
Test bank for reconceptualizing mathematics for elementary school teachers 3r...
Test bank for reconceptualizing mathematics for elementary school teachers 3r...Test bank for reconceptualizing mathematics for elementary school teachers 3r...
Test bank for reconceptualizing mathematics for elementary school teachers 3r...minuter12
 
Mock cat questions paper no 1
Mock cat questions paper no 1Mock cat questions paper no 1
Mock cat questions paper no 1Vandan Kashyap
 
Mathpracticeforfinalexam
Mathpracticeforfinalexam Mathpracticeforfinalexam
Mathpracticeforfinalexam Dulce Garza
 
Pure ch20
Pure ch20Pure ch20
Pure ch20arbi
 
Some topics in analysis of boolean functions
Some topics in analysis of boolean functionsSome topics in analysis of boolean functions
Some topics in analysis of boolean functionsguest756c74
 
Math Quiz-Final round with answer
Math Quiz-Final round with answerMath Quiz-Final round with answer
Math Quiz-Final round with answerEmam Khan
 
Mathletics Tara Net Junior Quiz
Mathletics Tara Net Junior QuizMathletics Tara Net Junior Quiz
Mathletics Tara Net Junior QuizRachel Whalley
 

What's hot (19)

Stochastic Processes Homework Help
Stochastic Processes Homework Help Stochastic Processes Homework Help
Stochastic Processes Homework Help
 
NEG6MathPTPaper.12.06.10.pdf
NEG6MathPTPaper.12.06.10.pdfNEG6MathPTPaper.12.06.10.pdf
NEG6MathPTPaper.12.06.10.pdf
 
Class 6 Mathematics
Class 6 MathematicsClass 6 Mathematics
Class 6 Mathematics
 
Math vs. zombies (A Quiz Bowl on Polynomials)
Math vs. zombies (A Quiz Bowl on Polynomials)Math vs. zombies (A Quiz Bowl on Polynomials)
Math vs. zombies (A Quiz Bowl on Polynomials)
 
4-5 Mental Math: Multiplication Patterns: Using 10, 100, 1000
4-5 Mental Math: Multiplication Patterns: Using 10, 100, 10004-5 Mental Math: Multiplication Patterns: Using 10, 100, 1000
4-5 Mental Math: Multiplication Patterns: Using 10, 100, 1000
 
Mock cat solutions paper no 1
Mock cat solutions paper no 1Mock cat solutions paper no 1
Mock cat solutions paper no 1
 
Test bank for reconceptualizing mathematics for elementary school teachers 3r...
Test bank for reconceptualizing mathematics for elementary school teachers 3r...Test bank for reconceptualizing mathematics for elementary school teachers 3r...
Test bank for reconceptualizing mathematics for elementary school teachers 3r...
 
Mock cat questions paper no 1
Mock cat questions paper no 1Mock cat questions paper no 1
Mock cat questions paper no 1
 
Mathletics quiz
Mathletics quizMathletics quiz
Mathletics quiz
 
Maths Quiz
Maths QuizMaths Quiz
Maths Quiz
 
Maths quiz 6 8
Maths quiz 6 8Maths quiz 6 8
Maths quiz 6 8
 
Mathpracticeforfinalexam
Mathpracticeforfinalexam Mathpracticeforfinalexam
Mathpracticeforfinalexam
 
Qp smc12
Qp smc12Qp smc12
Qp smc12
 
Pure ch20
Pure ch20Pure ch20
Pure ch20
 
Some topics in analysis of boolean functions
Some topics in analysis of boolean functionsSome topics in analysis of boolean functions
Some topics in analysis of boolean functions
 
Math Quiz-Final round with answer
Math Quiz-Final round with answerMath Quiz-Final round with answer
Math Quiz-Final round with answer
 
Mathletics Tara Net Junior Quiz
Mathletics Tara Net Junior QuizMathletics Tara Net Junior Quiz
Mathletics Tara Net Junior Quiz
 
math m1
math m1math m1
math m1
 
Maths quiz
Maths quizMaths quiz
Maths quiz
 

Viewers also liked

LA PREHISTORIA
LA PREHISTORIALA PREHISTORIA
LA PREHISTORIAgema13
 
Michaelhoang nextpage casestudy
Michaelhoang nextpage casestudyMichaelhoang nextpage casestudy
Michaelhoang nextpage casestudyMichael Hoang
 
A K Enterprises - Silent Power
A K Enterprises - Silent PowerA K Enterprises - Silent Power
A K Enterprises - Silent PowerSubodh Singh
 
Pembelajaran terpadu
Pembelajaran terpaduPembelajaran terpadu
Pembelajaran terpaduNoviana Ulfa
 
Les piles électrochimiques
Les piles électrochimiquesLes piles électrochimiques
Les piles électrochimiquesMaurice Maeck
 
Kant, The perpetual peace
Kant, The perpetual peaceKant, The perpetual peace
Kant, The perpetual peaceGiusi Gualtieri
 
Modelo moderno proteccionismo
Modelo moderno proteccionismoModelo moderno proteccionismo
Modelo moderno proteccionismoTattiana3
 
Little drummer boy
Little drummer boyLittle drummer boy
Little drummer boypietra bravo
 
Daniel-and-Maya-BCG-Case-Study-2
Daniel-and-Maya-BCG-Case-Study-2Daniel-and-Maya-BCG-Case-Study-2
Daniel-and-Maya-BCG-Case-Study-2danwark
 
Costruccion de la sociedad anonima
Costruccion de la sociedad anonimaCostruccion de la sociedad anonima
Costruccion de la sociedad anonimaKevin Sierra
 

Viewers also liked (19)

Jobs roles
Jobs rolesJobs roles
Jobs roles
 
LA PREHISTORIA
LA PREHISTORIALA PREHISTORIA
LA PREHISTORIA
 
Michaelhoang nextpage casestudy
Michaelhoang nextpage casestudyMichaelhoang nextpage casestudy
Michaelhoang nextpage casestudy
 
A K Enterprises - Silent Power
A K Enterprises - Silent PowerA K Enterprises - Silent Power
A K Enterprises - Silent Power
 
Pembelajaran terpadu
Pembelajaran terpaduPembelajaran terpadu
Pembelajaran terpadu
 
Les piles électrochimiques
Les piles électrochimiquesLes piles électrochimiques
Les piles électrochimiques
 
Silabus integrasi
Silabus integrasiSilabus integrasi
Silabus integrasi
 
Kant, The perpetual peace
Kant, The perpetual peaceKant, The perpetual peace
Kant, The perpetual peace
 
Resume
ResumeResume
Resume
 
Barbaros
BarbarosBarbaros
Barbaros
 
Tesoros
TesorosTesoros
Tesoros
 
Prueba diagnostica
Prueba diagnosticaPrueba diagnostica
Prueba diagnostica
 
Resumen del contenido
Resumen del contenidoResumen del contenido
Resumen del contenido
 
Modelo moderno proteccionismo
Modelo moderno proteccionismoModelo moderno proteccionismo
Modelo moderno proteccionismo
 
L albatros
L albatrosL albatros
L albatros
 
Little drummer boy
Little drummer boyLittle drummer boy
Little drummer boy
 
P&G
P&GP&G
P&G
 
Daniel-and-Maya-BCG-Case-Study-2
Daniel-and-Maya-BCG-Case-Study-2Daniel-and-Maya-BCG-Case-Study-2
Daniel-and-Maya-BCG-Case-Study-2
 
Costruccion de la sociedad anonima
Costruccion de la sociedad anonimaCostruccion de la sociedad anonima
Costruccion de la sociedad anonima
 

Similar to Mit18 05 s14_class4slides

Voronoi diagrams in information geometry:  Statistical Voronoi diagrams and ...
Voronoi diagrams in information geometry:  Statistical Voronoi diagrams and ...Voronoi diagrams in information geometry:  Statistical Voronoi diagrams and ...
Voronoi diagrams in information geometry:  Statistical Voronoi diagrams and ...Frank Nielsen
 
Optimization of probabilistic argumentation with Markov processes
Optimization of probabilistic argumentation with Markov processesOptimization of probabilistic argumentation with Markov processes
Optimization of probabilistic argumentation with Markov processesEmmanuel Hadoux
 
Slides: Hypothesis testing, information divergence and computational geometry
Slides: Hypothesis testing, information divergence and computational geometrySlides: Hypothesis testing, information divergence and computational geometry
Slides: Hypothesis testing, information divergence and computational geometryFrank Nielsen
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slidesAnimesh Kumar
 
Probability trinity college
Probability trinity collegeProbability trinity college
Probability trinity collegeStacy Carter
 
Testing for mixtures by seeking components
Testing for mixtures by seeking componentsTesting for mixtures by seeking components
Testing for mixtures by seeking componentsChristian Robert
 
An introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using PythonAn introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using Pythonfreshdatabos
 
Introduction of Probability
Introduction of ProbabilityIntroduction of Probability
Introduction of Probabilityrey castro
 
Practical volume estimation of polytopes by billiard trajectories and a new a...
Practical volume estimation of polytopes by billiard trajectories and a new a...Practical volume estimation of polytopes by billiard trajectories and a new a...
Practical volume estimation of polytopes by billiard trajectories and a new a...Apostolos Chalkis
 
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...Apostolos Chalkis
 

Similar to Mit18 05 s14_class4slides (20)

Practice Test 2 Solutions
Practice Test 2  SolutionsPractice Test 2  Solutions
Practice Test 2 Solutions
 
Mathematics Assignment Help
Mathematics Assignment Help Mathematics Assignment Help
Mathematics Assignment Help
 
Voronoi diagrams in information geometry:  Statistical Voronoi diagrams and ...
Voronoi diagrams in information geometry:  Statistical Voronoi diagrams and ...Voronoi diagrams in information geometry:  Statistical Voronoi diagrams and ...
Voronoi diagrams in information geometry:  Statistical Voronoi diagrams and ...
 
Optimization of probabilistic argumentation with Markov processes
Optimization of probabilistic argumentation with Markov processesOptimization of probabilistic argumentation with Markov processes
Optimization of probabilistic argumentation with Markov processes
 
Slides: Hypothesis testing, information divergence and computational geometry
Slides: Hypothesis testing, information divergence and computational geometrySlides: Hypothesis testing, information divergence and computational geometry
Slides: Hypothesis testing, information divergence and computational geometry
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slides
 
02 math essentials
02 math essentials02 math essentials
02 math essentials
 
Probability Homework Help
Probability Homework Help Probability Homework Help
Probability Homework Help
 
Intro to ABC
Intro to ABCIntro to ABC
Intro to ABC
 
Probability
ProbabilityProbability
Probability
 
PTSP PPT.pdf
PTSP PPT.pdfPTSP PPT.pdf
PTSP PPT.pdf
 
Chapter 13
Chapter 13Chapter 13
Chapter 13
 
Probability trinity college
Probability trinity collegeProbability trinity college
Probability trinity college
 
Probability Homework Help
Probability Homework HelpProbability Homework Help
Probability Homework Help
 
Testing for mixtures by seeking components
Testing for mixtures by seeking componentsTesting for mixtures by seeking components
Testing for mixtures by seeking components
 
An introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using PythonAn introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using Python
 
Introduction of Probability
Introduction of ProbabilityIntroduction of Probability
Introduction of Probability
 
Practical volume estimation of polytopes by billiard trajectories and a new a...
Practical volume estimation of polytopes by billiard trajectories and a new a...Practical volume estimation of polytopes by billiard trajectories and a new a...
Practical volume estimation of polytopes by billiard trajectories and a new a...
 
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...
 
Probability
ProbabilityProbability
Probability
 

More from Animesh Kumar

More from Animesh Kumar (10)

10th class weaker students case
10th class weaker students case10th class weaker students case
10th class weaker students case
 
Model selection
Model selectionModel selection
Model selection
 
Portfolios, mutual funds class
Portfolios, mutual funds  classPortfolios, mutual funds  class
Portfolios, mutual funds class
 
2016 may cover
2016 may cover2016 may cover
2016 may cover
 
2016 june cover
2016 june cover2016 june cover
2016 june cover
 
2016 april cover
2016 april cover2016 april cover
2016 april cover
 
2016 march cover
2016 march cover2016 march cover
2016 march cover
 
Spss tutorial-cluster-analysis
Spss tutorial-cluster-analysisSpss tutorial-cluster-analysis
Spss tutorial-cluster-analysis
 
Cjc tutorial
Cjc tutorialCjc tutorial
Cjc tutorial
 
Pen drive bootable
Pen drive bootablePen drive bootable
Pen drive bootable
 

Recently uploaded

Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Lviv Startup Club
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayNZSG
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMANIlamathiKannappan
 
John Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfJohn Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfAmzadHosen3
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfAdmir Softic
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxWorkforce Group
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...amitlee9823
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Dave Litwiller
 
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyEthan lee
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...Aggregage
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Serviceritikaroy0888
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Dipal Arora
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsMichael W. Hawkins
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.Aaiza Hassan
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataExhibitors Data
 

Recently uploaded (20)

Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
John Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfJohn Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdf
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael Hawkins
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 

Mit18 05 s14_class4slides

  • 1. Discrete Random Variables; Expectation 18.05 Spring 2014 Jeremy Orloff and Jonathan Bloom http://www.mathsisfun.com/data/quincunx.html http://www.youtube.com/watch?v=9xUBhhM4vbM This image is in the public domain.
  • 2. Board Question: Evil Squirrels One million squirrels, of which 100 are pure evil! Events: E = evil, G = good, A = alarm sounds Accuracy: P(A|E) = .99, P(A|G) = .01. a) A squirrel sets off the alarm, what is the probability that it is evil? b) Is the system of practical use? answer: a) Let E be the event that a squirrel is evil. Let A be the event that the alarm goes off. By Bayes Theorem, we have: P(A | E)P(E) P(E | A) = P(A | E)P(E) + P(A | Ec)P(Ec) .99 100 1000000 = 100 + .01 999900 .991000000 1000000 ≈ .01. b) No. The alarm would be more trouble than its worth, since for every true positive there are about 99 false positives. May 27, 2014 2 / 17
  • 3. Big point Evil Nice Alarm 99 9999 10098 No alarm 1 989901 989902 100 999900 1000000 Summary: 99+989901 Probability a random test is correct = = .991000000 Probability a positive test is correct = 99 ≈ .0110098 These probabilities are not the same! May 27, 2014 3 / 17
  • 4. Table Question: Dice Game 1 2 3 The Randomizer holds the 6-sided die in one fist and the 8-sided die in the other. The Roller selects one of the Randomizer’s fists and covertly takes the die. The Roller rolls the die in secret and reports the result to the table. Given the reported number, what is the probability that the 6-sided die was chosen? May 27, 2014 4 / 17
  • 5. Reading Review Random variable X assigns a number to each outcome: X : Ω → R “X = a” denotes the event {ω | X(ω) = a}. Probability mass function (pmf) of X is given by p(a) = P(X = a). Cumulative distribution function (cdf) of X is given by F(a) = P(X ≤ a). May 27, 2014 5 / 17
  • 6. Concept Question: cdf and pmf X a random variable. values of X: 1 3 5 7 cdf F(a): .5 .75 .9 1 1. What is P(X ≤ 3)? a) .15 b) .25 c) .5 d) .75 2. What is P(X = 3) a) .15 b) .25 c) .5 d) .75 May 27, 2014 6 / 17
  • 7. a p(a) 1 3 5 7 .5 .25 .15 CDF and PMF a F(a) 1 3 5 7 .5 .75 .9 1 May 27, 2014 7 / 17
  • 8. Deluge of discrete distributions Bernoulli(p) = 1 (success) with probability p, 0 (failure) with probability 1 − p. In more neutral language: Bernoulli(p) = 1 (heads) with probability p, 0 (tails) with probability 1 − p. Binomial(n,p) = # of successes in n independent Bernoulli(p) trials. Geometric(p) = # of tails before first heads in a sequence of indep. Bernoulli(p) trials. (Neutral language avoids confusing whether we want the number of successes before the first failure or vice versa.) May 27, 2014 8 / 17
  • 9. Concept Question 1. Let X ∼ binom(n, p) and Y ∼ binom(m, p) be independent. Then X + Y follows: a) binom(n + m, p) b) binom(nm, p) c) binom(n + m, 2p) d) other 2. Let X ∼ binom(n, p) and Z ∼ binom(n, q) be independent. Then X + Z follows: a) binom(n, p + q) b) binom(n, pq) c) binom(2n, p + q) d) other May 27, 2014 9 / 17
  • 10. Board Question: Find the pmf X = # of successes before the second failure of a sequence of independent Bernoulli(p) trials. Describe the pmf of X. May 27, 2014 10 / 17
  • 11. Dice simulation: geometric(1/4) Roll the 4-sided die repeatedly until you roll a 1. Click in X = # of rolls BEFORE the 1. (If X is 9 or more click 9.) Example: If you roll (3, 4, 2, 3, 1) then click in 4. Example: If you roll (1) then click 0. May 27, 2014 11 / 17
  • 12. Fiction Gambler’s fallacy: [roulette] if black comes up several times in a row then the next spin is more likely to be red. Hot hand: NBA players get ‘hot’. May 27, 2014 12 / 17
  • 13. Fact P(red) remains the same. The roulette wheel has no memory. (Monte Carlo, 1913). The data show that player who has made 5 shots in a row is no more likely than usual to make the next shot. May 27, 2014 13 / 17
  • 14. Memory Show that Geometric(p) is memoryless, i.e. P(X = n + k | X ≥ n) = P(X = k) Explain why we call this memoryless. May 27, 2014 14 / 17
  • 15. � � Computing expected value Definition: E(X) = xi p(xi) i 1. E(aX + b) = aE(X) + b 2. E(X + Y ) = E(X) + E(Y ) 3. E(h(X)) = h(xi) p(xi) i May 27, 2014 15 / 17
  • 16. Board Question: Interpreting Expectation a) Would you accept a gamble that offers a 10% chance to win $95 and a 90% chance of losing $5? b) Would you pay $5 to participate in a lottery that offers a 10% percent chance to win $100 and a 90% chance to win nothing? • Find the expected value of your change in assets in each case? May 27, 2014 16 / 17
  • 17. Board Question Suppose (hypothetically!) that everyone at your table got up, ran around the room, and sat back down randomly (i.e., all seating arrangements are equally likely). What is the expected value of the number of people sitting in their original seat? (We will explore this with simulations in Friday Studio.) May 27, 2014 17 / 17
  • 18. MIT OpenCourseWare http://ocw.mit.edu 18.05 Introduction to Probability and Statistics Spring 2014 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.