Docsity

Elementary Statistics: Understanding Random Variables and Probability Distributions - Prof, Study notes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
(C) 2007 Nancy Pfenning
Elementary Statistics: Looking at the Big Picture 1
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture
Lecture 15
Random Variables
Definitions, Notation
Probability Distributions
Application of Probability Rules
Mean and s.d. of Random Variables; Rules
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15.2
Looking Back: Review
4 Stages of Statistics
Data Production (discussed in Lectures 1-4)
Displaying and Summarizing (Lectures 5-12)
Probability
Finding Probabilities (dis cussed in Le ctures 13-14)
Random Variables
Sampling Distributions
Statistical Inference
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15.3
Definition
Random Variable: a quantitative variable
whose values are results of a random
process
Looking Ahead: In Inference, we’ll want to draw
conclusions about population proportion or
mean, based on sample proportion or mean. To
accomplish this, we will explore how sample
proportion or mean behave in repeated samples.
If the samples are random, sample proportion or
sample mean are random variables.
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15.4
Definition
Random Variable: a quantitative variable
whose values are results of a random
process
Looking Ahead: Sample proportion and sample
mean are very complicated random variables.
We start out by looking at much simpler random
variables.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Elementary Statistics: Understanding Random Variables and Probability Distributions - Prof and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture

Lecture 15

Random Variables

