Lecture #13 Tuesday, October 4, 2016 Textbook: Sections 7.3, 7.4, 8.1, 8.2, 8.3

Similar documents
What is a random variable

V. RANDOM VARIABLES, PROBABILITY DISTRIBUTIONS, EXPECTED VALUE

Random Variable. Discrete Random Variable. Continuous Random Variable. Discrete Random Variable. Discrete Probability Distribution

STA 247 Solutions to Assignment #1

CS 361: Probability & Statistics

Probability (Devore Chapter Two)

Discrete Random Variables. Discrete Random Variables

Probability Experiments, Trials, Outcomes, Sample Spaces Example 1 Example 2

Lecture 6 - Random Variables and Parameterized Sample Spaces

Math 493 Final Exam December 01

Senior Math Circles November 19, 2008 Probability II

Topic 5: Probability. 5.4 Combined Events and Conditional Probability Paper 1

Lecture notes for probability. Math 124

MAT Mathematics in Today's World

Discrete Probability

1 The Basic Counting Principles

Mathematical Foundations of Computer Science Lecture Outline October 18, 2018

Probability (Devore Chapter Two)

MATH 10 INTRODUCTORY STATISTICS

Chapter 8: An Introduction to Probability and Statistics

Probability theory for Networks (Part 1) CS 249B: Science of Networks Week 02: Monday, 02/04/08 Daniel Bilar Wellesley College Spring 2008

Probability Theory and Simulation Methods

Bayesian Updating with Discrete Priors Class 11, Jeremy Orloff and Jonathan Bloom

Great Theoretical Ideas in Computer Science

5) An experiment consists of rolling a red die and a green die and noting the result of each roll. Find the events:

Discrete distribution. Fitting probability models to frequency data. Hypotheses for! 2 test. ! 2 Goodness-of-fit test

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 12. Random Variables: Distribution and Expectation

Part 3: Parametric Models

Lecture 1: Probability Fundamentals

CISC 1100/1400 Structures of Comp. Sci./Discrete Structures Chapter 7 Probability. Outline. Terminology and background. Arthur G.

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

COS 424: Interacting with Data. Lecturer: Dave Blei Lecture #2 Scribe: Ellen Kim February 7, 2008

RVs and their probability distributions

Problems from Probability and Statistical Inference (9th ed.) by Hogg, Tanis and Zimmerman.

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Note 15. Random Variables: Distributions, Independence, and Expectations

P [(E and F )] P [F ]

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 16. Random Variables: Distribution and Expectation

Probability and Statistics Notes

Econ 325: Introduction to Empirical Economics

The topics in this section concern with the first course objective.

Elementary Discrete Probability

Nuevo examen - 02 de Febrero de 2017 [280 marks]

Exam III #1 Solutions

Probability theory basics

18.05 Practice Final Exam

1. Consider a random independent sample of size 712 from a distribution with the following pdf. c 1+x. f(x) =

Part 3: Parametric Models

Steve Smith Tuition: Maths Notes

Probability and Inference. POLI 205 Doing Research in Politics. Populations and Samples. Probability. Fall 2015

STA Module 4 Probability Concepts. Rev.F08 1

MATH 3C: MIDTERM 1 REVIEW. 1. Counting

Chapter 2.5 Random Variables and Probability The Modern View (cont.)

Unit 4 Probability. Dr Mahmoud Alhussami

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 14. Random Variables: Distribution and Expectation

STAT 430/510 Probability Lecture 7: Random Variable and Expectation

Math 151. Rumbos Fall Solutions to Review Problems for Exam 2. Pr(X = 1) = ) = Pr(X = 2) = Pr(X = 3) = p X. (k) =

Lecture 1. Chapter 1. (Part I) Material Covered in This Lecture: Chapter 1, Chapter 2 ( ). 1. What is Statistics?

Probability and Statisitcs

MATH/STAT 3360, Probability

9. DISCRETE PROBABILITY DISTRIBUTIONS

Introduction to Probability 2017/18 Supplementary Problems

Today we ll discuss ways to learn how to think about events that are influenced by chance.

Probability Year 9. Terminology

Review of Probability. CS1538: Introduction to Simulations

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 10

Random Variables. Statistics 110. Summer Copyright c 2006 by Mark E. Irwin

Why should you care?? Intellectual curiosity. Gambling. Mathematically the same as the ESP decision problem we discussed in Week 4.

Formalizing Probability. Choosing the Sample Space. Probability Measures

The enumeration of all possible outcomes of an experiment is called the sample space, denoted S. E.g.: S={head, tail}

MAT 271E Probability and Statistics

S n = x + X 1 + X X n.

Week 3 Sept. 17 Sept. 21

18.05 Final Exam. Good luck! Name. No calculators. Number of problems 16 concept questions, 16 problems, 21 pages

Some Probability and Statistics

UC Berkeley Department of Electrical Engineering and Computer Science. EE 126: Probablity and Random Processes. Solutions 5 Spring 2006

