Random variables, Expectation, Mean and Variance. Slides are adapted from STAT414 course at PennState

Similar documents
p. 6-1 Continuous Random Variables p. 6-2

Relationship between probability set function and random variable - 2 -

Statistics for Economists. Lectures 3 & 4

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

STAT Section 2.1: Basic Inference. Basic Definitions

Review of Probability. CS1538: Introduction to Simulations

Continuous Random Variables

Bivariate distributions

Analysis of Engineering and Scientific Data. Semester

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

Chapter 2: Discrete Distributions. 2.1 Random Variables of the Discrete Type

Random Variables. Saravanan Vijayakumaran Department of Electrical Engineering Indian Institute of Technology Bombay

Week 2. Review of Probability, Random Variables and Univariate Distributions

Example A. Define X = number of heads in ten tosses of a coin. What are the values that X may assume?

ELEG 3143 Probability & Stochastic Process Ch. 2 Discrete Random Variables

Probability Theory and Random Variables

Statistics for Economists Lectures 6 & 7. Asrat Temesgen Stockholm University

1 Probability Distributions

Random Variables and Their Distributions

IAM 530 ELEMENTS OF PROBABILITY AND STATISTICS LECTURE 3-RANDOM VARIABLES

Mathematical Statistics 1 Math A 6330

Introduction to Probability and Statistics Slides 3 Chapter 3

IEOR 3106: Introduction to Operations Research: Stochastic Models. Professor Whitt. SOLUTIONS to Homework Assignment 1

Random Variables. Definition: A random variable (r.v.) X on the probability space (Ω, F, P) is a mapping

Chapter 4 - Lecture 3 The Normal Distribution

Discrete Distributions

Test Problems for Probability Theory ,

Statistics and Econometrics I

Chapter 4 : Discrete Random Variables

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

ECO220Y Continuous Probability Distributions: Uniform and Triangle Readings: Chapter 9, sections

Joint Distribution of Two or More Random Variables

SDS 321: Introduction to Probability and Statistics

INF FALL NATURAL LANGUAGE PROCESSING. Jan Tore Lønning

Math438 Actuarial Probability

Discrete Probability Distributions

STAT 430/510 Probability Lecture 12: Central Limit Theorem and Exponential Distribution

Chapter 3 Single Random Variables and Probability Distributions (Part 1)

Discrete Random Variables

Random Variables Example:

Properties of Continuous Probability Distributions The graph of a continuous probability distribution is a curve. Probability is represented by area

Arkansas Tech University MATH 3513: Applied Statistics I Dr. Marcel B. Finan

Probability and Statisitcs

EXAM. Exam #1. Math 3342 Summer II, July 21, 2000 ANSWERS

Week 12-13: Discrete Probability

Discrete Random Variables

The Binomial distribution. Probability theory 2. Example. The Binomial distribution

Discrete Random Variables

p. 4-1 Random Variables

Probability, Random Processes and Inference

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

(Ch 3.4.1, 3.4.2, 4.1, 4.2, 4.3)

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

More on Distribution Function

Brief Review of Probability

9. DISCRETE PROBABILITY DISTRIBUTIONS

What does independence look like?

Statistics for Managers Using Microsoft Excel/SPSS Chapter 4 Basic Probability And Discrete Probability Distributions

Conditional distributions (discrete case)

Binomial and Poisson Probability Distributions

Normal Random Variables and Probability

MATH Notebook 5 Fall 2018/2019

ECE Homework Set 2

Math 105 Course Outline

Business Statistics: A Decision-Making Approach, 6e. Chapter Goals

Review of Basic Probability Theory

Continuous Random Variables

University of Jordan Fall 2009/2010 Department of Mathematics

(Ch 3.4.1, 3.4.2, 4.1, 4.2, 4.3)

Bandits, Experts, and Games

Week 9, 10/15/12-10/19/12, Notes: Continuous Distributions in General and the Uniform Distribution