Definitions, Notation Probability Distributions Application of Probability Rules Mean and s.d. of Random Variables; Rules (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 2

Looking Back: Review

 4 Stages of Statistics

 Data Production (discussed in Lectures 1-4)  Displaying and Summarizing (Lectures 5-12)  Probability  Finding Probabilities (discussed in Lectures 13-14)  Random Variables  Sampling Distributions  Statistical Inference (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 3

Definition

Random Variable: a quantitative variable

whose values are results of a random

process

Looking Ahead: In Inference, we’ll want to draw conclusions about population proportion or mean, based on sample proportion or mean. To accomplish this, we will explore how sample proportion or mean behave in repeated samples. If the samples are random, sample proportion or sample mean are random variables. (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 4

Definition

Random Variable: a quantitative variable

whose values are results of a random

process

Looking Ahead: Sample proportion and sample mean are very complicated random variables. We start out by looking at much simpler random variables.

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 5

Definitions

 Discrete Random Variable: one whose

possible values are finite or countably

infinite (like the numbers 1, 2, 3, …)

 Continuous Random Variable: one

whose values constitute an entire (infinite)

range of possibilities over an interval

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 6

Notation

Random Variables are generally denoted with

capital letters such as X , Y , or Z.

The letter Z is often reserved for random

variables that follow a standardized normal

distribution.

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 7

Example: A Simple Random Variable

 Background : Toss a coin twice, and let the

random variable X be the number of tails

appearing.

 Questions:

 What are the possible values of X?  What kind of random variable is X? (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 9

Example: A Simple Random Variable

 Background : Toss a coin twice, and let the

random variable X be the number of tails

appearing.

 Responses:

 Possible values: ______________________  X is a __________ random variable.

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L14. 15

Example: Probability Distribution of a Random

Variable

Background : The random variable X is the number of tails in two tosses of a coin.  Responses: Possible outcomes: Each has probability ¼. Non-overlapping “Or” RuleP( X =1)=____ (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L14. 17

Example: Probability Distribution of a Random

Variable

Background : The random variable X is the number of tails in two tosses of a coin.  Responses: Display: probability histogram.  Summarize: (center) mean=median=___ (spread) typical distance from 1 is about ____ (shape) ___________________ (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L14. 18

Notation; Permissible Probabilities and

Sum-to-One Rule for Probability Distributions

P( X = x ) denotes the probability that the random variable X takes the value x. Any probability distribution of a discrete random variable X must satisfy:  where x is any value of X  where are all possible values of X According to this Rule, if a probability histogram has bars of width 1, their total area must be 1. (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 19

Interim Table

To construct probability distribution for more

complicated random processes, begin with

interim table showing all possible

outcomes and their probabilities.

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L14. 20

Example: Interim Table and Probability

Distribution

Background: A coin is tossed 3 times and the random variable X is number of tails tossed.  Questions: What are  All possible outcomes, values of X, and probabilities?  Probability distribution of X and probability histogram?  Shape, center, and spread of the distribution? (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L14. 21

Example: Interim Table and Probability

Distribution

Background: A coin is tossed 3 times and the random variable X is number of tails tossed.  Responses:  Interim Table:

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L14. 22

Example: Interim Table and Probability

Distribution

Background: A coin is tossed 3 times and the random variable X is number of tails tossed.  Responses:  Use Non-overlapping “Or” Rule to combine probabilities for X =1 (1/8+1/8+1/8=3/8) and for X =2. Probability distribution and accompanying probability histogram are: (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L14. 24

Example: Interim Table and Probability

Distribution

Background: A coin is tossed 3 times and the random variable X is number of tails tossed.  Responses:  Histogram has  Shape: ______________  Center: median=mean=_____  Spread: typical distance from mean_____: a bit less than 1 , since 1 and 2 (which are more common) are only 0.5 away from 1.5 and 0 and 3 (which are less common) are 1.5 away from 1.5. Looking Ahead: Standard deviation of R.V. will be introduced later on. 1.

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 31

Example: Permissible Probabilities Rule

 Background : Household size in U.S. has

 Question: How do these probabilities

conform to the Permissible Probabilities

Rule?

P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 33

Example: Permissible Probabilities Rule

 Background : Household size in U.S. has

 Response:

P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 34

Example: Sum-to-One Rule

 Background : Household size in U.S. has

 Question: According to the “Sum-to-One”

Rule, what must be true about the

probabilities in the distribution?

P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 36

Example: Sum-to-One Rule

 Background : Household size in U.S. has

 Response: According to the Rule, we have

0.26+0.34+0.16+0.14+0.07+0.02+0.01=___

P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 37

Example: “Not” Rule

 Background : Household size in U.S. has

 Question: According to the “Not” Rule, what

is the probability of a household not

consisting of just one person?

P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 39

Example: “Not” Rule

 Background : Household size in U.S. has

 Response:

P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 40

Example: Non-Overlapping“Or” Rule

 Background : Household size in U.S. has

 Question: According to the Non-overlapping

“Or” Rule, what is the probability of having

fewer than 3 people?

P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 42

Example: Non-Overlapping“Or” Rule

 Background : Household size in U.S. has

 Response: The probability of having fewer

than 3 people is

P( X <3)=P( X =1 or X =2)=P( X =1)+P( X =2)=__________ P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 49

Example: Rule of Conditional Probability

 Background : Household size in U.S. has

 Question: Suppose a polling organization

samples only from households with fewer

than 3 people. What is the probability that a

household with fewer than 3 people has only

1 person?

P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 51

Example: Rule of Conditional Probability

 Background : Household size in U.S. has

 Response:

P( X =1 given X <3) = P( X =1 and X <3) = P( X <3) P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L14. 52

Mean and Standard Deviation of Random

Variable

Mean of discrete random variable X Mean is weighted average of values, where each value is weighted with its probability.  Standard deviation of discrete random variable X Standard deviation is “typical” distance of values from mean. Squared standard deviation is the variance. Looking Back: Greek letters are used because these are the mean and standard deviation of all the random variables’ values. (^) (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 53

Example: Mean of Random Variable

 Background : Household size in U.S. has

 Question: What is the mean household size?

P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 55

Example: Mean of Random Variable

 Background : Household size in U.S. has

 Response: 1(0.26)+2(0.34)+…7(0.01) = ____

is mean household size.

Looking Back: Median is 2 (has 0.5 at or below it). Mean is greater than median because distribution is skewed right. Also, mean is less than the “middle” number, 4, because smaller household sizes are weighted with higher probabilities. P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 56

Example: Standard Deviation of R.V.

 Background : Household size in U.S. has

 Question: What is the standard deviation of

household sizes (typical distance from the

mean, 2.5)? (a) 0.014 (b) 0.14 (c) 1.4 (d) 14.

P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 58

Example: Standard Deviation of R.V.

 Background : Household size in U.S. has

 Response: The typical distance of household

sizes from their mean, 2.5, is ___: the closest

are 0.5 away (2 and 3), the farthest is 4.

away (7). (Or calculate by hand or software).

Looking Back: Non-normaldistribution does not conform to 68-95-99.7 Rule: probability of being less than 2 sds below mean (less than -0.3) is 0. P(X=x) 0.260.34 0.160.140.07 0.02^ 0.

X 1 2 3 4 5 6 7

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 60

Example: Standard Deviation of R.V.

 Response: The typical distance of household

sizes from their mean, 2.5, is the standard

deviation, ___.

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 67

Example: Mean and SD for Multiple of R.V.

Background : Number X rolled on a die has mean 3.5, s.d. 1.7.  Response: For double the roll, mean is _____, s.d. is ______: (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 68

Example: Mean and SD for Sum of R.V.s

Background : Numbers X 1, X 2 on 2 dice each have mean 3.5, variance 2.92.  Question: What are mean, variance, and s.d. of total on 2 dice? (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 70

Example: Mean and SD for Sum of R.V.s

Background : Numbers X 1, X 2 on 2 dice each have mean 3.5, variance 2.92.  Response :Mean _______, variance ___________, s.d. ________________ (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 71

Example: Doubling R.V. or Adding Two R.V.s

Background : Double roll of a die: mean=7, s.d.= 3. Total of 2 dice: mean=7, s.d.= 2.  Question : Why does total of 2 dice have less spread than double roll of 1 die?

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 72

Example: Doubling R.V. or Adding Two R.V.s

Background : Double roll of a die: mean=7, s.d.= 3. Total of 2 dice: mean=7, s.d.= 2.  Response : Doubling roll of 1 die makes extremes [2(1)=2 or 2(6)=12] more likely; totaling 2 dice tends to have low and high rolls “cancel each other out”. (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 73

Example: Doubling R.V. or Adding Two R.V.s

This is the key to the benefits of sampling many individuals: the average of their responses gets us closer to what’s true for the larger group.  Response : Doubling roll of 1 die makes extremes [2(1)=2 or 2(6)=12] more likely; totaling 2 dice tends to have low and high rolls “cancel each other out”. (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L15. 74

Example: Doubling R.V. or Adding Two R.V.s

 If the numbers on a die were unknown, and you had to guess their mean value, would you make a better guess with a single roll or the average of two rolls?

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L14. 75

Lecture Summary

(Random Variables)

 Random variables  Discrete vs. continuous  Notation  Probability distributions: displaying, summarizing  Probability rules applied to random variables  Constructing distribution table  Mean and standard deviation of random variable  Rules for mean and variance