HUDM4122 Probability and Statistical Inference

Slides:



Advertisements
Similar presentations
Please turn off cell phones, pagers, etc. The lecture will begin shortly.
Advertisements

HUDM4122 Probability and Statistical Inference February 2, 2015.
HUDM4122 Probability and Statistical Inference February 16, 2015.
HUDM4122 Probability and Statistical Inference February 18, 2015.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 4-1 Introduction to Statistics Chapter 5 Random Variables.
Probability Distributions Finite Random Variables.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Statistics.
The Practice of Statistics, Fourth Edition.
Mutually Exclusive: P(not A) = 1- P(A) Complement Rule: P(A and B) = 0 P(A or B) = P(A) + P(B) - P(A and B) General Addition Rule: Conditional Probability:
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
Statistics 303 Chapter 4 and 1.3 Probability. The probability of an outcome is the proportion of times the outcome would occur if we repeated the procedure.
Biostatistics Lecture 7 4/7/2015. Chapter 7 Theoretical Probability Distributions.
Chapter 5: Probability Distribution What is Probability Distribution? It is a table of possible outcomes of an experiment and the probability of each outcome.
Chapter 7 Random Variables.  Sample spaces are not always numeric (example tossing 4 coins: HTTH, TTTH, etc.)  If we let X = the number of heads, then.
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
Chapter 7 Random Variables.  Sample spaces are not always numeric (example tossing 4 coins: HTTH, TTTH, etc.)  If we let X = the number of heads, then.
Slide 5-1 Chapter 5 Probability and Random Variables.
MATH 2400 Ch. 10 Notes. So…the Normal Distribution. Know the 68%, 95%, 99.7% rule Calculate a z-score Be able to calculate Probabilities of… X < a(X is.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
Probability Distributions
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 5-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
1 Probability: Introduction Definitions,Definitions, Laws of ProbabilityLaws of Probability Random VariablesRandom Variables DistributionsDistributions.
Welcome to MM305 Unit 3 Seminar Prof Greg Probability Concepts and Applications.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Business Statistics,
© 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. Chapter Six McGraw-Hill/Irwin Discrete Probability Distributions.
AP Statistics Section 7.1 Probability Distributions.
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
Basic Practice of Statistics - 3rd Edition Introducing Probability
APPENDIX A: A REVIEW OF SOME STATISTICAL CONCEPTS
4.2 Random Variables and Their Probability distributions
CHAPTER 6 Random Variables
Probability Distributions
Welcome to MM305 Unit 3 Seminar Dr
Discrete and Continuous Random Variables
Chapter 6 6.1/6.2 Probability Probability is the branch of mathematics that describes the pattern of chance outcomes.
Random Variables.
Discrete Random Variables
Aim – How do we analyze a Discrete Random Variable?
Probability Distribution
CHAPTER 6 Random Variables
CHAPTER 12: Introducing Probability
HUDM4122 Probability and Statistical Inference
HUDM4122 Probability and Statistical Inference
Econ 113 Lecture Module 2.
HUDM4122 Probability and Statistical Inference
Probability Distributions
AP Statistics: Chapter 7
Means and Variances of Random Variables
Bluman, Chapter 5.
Chapter 4 – Part 3.
Chapter 4 – Part 2.
Chapter 16.
Chapter 5 Some Important Discrete Probability Distributions
Chapter 6: Random Variables
Probability Key Questions
Review
6.1: Discrete and Continuous Random Variables
Discrete Distributions
Sampling Distributions
Chapter 7 Random Variables.
Discrete Distributions
Chapter 6: Random Variables
Pull 2 samples of 5 pennies and record both averages (2 dots).
Section Means and Variances of Random Variables
Discrete Distributions.
AP Statistics Chapter 16 Notes.
RANDOM VARIABLES Random variable:
Discrete Distributions
Lesson #5: Probability Distributions
A random experiment gives rise to possible outcomes, but any particular outcome is uncertain – “random”. For example, tossing a coin… we know H or T will.
Presentation transcript:

HUDM4122 Probability and Statistical Inference February 23, 2015

In the last class We studied Bayes’ Theorem and the Law of Total Probability

Any questions or comments?

Today Chapter 4.8 in Mendenhall, Beaver, & Beaver Probability Distributions Random Variables

Random Variable “A variable x is a random variable if the value that it assumes, corresponding to the outcome of an experiment, is a chance or random event.” – MBB, p.158 “A random variable is a variable whose value is subject to variations due to chance.” -- Wikipedia

Random Variable It is not that the variable can have any value at random But that the variable’s value comes from random sampling

These are random variables A coin flip’s result Number of times a randomly selected student is sent to the principal’s office NY Regents Exam score for a randomly selected student in NY State Number of people on the subway at a randomly selected time

These are not random variables I flip a biased coin that gives 100% heads The temperature setting on your oven – you set it yourself These values are not subject to chance

A random variable’s value You can never say for sure what it’s going to be There is a certainly probability that it will have certain values

Questions? Comments?

Reminder Discrete variable Continuous/numerical variable Can have limited number of values Continuous/numerical variable Can have infinite number of values

Which of these are Discrete Variables? Number of heads in 3 coin flips Sum of rolling two 6-sided dice Temperature outside How late is 2 train Height of a person, rounded to closest inch Number of times a randomly selected student is sent to the principal’s office

Probability Distribution A probability distribution for random variable X gives the possible values of X, x1…xn And the probability p(xi) associated with each value of X

Probability Distribution A probability distribution for random variable X gives the possible values of X, x1…xn And the probability p(xi) associated with each value of X Each value of X is mutually exclusive The sum of p(xi) adds to 1

Example I flip a coin twice The number of heads can be 0, 1, or 2 TT: 0 TH:1 HT:1 HH:2

Example x P(x) 1 2 I flip a coin twice The number of heads can be 0, 1, or 2 TT: 0 TH:1 HT:1 HH:2 x P(x) 1 2

Example x P(x) 1/4 1 2/4 2 I flip a coin twice The number of heads can be 0, 1, or 2 TT: 0 TH:1 HT:1 HH:2 x P(x) 1/4 1 2/4 2

Example x P(x) 1/4 1 1/2 2 I flip a coin twice The number of heads can be 0, 1, or 2 TT: 0 TH:1 HT:1 HH:2 x P(x) 1/4 1 1/2 2

Example x P(x) 0.25 1 0.5 2 I flip a coin twice The number of heads can be 0, 1, or 2 TT: 0 TH:1 HT:1 HH:2 x P(x) 0.25 1 0.5 2

Probability Histogram x P(x) 0.25 1 0.5 2

You try it I flip a coin three times What is the probability distribution on the number of heads?

You try it: What is the Probability Distribution? I collected the following data on the temperature in NYC Day Temp 1 Cold 9 2 10 3 Freezing 11 4 12 Not That Bad 5 13 6 14 F’ing Freezing 7 15 8 16

Note that probability distributions can have many values

Later in the semester We’ll talk about probability distributions for continuous variables

Questions? Comments?

Expected Value of Probability Distribution The value you can expect to get on average if you re-run your experiment many times Take each value, multiply it by its probability Add those together E(x) = 𝑥∗𝑝(𝑥)

Expected Value of Probability Distribution The value you can expect to get on average if you re-run your experiment many times Take each value, multiply it by its probability Add those together E(x) = 𝑥∗𝑝(𝑥) This is also called the mean of the random variable, m

Example 0(0.25) + 1(0.5) + 2(0.25) x P(x) 0.25 1 0.5 2

Example 0 + 0.5 + 0.5 = 1 x P(x) 0.25 1 0.5 2

You can expect 1 head on average if you flip a coin twice, infinite times 0 + 0.5 + 0.5 = 1 x P(x) 0.25 1 0.5 2

You Try It x P(x) 0.1 1 0.5 2 0.2 3

You Try It x P(x) 0.1 1 0.5 2 0.2 3 0(0.1)+1(0.5)+2(0.2)+3(0.2)

You Try It x P(x) 0.1 1 0.5 2 0.2 3 0+0.5+0.4+0.6= 1.5

You Try It My dad’s barber has played the lottery every day for 40 years (a.k.a. 14,600 times), at $1 a ticket One time he won $1000 What is the expected value for playing the lottery?

You Try It My dad’s barber has played the lottery every day for 40 years (a.k.a. 14,600 times), at $1 a ticket One time he won $1000 What is the expected value for playing the lottery? (1/14600)(1000) + (14599/14600)(-1)

You Try It My dad’s barber has played the lottery every day for 40 years (a.k.a. 14,600 times), at $1 a ticket One time he won $1000 What is the expected value for playing the lottery? (1/14600)(1000) + (14599/14600)(-1)= 0.068 – 0. 999 = $-0.931

Questions? Comments?

Variance of Discrete Random Variable 𝑥−𝜇 2 𝑝(𝑥)

Standard Deviation of Discrete Random Variable 𝑥−𝜇 2 𝑝(𝑥)

Example: SD of Random Variable P(x) 0.25 1 0.5 2

Example: SD of Random Variable P(x) 0.25 1 0.5 2 Recall: m = 1

Example: SD of Random Variable P(x) 0.25 1 0.5 2 Recall: m = 1 𝑥−𝜇 2 𝑝(𝑥)

Example: SD of Random Variable P(x) 0.25 1 0.5 2 Recall: m = 1 0−1 2 (0.25)+ 1−1 2 .5 + 2−1 2 .25

Example: SD of Random Variable P(x) 0.25 1 0.5 2 Recall: m = 1 1(0.25)+0 .5 +1 .25

Example: SD of Random Variable P(x) 0.25 1 0.5 2 Recall: m = 1 0.25+0.25

Example: SD of Random Variable P(x) 0.25 1 0.5 2 Recall: m = 1 0.25+0.25 0.707

You Try It: SD of random variable x P(x) 0.1 1 0.5 2 0.2 3 m = 1.5

Any last comments or questions for the day?

If there’s time: Do this in solver-explainer pairs Practice with extended version of Bayes Rule 𝑃( 𝑆 𝑖 |𝐴) = 𝑃 𝑆 𝑖 𝑃 𝐴 𝑆 𝑖 ) 𝑗=1 𝑘 𝑃 𝑆 𝑗 𝑃(𝐴| 𝑆 𝑗 )

Example There are three professors who teach HUDM4122. Let’s call them A, B, and C P(student is in prof A’s class) = P(A) = 0.4 P(student is in prof B’s class) = P(B) = 0.3 P(student is in prof C’s class) = P(C) = 0.1

Example P(student is in prof A’s class) = P(A) = 0.4 P(student is in prof B’s class) = P(B) = 0.3 P(student is in prof C’s class) = P(C) = 0.1 P(learned stats|A)=0.8 P(learned stats|B)=0.6 P(learned stats|C)=0.4

What is P(A | learned stats)? P(student is in prof A’s class) = P(A) = 0.4 P(student is in prof B’s class) = P(B) = 0.3 P(student is in prof C’s class) = P(C) = 0.1 P(learned stats|A)=0.8 P(learned stats|B)=0.6 P(learned stats|C)=0.4

Upcoming Classes 2/25 Binomial Probability Distribution Ch. 5-2 HW 4 due 2/28 Normal Probability Distribution

Homework 4 Due in 2 days In the ASSISTments system