ELEG 3143 Probability & Stochastic Process Ch. 1 Experiments, Models, and Probabilities

Statistics and Econometrics I

Probability Year 10. Terminology

Deep Learning for Computer Vision

Example 1. The sample space of an experiment where we flip a pair of coins is denoted by:

If S = {O 1, O 2,, O n }, where O i is the i th elementary outcome, and p i is the probability of the i th elementary outcome, then

CH 3 P1. Two fair dice are rolled. What is the conditional probability that at least one lands on 6 given that the dice land on different numbers?

Lecture 1: Basics of Probability

Lesson B1 - Probability Distributions.notebook

Chapter 14. From Randomness to Probability. Copyright 2012, 2008, 2005 Pearson Education, Inc.

Data Structures and Algorithm Analysis (CSC317) Randomized algorithms

Conditional Probability

success and failure independent from one trial to the next?

MA 250 Probability and Statistics. Nazar Khan PUCIT Lecture 15

Example: Suppose we toss a quarter and observe whether it falls heads or tails, recording the result as 1 for heads and 0 for tails.

Lecture 3 - Axioms of Probability

DEFINITION: IF AN OUTCOME OF A RANDOM EXPERIMENT IS CONVERTED TO A SINGLE (RANDOM) NUMBER (E.G. THE TOTAL

HW MATH425/525 Lecture Notes 1

Intermediate Math Circles November 8, 2017 Probability II

The probability of an event is viewed as a numerical measure of the chance that the event will occur.

4.2 Probability Models

Markov Chains. Chapter 16. Markov Chains - 1

*Karle Laska s Sections: There is no class tomorrow and Friday! Have a good weekend! Scores will be posted in Compass early Friday morning

Statistical Methods for the Social Sciences, Autumn 2012

Probability Notes (A) , Fall 2010

Transcription:

STATISTICS 200 Lecture #13 Tuesday, October 4, 2016 Textbook: Sections 7.3, 7.4, 8.1, 8.2, 8.3 Objectives: Identify, and resist the temptation to fall for, the gambler s fallacy Define random variable and identify the difference between discrete and continuous. Use and recognize probability distribution functions (for discrete) or density functions (for continuous) Calculate and interpret the expected value of a discrete random variable.

Confusion of the inverse Suppose that a particular disease affects 1% of those who get tested for it. Also suppose that the test is 98% accurate. What would you advise a patient who tests positive if the test result were the only piece of information? True probability of disease given this information : about 33% Confusion between P(disease present given positive test) and P(positive test given disease present)

Cancer testing: confusion of the inverse Suppose we have a cancer test for a certain type of cancer. Sensitivity of the test: If you have cancer then the probability of a positive test is.98. Pr(+ given you have C) =.98 Specificity of the test: If you do not have cancer then the probability of a negative test is.98. Pr( given you do not have C) =.98 Base rate: The percent of the population who has the cancer. This is the probability that someone has C. Suppose for our example it is 1%. Hence, Pr(C) =.01.

Table of proportions (given): + Base rate C.98.02.01 no C.02.98.99 Hypothetical table of counts: Pr(C given a positive test result) = 98/296 = 33.1%

Gambler s fallacy Long-term probabilities should apply in the short term (false!) Random events should be selfcorrecting (false!) Example: a gambler who loses 48 times at a slot machine thinks that he is about to win, since he knows the slot machine pays big 1 in every 50 times in the long run.

Law of large numbers (this is true!) If an event is repeated many times independently with the same probability of success each time, the long-run success proportion will approach that probability. With independent events, knowing what has happened tells you nothing about what will happen. Misunderstanding this leads to the gambler s fallacy, also known as: The law of small numbers (not a real thing), which is that small samples will always be representative of the population from which they are drawn.

More on Gambler s Fallacy Suppose you flip four coins, keeping track of the results in order. Which is more likely, HHHH or HTTH? Which is more likely, four total heads or two total heads? Note: These questions are not the same! One of these questions is often mistakenly answered due to belief in the "Law of small numbers" (also known as the Gambler's Fallacy).

More probability review Suppose that you roll a fair 6-sided die until the first occurrence of a 4. What is the probability that the first 4 occurs on the third roll? (A) 1/6 (B) 5/6 (C) (5/6) (5/6) (1/6) (D) (1/6) (1/6) (1/6) (E) (1/6) + (1/6) + (1/6)

Still more probability review Consider the diagram. A.3.1 B.4?? Which number should go in the?? Box? A. 1.0 B. 0.2 C. 0.1 D. 0.9

What is a random variable? A random variable is a rule for assigning a numerical value to each outcome of a probability experiment. Example: The number of heads that appear if I toss a nickel, a dime, and a quarter.

Capital letters like X or Y denote random variables Let X = number of heads X = 3 X = 0 X = 1 X = 2 X = 2 X = 2 X = 1 X = 1 Later, we ll assign a probability to each possible value of X.

Examples: Discrete Random Variables Flip 3 coins X= # heads Roll 2 dice X= sum of dots Survive Monday X= # cups of coffee Possible values of X 0, 1, 2, 3 2, 3,, 11, 12 0, 1, 2,, 10,

Discrete Random Variables Discrete list of distinct values. Typically used when a variable is integer-valued without too many possible choices. choices pdf (Probability distribution function) For example: P(X = 2) = 0.278 If X is the sum of two fair dice when rolled.

Examples: Continuous Random Variables Possible values of X Catch the R bus X= time waiting Weigh male firefighter X= his weight Between 0 and 20, ideally Between 150 and 250 Run obstacle course X= time to finish 0 to infinity?

Continuous Random Variable Assumes a range of values covering an interval.. May be limited by instrument s accuracy / decimal points, but still continuous. is this area We can t find probabilities for exact outcomes. For example: P(X = 2) = 0. Instead we can find probabilities for a range of values. Find probabilities using a probability density function, which is a curve. Calculate probabilities by finding the area under the curve.

Coin example: build pdf for X = # heads from 3 coin tosses k P(X=k) 0 1 / 8 1 / 8 2 / 8 3 / 8 Total 1

Coin example: build pdf for X = # heads from 3 coin tosses k P(X=k) 0 1 / 8 1 3 / 8 2 / 8 3 / 8 Total 1

Coin example: build pdf for X = # heads from 3 coin tosses k P(X=k) 0 1 / 8 1 3 / 8 2 3 / 8 3 / 8 Total 1

Coin example: build pdf for X = # heads from 3 coin tosses k P(X=k) 0 1 / 8 1 3 / 8 2 3 / 8 3 1 / 8 Total 1

Example 2: An example of a probability distribution function (pdf) Let X = number of courses per semester taught by PSU faculty k P(X = k) 0 0.1 1 0.3 2 0.4 3 0.2 Total 1.0 Why is this table a pdf?

X = number of courses/semester taught by PSU faculty k P(X = k) 0 0.1 What is the probability that X is: exactly 2 classes? P (X = 2) = 0.4 at most 2 classes? 1 0.3 2 0.4 at least 1 class? 3 0.2 Total 1.0 more than 1 class? Note: need to be careful at the borders

X = number of courses/semester taught by PSU faculty k P(X = k) 0 0.1 1 0.3 2 0.4 What is the probability that X is: exactly 2 classes? P (X = 2) = 0.4 at most 2 classes? P (X apple 2) = 0.1+0.3+0.4 =0.8 at least 1 class? 3 0.2 Total 1.0 more than 1 class? Note: need to be careful at the borders

X = number of courses/semester taught by PSU faculty k P(X = k) 0 0.1 1 0.3 2 0.4 3 0.2 Total 1.0 What is the probability that X is: exactly 2 classes? P (X = 2) = 0.4 at most 2 classes? P (X apple 2) = 0.1+0.3+0.4 =0.8 at least 1 class? P (X 1) = 0.3+0.4+0.2 =0.9 more than 1 class? Note: need to be careful at the borders

X = number of courses/semester taught by PSU faculty k P(X = k) 0 0.1 1 0.3 2 0.4 3 0.2 Total 1.0 What is the probability that X is: exactly 2 classes? P (X = 2) = 0.4 at most 2 classes? P (X apple 2) = 0.1+0.3+0.4 =0.8 at least 1 class? P (X 1) = 0.3+0.4+0.2 =0.9 more than 1 class? P (X >1) = 0.4+0.2 =0.6 Note: need to be careful at the borders

25 Section 8.3: Expected Value for Any Discrete Random Variable Expected Value of X notation µ:`mu Average value in the long run. When calculated using a pdf: a weighted average In other words, mean from an imagined infinite number of observations.

Expected Value = Sum of value probability over all possible values Faculty Example: Calculate the Expected Value E(X) k P(X = k) 0 0.1 1 0.3 2 0.4 3 0.2 Total 1.0 X = # courses/semester taught by PSU faculty E(X) = µ = Interpretation: The average is 1.7 classes for this population 26 0 (.1) + 1 (.3) + 2 (.4) + 3 (.2) = 1.7

Expected Value Application 27 Probability that Mary wins a game is 0.01. If she wins: gets $100 If she loses: pays $5. X = the amount of money Mary will gain Outcome X Value Probability Win 100 0.01 Lose -5 0.99 NA 1.00 Total E(X) = (100) (.01) + ( 5) (.99) = 1 4.95 Questions: = 3.95 Variable X is: discrete continuous Set up pdf What is the expected gain for Mary?

If you understand today s lecture 8.1, 8.7, 8.9, 8.15ab, 8.17, 8.21, 8.25, 8.29, 8.33, 8.37 Objectives: Identify, and resist the temptation to fall for, the gambler s fallacy Define random variable and identify the difference between discrete and continuous. Use and recognize probability distribution functions (for discrete) or density functions (for continuous) Calculate and interpret the expected value of a discrete random variable.