Random variables; discrete and continuous probability distributions June 23, 2004.

Slides:



Advertisements
Similar presentations
CS433: Modeling and Simulation
Advertisements

Introduction to Probability Distributions
Business Statistics for Managerial Decision
A.P. STATISTICS LESSON 7 – 1 ( DAY 1 ) DISCRETE AND CONTINUOUS RANDOM VARIABLES.
Introduction to Probability Distributions. Random Variable A random variable X takes on a defined set of values with different probabilities. For example,
Discrete Random Variables
Chapter – Binomial Distributions Geometric Distributions
Review of Basic Probability and Statistics
BCOR 1020 Business Statistics Lecture 9 – February 14, 2008.
Probability Distributions
Probability Distributions
Probability Distributions
Probability Distributions Random Variables: Finite and Continuous Distribution Functions Expected value April 3 – 10, 2003.
QMS 6351 Statistics and Research Methods Probability and Probability distributions Chapter 4, page 161 Chapter 5 (5.1) Chapter 6 (6.2) Prof. Vera Adamchik.
First we need to understand the variables. A random variable is a value of an outcome such as counting the number of heads when flipping a coin, which.
Expected value and variance; binomial distribution June 24, 2004.
Chapter 5 Discrete Probability Distribution I. Basic Definitions II. Summary Measures for Discrete Random Variable Expected Value (Mean) Variance and Standard.
PROBABILITY DISTRIBUTIONS
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.
Problem A newly married couple plans to have four children and would like to have three girls and a boy. What are the chances (probability) their desire.
Week71 Discrete Random Variables A random variable (r.v.) assigns a numerical value to the outcomes in the sample space of a random phenomenon. A discrete.
QA in Finance/ Ch 3 Probability in Finance Probability.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Probability Distributions Chapter 6.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Probability Distributions Chapter 6.
5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete Probability Distributions.
Chapter 6: Probability Distributions
Dr. Gary Blau, Sean HanMonday, Aug 13, 2007 Statistical Design of Experiments SECTION I Probability Theory Review.
Theory of Probability Statistics for Business and Economics.
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.
Random Variables Numerical Quantities whose values are determine by the outcome of a random experiment.
1 Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering EMIS 7370/5370 STAT 5340 : PROBABILITY AND STATISTICS FOR SCIENTISTS AND ENGINEERS Systems.
Introduction to Probability and Statistics Thirteenth Edition Chapter 5 Several Useful Discrete Distributions.
Random Variables. A random variable X is a real valued function defined on the sample space, X : S  R. The set { s  S : X ( s )  [ a, b ] is an event}.
BINOMIALDISTRIBUTION AND ITS APPLICATION. Binomial Distribution  The binomial probability density function –f(x) = n C x p x q n-x for x=0,1,2,3…,n for.
Discrete Probability Distributions Chapter 06 McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved.
Introduction to Probability and Probability Distributions.
STA347 - week 51 More on Distribution Function The distribution of a random variable X can be determined directly from its cumulative distribution function.
1 Since everything is a reflection of our minds, everything can be changed by our minds.
STA347 - week 31 Random Variables Example: We roll a fair die 6 times. Suppose we are interested in the number of 5’s in the 6 rolls. Let X = number of.
1 Continuous Probability Distributions Continuous Random Variables & Probability Distributions Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering.
Probability Review-1 Probability Review. Probability Review-2 Probability Theory Mathematical description of relationships or occurrences that cannot.
Probability Distributions: Binomial & Normal Ginger Holmes Rowell, PhD MSP Workshop June 2006.
Exam 2: Rules Section 2.1 Bring a cheat sheet. One page 2 sides. Bring a calculator. Bring your book to use the tables in the back.
Random Variable The outcome of an experiment need not be a number, for example, the outcome when a coin is tossed can be 'heads' or 'tails'. However, we.
Review of Chapter
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 AND STATISTICS WEEK 4 Onur Doğan. Random Variable Random Variable. Let S be the sample space for an experiment. A real-valued function that.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 6: Random Variables Section 6.1 Discrete and Continuous Random Variables.
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:
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,
Review Know properties of Random Variables
Discrete Probability Distributions. Random Variable A random variable X takes on a defined set of values with different probabilities. For example, if.
1 Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering EMIS 7370/5370 STAT 5340 : PROBABILITY AND STATISTICS FOR SCIENTISTS AND ENGINEERS Systems.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Probability Distributions Chapter 6.
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 Five The Binomial Probability Distribution and Related Topics
Probability Distributions
CHAPTER 6 Random Variables
Introduction to Probability Distributions
Discrete and Continuous Random Variables
Probability Distributions; Expected Value
Probability Distributions. Random Variable A random variable x takes on a defined set of values with different probabilities. For example, if you roll.
Probability Review for Financial Engineers
Probability distributions
Random Variables Binomial Distributions
Quantitative Methods Varsha Varde.
M248: Analyzing data Block A UNIT A3 Modeling Variation.
Presentation transcript:

Random variables; discrete and continuous probability distributions June 23, 2004

Random Variable A random variable x takes on a defined set of values with different probabilities. For example, if you roll a die, the outcome is random (not fixed) and there are 6 possible outcomes, each of which occur with probability one-sixth. For example, if you poll people about their voting preferences, the percentage of the sample that responds “Yes on Kerry” is a also a random variable (the percentage will be slightly differently every time you poll). Roughly, probability is how frequently we expect different outcomes to occur if we repeat the experiment over and over (“frequentist” view)

