Statistics 200 Objectives:

Slides:



Advertisements
Similar presentations
Presentation on Probability Distribution * Binomial * Chi-square
Advertisements

Business Statistics for Managerial Decision
Psychology 10 Analysis of Psychological Data February 26, 2014.
Probability And Expected Value ————————————
Random Variables A Random Variable assigns a numerical value to all possible outcomes of a random experiment We do not consider the actual events but we.
Probability Distributions Random Variables: Finite and Continuous Distribution Functions Expected value April 3 – 10, 2003.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Created by Tom Wegleitner, Centreville, Virginia Edited by.
CHAPTER 10: Introducing Probability
Random Variables A random variable A variable (usually x ) that has a single numerical value (determined by chance) for each outcome of an experiment A.
Stat 1510: Introducing Probability. Agenda 2  The Idea of Probability  Probability Models  Probability Rules  Finite and Discrete Probability Models.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 1 – Slide 1 of 34 Chapter 11 Section 1 Random Variables.
Applied Business Forecasting and Regression Analysis Review lecture 2 Randomness and Probability.
LECTURE 15 THURSDAY, 15 OCTOBER STA 291 Fall
1.3 Simulations and Experimental Probability (Textbook Section 4.1)
Probability Distributions. We need to develop probabilities of all possible distributions instead of just a particular/individual outcome Many probability.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
Lesson Objective Understand what we mean by a Random Variable in maths Understand what is meant by the expectation and variance of a random variable Be.
Random Variables Presentation 6.. Random Variables A random variable assigns a number (or symbol) to each outcome of a random circumstance. A random variable.
Essential Statistics Chapter 91 Introducing Probability.
Chapter 10 Introducing Probability BPS - 5th Ed. Chapter 101.
12/7/20151 Probability Introduction to Probability, Conditional Probability and Random Variables.
QR 32 Section #6 November 03, 2008 TA: Victoria Liublinska
L56 – Discrete Random Variables, Distributions & Expected Values
BPS - 3rd Ed. Chapter 91 Introducing Probability.
Random Variables Learn how to characterize the pattern of the distribution of values that a random variable may have, and how to use the pattern to find.
Probability Theory Modelling random phenomena. Permutations the number of ways that you can order n objects is: n! = n(n-1)(n-2)(n-3)…(3)(2)(1) Definition:
AP STATISTICS Section 7.1 Random Variables. Objective: To be able to recognize discrete and continuous random variables and calculate probabilities using.
Chapter 5 Discrete Random Variables Probability Distributions
1 Keep Life Simple! We live and work and dream, Each has his little scheme, Sometimes we laugh; sometimes we cry, And thus the days go by.
Lecture 6 Dustin Lueker.  Standardized measure of variation ◦ Idea  A standard deviation of 10 may indicate great variability or small variability,
MATH 256 Probability and Random Processes Yrd. Doç. Dr. Didem Kivanc Tureli 14/10/2011Lecture 3 OKAN UNIVERSITY.
The Mean of a Discrete Random Variable Lesson
1 Chapter 10 Probability. Chapter 102 Idea of Probability u Probability is the science of chance behavior u Chance behavior is unpredictable in the short.
LECTURE 16 TUESDAY, 20 OCTOBER STA 291 Fall
Computing Fundamentals 2 Lecture 7 Statistics, Random Variables, Expected Value. Lecturer: Patrick Browne
AP Statistics, Section 7.11 The Practice of Statistics Third Edition Chapter 7: Random Variables 7.1 Discete and Continuous Random Variables Copyright.
Probability Distribution. Probability Distributions: Overview To understand probability distributions, it is important to understand variables and random.
Section Discrete and Continuous Random Variables AP Statistics.
Probability Distributions  A variable (A, B, x, y, etc.) can take any of a specified set of values.  When the value of a variable is the outcome of a.
CHAPTER 10: Introducing Probability
Basic Practice of Statistics - 3rd Edition Introducing Probability
Chapter Five The Binomial Probability Distribution and Related Topics
Lecture #14 Thursday, October 6, 2016 Textbook: Sections 8.4, 8.5, 8.6
You Bet Your Life - So to Speak
Random variables (r.v.) Random variable
Discrete and Continuous Random Variables
Lecture 8.
Statistics 200 Lecture #12 Thursday, September 29, 2016
Chapter 16 Random Variables.
What is Probability? Quantification of uncertainty.
Discrete Distributions
Conditional Probability
5.2 Probability
Do Now The composition of the 108th Congress is 51 Republicans, 48 Democrats, and 1 Independent. A committee on aid to higher education is formed with.
CHAPTER 12: Introducing Probability
Chapter 17 Thinking about Chance.
Probability 14.1 Experimental Probability 14.2 Principles of Counting
Basic Practice of Statistics - 3rd Edition Introducing Probability
CHAPTER 10: Introducing Probability
Review for test Ch. 6 ON TUESDAY:
Basic Practice of Statistics - 3rd Edition Introducing Probability
AP Statistics Chapter 16 Notes.
Section 7.1 Discrete and Continuous Random Variables
Discrete & Continuous Random Variables
M248: Analyzing data Block A UNIT A3 Modeling Variation.
CHAPTER 5 REVIEW.
Essential Statistics Introducing Probability
Section 7.1 Discrete and Continuous Random Variables
Basic Practice of Statistics - 5th Edition Introducing Probability
Presentation transcript:

Statistics 200 Objectives: 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 .99 Hypothetical table of counts: + – C 98 2 100 no C 198 9702 9,900 296 9704 10,000 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 “self-correcting” (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? 1/6 5/6 (5/6) × (5/6) × (1/6) (1/6) × (1/6) × (1/6) (1/6) + (1/6) + (1/6)

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

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.

Let X = number of heads X = 3 X = 0 X = 1 X = 2 X = 2 X = 2 X = 1 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 Possible values of X Flip 3 coins X= # heads 0, 1, 2, 3 2, 3, …, 11, 12 Roll 2 dice X= sum of dots Survive Monday X= # cups of coffee 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 Between 0 and 20, ideally Weigh male firefighter X= his weight 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. Find probabilities using a probability density function, which is a curve. Calculate probabilities by finding the area under the curve. 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.

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

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

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

Coin example: build pdf for X = # heads from 3 coin tosses k P(X=k) __ / 8 1 2 3 Total 1 3 3 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.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 What is the probability that X is: exactly 2 classes? at most 2 classes? at least 1 class? more than 1 class? Note: need to be careful at the borders k P(X = k) 0.1 1 0.3 2 0.4 3 0.2 Total 1.0

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

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

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

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

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

Expected Value Application 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 Total NA 0.01 Win 100 Lose -5 0.99 1.00 E(X) = (100)×(.01) + (–5)×(.99) = 1 – 4.95 Questions: • Variable X is: discrete continuous • Set up pdf • What is the expected gain for Mary? = –3.95

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.