Chapter 3. Chapter 3 sections

MAT X (Spring 2012) Random Variables - Part I

II. The Normal Distribution

Probability Distributions

Probability and Probability Distributions. Dr. Mohammed Alahmed

Outline PMF, CDF and PDF Mean, Variance and Percentiles Some Common Distributions. Week 5 Random Variables and Their Distributions

Why study probability? Set theory. ECE 6010 Lecture 1 Introduction; Review of Random Variables

Lecture 10. Variance and standard deviation

STAT Chapter 5 Continuous Distributions

Chapter 2. Probability

Recitation 2: Probability

Random Variables and Expectations

3 Modeling Process Quality

A Probability Primer. A random walk down a probabilistic path leading to some stochastic thoughts on chance events and uncertain outcomes.

Discrete Mathematics and Probability Theory Fall 2011 Rao Midterm 2 Solutions

Chapter 4. Probability-The Study of Randomness

Discrete Distributions

STAT 3610: Review of Probability Distributions

Continuous RVs. 1. Suppose a random variable X has the following probability density function: π, zero otherwise. f ( x ) = sin x, 0 < x < 2

2 (Statistics) Random variables

Brief Review of Probability

Let us think of the situation as having a 50 sided fair die; any one number is equally likely to appear.

Introduction and Overview STAT 421, SP Course Instructor

Introduction to Statistics. By: Ewa Paszek

A random variable is a quantity whose value is determined by the outcome of an experiment.

Discrete random variables and probability distributions

STAT100 Elementary Statistics and Probability

MA : Introductory Probability

Continuous Probability Distributions. Uniform Distribution

Transcription:

Random variables, Expectation, Mean and Variance Slides are adapted from STAT414 course at PennState https://onlinecourses.science.psu.edu/stat414/

Random variable Definition. Given a random experiment with sample space S, a random variable X is a set function that assigns one and only one real number to each element s that belongs in the sample space S. The set of all possible values of the random variable X, denoted x, is called the support, or space, of X.

Example A rat is selected at random from a cage of male (M) and female rats (F). Once selected, the gender of the selected rat is noted. The sample space is thus: S = {M, F} Define the random variable X as follows: Let X = 0 if the rat is male. Let X = 1 if the rat is female. Note that the random variable X assigns one and only one real number (0 and 1) to each element of the sample space (M and F). The support, or space, of X is {0, 1}. Note that we don't necessarily need to use the numbers 0 and 1 as the support. For example, we could have alternatively (and perhaps arbitrarily?!) used the numbers 5 and 15, respectively. In that case, our random variable would be defined as X = 5 of the rat is male, and X = 15 if the rat is female.

Discrete random variable Definition. A random variable X is a discrete random variable if: there are a finite number of possible outcomes of X, or there are a countably infinite number of possible outcomes of X. Examples of discrete data include the number of siblings a randomly selected person has, the total on the faces of a pair of six-sided dice

Probability mass function Definition. The probability mass function, P(X = x) = f(x), of a discrete random variable X is a function that satisfies the following properties: (1) P(X = x) = f(x) > 0 if x the support S (2) x Sf(x)=1 (3) P(X A)= x Af(x)

Example Let X equal the number of siblings of students in a class. The support of X is, of course, 0, 1, 2, 3,... Because the support contains a countably infinite number of possible values, X is a discrete random variable with a probability mass function. Find f(x) = P(X = x), the probability mass function of X, for all x in the support.

Cumulative Distribution Function FX(t)=P(X t) The cdf of random variable X has the following properties: 1.FX(t) is a nondecreasing function of t, for <t<. 2.The cdf, FX(t), ranges from 0 to 1. This makes sense since FX(t) is a probability. 3.If X is a discrete random variable whose minimum value is a, then FX(a)=P(X a)=p(x=a)=fx(a). If c is less than a, then FX(c)=0. 4.If the maximum value of X is b, then FX(b)=1. 5.Also called the distribution function. 6.All probabilities concerning X can be stated in terms of F.