Random variables can be discrete or continuous Discrete random variables have a countable number of outcomes Examples: Binary: Dead/alive, treatment/placebo, disease/no disease, heads/tails Nominal: Blood type (O, A, B, AB), marital status(separated/widowed/divorced/married/single/com mon-law) Ordinal: (ordered) staging in breast cancer as I, II, III, or IV, Birth order—1 st, 2 nd, 3 rd, etc., Letter grades (A, B, C, D, F) Counts: the integers from 1 to 6, the number of heads in 20 coin tosses

Continuous variable A continuous random variable has an infinite continuum of possible values. – Examples: blood pressure, weight, the speed of a car, the real numbers from 1 to 6. – Time-to-Event: In clinical studies, this is usually how long a person “survives” before they die from a particular disease or before a person without a particular disease develops disease.

Probability functions A probability function maps the possible values of x against their respective probabilities of occurrence, p(x) p(x) is a number from 0 to 1.0. The area under a probability function is always 1.

x p(x) 1/ Discrete example: roll of a die

Probability mass function xp(x) 1p(x=1)=1/6 2p(x=2)=1/6 3p(x=3)=1/6 4p(x=4)=1/6 5p(x=5)=1/6 6p(x=6)=1/6 1.0

Cumulative probability x P(x) 1/ /3 1/2 2/3 5/6 1.0

Cumulative distribution function xP(x≤A) 1P(x≤1)=1/6 2P(x≤2)=2/6 3P(x≤3)=3/6 4P(x≤4)=4/6 5P(x≤5)=5/6 6P(x≤6)=6/6

Examples 1. What’s the probability that you roll a 3 or less? P(x≤3)=1/2 2. What’s the probability that you roll a 5 or higher? P(x≥5) = 1 – P(x≤4) = 1-2/3 = 1/3

In-Class Exercises Which of the following are probability functions? 1. f(x)=.25 for x=9,10,11,12 2. f(x)= (3-x)/2 for x=1,2,3,4 3. f(x)= (x 2 +x+1)/25 for x=0,1,2,3

In-Class Exercise 1. f(x)=.25 for x=9,10,11,12 Yes, probability function! xf(x)

In-Class Exercise 2. f(x)= (3-x)/2 for x=1,2,3,4 xf(x) 1(3-1)/2=1.0 2(3-2)/2=.5 3(3-3)/2=0 4(3-4)/2=-.5 Though this sums to 1, you can’t have a negative probability; therefore, it’s not a probability function.

In-Class Exercise 3. f(x)= (x 2 +x+1)/25 for x=0,1,2,3 xf(x) 01/25 13/25 27/25 313/25 Doesn’t sum to 1. Thus, it’s not a probability function. 24/25

In-Class Exercise: The number of ships to arrive at a harbor on any given day is a random variable represented by x. The probability distribution for x is: x P(x) Find the probability that on a given day: a. exactly 14 ships arrive b. At least 12 ships arrive c. At most 11 ships arrive p(x=14)=.1 p(x  12)= ( ) =.4 p(x≤11)= (.4 +.2) =.6

In-Class Exercise: You are lecturing to a group of 1000 students. You ask them to each randomly pick an integer between 1 and 10. Assuming, their picks are truly random: What’s your best guess for how many students picked the number 9? Since p(x=9) = 1/10, we’d expect about 1/10 th of the 1000 students to pick students. What percentage of the students would you expect picked a number less than or equal to 6? Since p(x≤ 5) = 1/10 + 1/10 + 1/10 + 1/10 + 1/10 + 1/10 =.6 60%

Continuous case  The probability function that accompanies a continuous random variable is a continuous mathematical function that integrates to 1.  For example, recall the negative exponential function (in probability, this is called an “exponential distribution”):  This function integrates to 1:

Continuous case x p(x) 1 The probability that x is any exact particular value (such as ) is 0; we can only assign probabilities to possible ranges of x.

For example, the probability of x falling within 1 to 2: x p(x) 1 12

Cumulative distribution function As in the discrete case, we can specify the “cumulative distribution function” (CDF): The CDF here = P(x≤A)=

Example 2 x p(x) 1

Example 2: Uniform distribution The uniform distribution: all values are equally likely The uniform distribution: f(x)= 1, for 1  x  0 x p(x) 1 1 We can see it’s a probability distribution because it integrates to 1 (the area under the curve is 1):

Example: Uniform distribution What’s the probability that x is between ¼ and ½? x p(x) 1 1 ¼ ½ P(½  x  ¼ )= ¼

In-Class Exercise Suppose that survival drops off rapidly in the year following diagnosis of a certain type of advanced cancer. Suppose that the length of survival (or time-to-death) is a random variable that approximately follows an exponential distribution with parameter 2 (makes it a steeper drop off): What’s the probability that a person who is diagnosed with this illness survives a year?

Answer The probability of dying within 1 year can be calculated using the cumulative distribution function: The chance of surviving past 1 year is: P(x≥1) = 1 – P(x≤1) Cumulative distribution function is:

Expected Value and Variance All probability distributions are characterized by an expected value and a variance (standard deviation squared).

For example, bell-curve (normal) distribution: Mean One standard deviation from the mean (average distance from the mean)

Expected value of a random variable If we understand the underlying probability function of a certain phenomenon, then we can make informed decisions based on how we expect x to behave on- average over the long-run…(so called “frequentist” theory of probability). Expected value is just the weighted average or mean (µ) of random variable x. Imagine placing the masses p(x) at the points X on a beam; the balance point of the beam is the expected value of x.

Example: expected value Recall the following probability distribution of ship arrivals: x P(x).4.2.1

Expected value, formally Discrete case: Continuous case:

Extension to continuous case: example, uniform random variable x p(x) 1 1

In-Class Exercise 3. If x is a random integer between 1 and 10, what’s the expected value of x?

Variance of a random variable If you know the underlying probability distribution, another useful concept is variance. How much does the value of x vary from its mean on average? More on this next time…

Reading for this week Walker: , pages 1-9