Hypergeometric Distribution A crate contains 50 light bulbs of which 5 are defective and 45 are not. A Quality Control Inspector randomly samples 4 bulbs without replacement. Let X = the number of defective bulbs selected. Find the probability mass function, f(x), of the discrete random variable X.

Hypergeometric Distribution If we randomly select n items without replacement from a set of N items of which: m of the items are of one type and N m of the items are of a second type then the probability mass function of the discrete random variable X is called the hypergeometric distribution and is of the form: where the support S is the collection of nonnegative integers x that satisfies the inequalities: x n x m n x N m

Mean Toss a fair, six-sided die many times. In the long run, what would the average (or "mean") of the tosses be? The mean is a weighted average, that is, an average of the values weighted by their respective individual probabilities. The mean is called the expected value of X, denoted E(X) or by μ,

Expected value

Expectation Theorem. When it exists, the mathematical expectation E satisfies the following properties: (a) If c is a constant, then E(c) = c. (b) If c is a constant and u is a function, then: E[cu(X)]=cE[u(X)]

Expectation

Mean

Example μ X = E(X) = 3(0.3) + 4(0.4) + 5(0.3) = 4 μ Y = E(Y) = 1(0.4) + 2(0.1) + 6(0.3) + 8(0.2) = 4

Variance

Example

Example

Variance

Sample Mean and Variance

KhanAcademy, Random Variables

Moments The expected values E(X), E(X 2 ), E(X 3 ),..., and E(X r ) are called moments Recall that: μ = E(X) σ 2 = Var(X) = E(X 2 ) μ 2

Moment Generating Function Let X be a discrete random variable with probability mass function f(x) and support S. Then: is the moment generating function of X as long as the summation is finite for some interval of t around 0.

The moment generation function for a binomial variable is

Binomial Random variable

Binomial Distribution

Example

Cumulative Probability Distribution

Cumulative Probability Function

Mean and Variance of a Binomial R.V.

Continuous Random Variable the amount of rain, in inches, that falls in a randomly selected storm the weight, in pounds, of a randomly selected student the square footage of a randomly selected three-bedroom house 13 mm rain drop may be 13.456789 or 13.00000000012

Density histogram Histogram of continuous data Measured nose lengths (error in measurement) 38 50 38 40 35 52 45 50 40 32 40 47 70 55 51 43 40 45 45 55 37 50 45 45 55 50 45 35 52 32 45 50 40 40 50 41 41 40 40 46 45 40 43 45 42 45 45 48 45 45 35 45 45 40 45 40 40 45 35 52 1.Determine the number, n, in the sample. 2.Define k class intervals (c 0, c 1 ], (c 1, c 2 ],..., (c k-1, c k ]. 3.Determine the frequency, f i, of each class i. 4.Calculate the relative frequency (proportion) of each class by dividing the class frequency by the total number in the sample that is, f i n. 5.For a frequency histogram: draw a rectangle for each class with the class interval as the base and the height equal to the frequency of the class. 6.For a relative frequency histogram: draw a rectangle for each class with the class interval as the base and the height equal to the relative frequency of the class. 7.For a density histogram: draw a rectangle for each class with the class interval as the base and the height equal to h(x)=fi / n(ci ci-1) for ci 1<x ci i = 1, 2,..., k. the area of the entire histogram equals 1.

Probability Density Function

Probability Density Function (p.d.f)

Notes when X is continuous, P(X = x) = 0 for all x in the support. P(a X b) = P(a < X b) = P(a X < b) = P(a < X < b) for any constants a and b.

Cumulative Distribution Function Recall that c.d.f for discrete R.V. :

Percentiles

Expectations

Uniform Distributions

CDF of a uniform R.V.

Properties of Uniform variables

Normal distributions

Example

Characteristics

Characteristics

Characteristics

Example

Standard Normal distribution

z-table

Properties of normal distributions