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

Similar documents
Discrete random variables and probability distributions

SDS 321: Introduction to Probability and Statistics

Analysis of Engineering and Scientific Data. Semester

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

Random variables (discrete)

CHAPTER 4. Probability is used in inference statistics as a tool to make statement for population from sample information.

1 Probability and Random Variables

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

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

STA 111: Probability & Statistical Inference

MA/ST 810 Mathematical-Statistical Modeling and Analysis of Complex Systems

Lecture 10. Variance and standard deviation

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

Introduction to Probability and Statistics Slides 3 Chapter 3

Brief Review of Probability

SDS 321: Introduction to Probability and Statistics

Chapter 3 Discrete Random Variables

Quick review on Discrete Random Variables

Refresher on Discrete Probability

Dept. of Linguistics, Indiana University Fall 2015

More on Distribution Function

01 Probability Theory and Statistics Review

Joint Distribution of Two or More Random Variables

Topic 3 - Discrete distributions

Probability Review. Chao Lan

Lecture 10: Bayes' Theorem, Expected Value and Variance Lecturer: Lale Özkahya

Expectations. Definition Let X be a discrete rv with set of possible values D and pmf p(x). The expected value or mean value of X, denoted by E(X ) or

Fundamentals. CS 281A: Statistical Learning Theory. Yangqing Jia. August, Based on tutorial slides by Lester Mackey and Ariel Kleiner

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

Chapter 2. Probability

Random Variables. Random variables. A numerically valued map X of an outcome ω from a sample space Ω to the real line R

Fundamental Tools - Probability Theory II

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

1: PROBABILITY REVIEW

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

Stochastic Processes - lesson 2

Chapter 4 : Discrete Random Variables

ECE353: Probability and Random Processes. Lecture 7 -Continuous Random Variable

Analysis of Experimental Designs

CSE 312: Foundations of Computing II Random Variables, Linearity of Expectation 4 Solutions

Week 12-13: Discrete Probability

STAT 3610: Review of Probability Distributions

Random Variables Example:

Relationship between probability set function and random variable - 2 -

Joint Probability Distributions and Random Samples (Devore Chapter Five)

Math438 Actuarial Probability

What is a random variable

Random Variables and Their Distributions

Math Review Sheet, Fall 2008

Probability. Paul Schrimpf. January 23, UBC Economics 326. Probability. Paul Schrimpf. Definitions. Properties. Random variables.

Introduction to Statistical Inference Self-study

ECE353: Probability and Random Processes. Lecture 5 - Cumulative Distribution Function and Expectation

Notes 12 Autumn 2005

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

Probability Distributions

Lecture 16. Lectures 1-15 Review

Probability Theory. Introduction to Probability Theory. Principles of Counting Examples. Principles of Counting. Probability spaces.

Topic 5: Discrete Random Variables & Expectations Reference Chapter 4

SOR201 Solutions to Examples 3

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

Discrete Probability Refresher

Topic 3: The Expectation of a Random Variable

Examples of random experiment (a) Random experiment BASIC EXPERIMENT

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

Lecture 11. Probability Theory: an Overveiw

General Random Variables

ECON Fundamentals of Probability

p. 4-1 Random Variables

Lecture 08: Poisson and More. Lisa Yan July 13, 2018

STAT 430/510: Lecture 10

To find the median, find the 40 th quartile and the 70 th quartile (which are easily found at y=1 and y=2, respectively). Then we interpolate:

Discrete Random Variables

Applied Statistics I

Chapter 2. Continuous random variables

Random Variables. P(x) = P[X(e)] = P(e). (1)

Probability Distributions Columns (a) through (d)

MAT X (Spring 2012) Random Variables - Part I

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

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

Expectation, Variance and Standard Deviation for Continuous Random Variables Class 6, Jeremy Orloff and Jonathan Bloom

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

2. In a clinical trial of certain new treatment, we may be interested in the proportion of patients cured.

SDS 321: Introduction to Probability and Statistics

Bivariate scatter plots and densities

Probability Review. Gonzalo Mateos

Binomial and Poisson Probability Distributions

Joint probability distributions: Discrete Variables. Two Discrete Random Variables. Example 1. Example 1

Math LM (27794) - Lectures 01

CMPSCI 240: Reasoning Under Uncertainty

n! (k 1)!(n k)! = F (X) U(0, 1). (x, y) = n(n 1) ( F (y) F (x) ) n 2

Chapter 3: Random Variables 1

1 INFO Sep 05

Conditional Probability

7. Be able to prove Rules in Section 7.3, using only the Kolmogorov axioms.

1. Exercise on Page 8: 2. Exercise on Page 8: (b)c 1 (C 2 C 3 ) and (C 1 C 2 ) (C 1 C 3 ) (C 1 C 2 ) (C 2 C 3 ) Problem Set 1 Fall 2017

Beautiful homework # 4 ENGR 323 CESSNA Page 1/5

Introduction to Machine Learning

Probability, Random Processes and Inference

Expectation of Random Variables

Recitation 2: Probability

Transcription:

Random Variables A random variable is a quantity whose value is determined by the outcome of an experiment. Before the experiment is carried out, all we know is the range of possible values. Birthday example The birthday X 1 of the first person is a random variable, with range {1, 2,..., 365}. The birthday X 2 of the second person is another random variable, associated with the same experiment. 1 / 22 Discrete Random Variables Random Variables

Birthday example The quantity X defined by { 0 if no two people have the same birthday X = 1 otherwise is a random variable, and X = 1 if and only if A occurs. Bernoulli Random Variable Any random variable whose only possible values are 0 and 1 is called a Bernoulli random variable. 2 / 22 Discrete Random Variables Random Variables

Example 3.4 9-volt batteries are tested until one with an acceptable voltage is obtained. The sample space is S = {A, UA, UUA,... }. Define X by Then X = number of batteries tested. X (A) = 1 X (UA) = 2 X (UUA) = 3... The range of X is {1, 2, 3,... }, a countably infinite set. 3 / 22 Discrete Random Variables Random Variables

Example 3.5 Y is the altitude at a randomly chosen location in the U.S. The range of Y is the real number interval [ 282, 14494], an uncountably infinite set. 4 / 22 Discrete Random Variables Random Variables

Discrete and Continuous Random Variables Discrete Random Variable: A random variable whose range is finite or countably infinite. Continuous Random Variable: A random variable Y satisfying: 1 its range is the union of one or more real number intervals; 2 P(Y = c) = 0 for every c in the range of Y. Note For a continuous random variable Y, P(c ɛ Y c + ɛ) could be positive for any ɛ > 0, but decreases to 0 as ɛ becomes smaller. 5 / 22 Discrete Random Variables Random Variables

Probability Distributions for Discrete Random Variables To calculate the probability of any event defined by a discrete random variable X, we need a list of the possible values (the range) of X, and the probability of each. Probability Mass Function The probability mass function (pmf) p of a discrete random variable X is p(x) = P(X = x) = P({s S : X (s) = x}) for any x in the range of X. 6 / 22 Discrete Random Variables Discrete Probability Distributions

Every pmf must satisfy: p(x) 0 for all x in the range of X and x range of X p(x) = 1. Any function p with these properties could be the pmf of some discrete random variable. 7 / 22 Discrete Random Variables Discrete Probability Distributions

Parameter of a Distribution Recall that a Bernoulli random variable X is one that takes only the values 0 and 1. Suppose that P(X = 1) = α, for some α between 0 and 1; then the pmf of X is: { α x = 1 p(x) = 1 α x = 0. This is a different pmf for different α; we write it as p(x; α), and call it a family of distributions (or pmfs), indexed by the parameter α. 8 / 22 Discrete Random Variables Discrete Probability Distributions

Geometric Distribution Recall Example 3.4: 9-volt batteries are tested until one with an acceptable voltage is obtained. The sample space is S = {A, UA, UUA,... }. Define X by Then X = number of batteries tested. X (A) = 1 X (UA) = 2 X (UUA) = 3. 9 / 22 Discrete Random Variables Discrete Probability Distributions

So p(1) = P(X = 1) = P(A) = p p(2) = P(X = 2) = P(UA) = P(U)P(A) = (1 p)p p(3) = P(X = 3) = P(UUA) = P(U)P(U)P(A) = (1 p) 2 p. In general, p(x) = p(x; p) = p(1 p) x 1, x = 1, 2,... This is the geometric family of distributions, with parameter p. 10 / 22 Discrete Random Variables Discrete Probability Distributions

Looking Ahead In many problems we observe a random variable X, and we may know that its distribution belongs to a particular parametric family. But we typically do not know the value of the parameter; a central problem in statistics is making inferences about the values of parameters: parameter estimation, etc. 11 / 22 Discrete Random Variables Discrete Probability Distributions

Cumulative Distribution Function For a given random variable X, we often need the probability P(X x) for some real number x. It is convenient to define it as a function, the cumulative distribution function (cdf) F (x) = P(X x), < x <. If X is discrete, we can construct F (x) from the pmf p(x): F (x) = p(y). y in the range of X with y x 12 / 22 Discrete Random Variables Discrete Probability Distributions

The graph of F (x) against x is constant between values of X, with jump of size P(X = x) = p(x) at each possible value of X. So from the locations of the jumps in F (x) we can identify the range of X, and from the sizes of the jumps we can identify its pmf. That is, the pmf and cdf carry the same information. Either can be derived from the other, and each provides a complete description of the probability distribution of X. 13 / 22 Discrete Random Variables Discrete Probability Distributions

Expected Values The Expected Value of X Let X be a discrete random variable with range D and pmf p(x), x D. The expected value of X is E(X ) = x D xp(x). The expected value is sometimes written µ X, and sometimes called the mean value. Expected value is just a weighted average of the values of X, weighted by their probabilities. 14 / 22 Discrete Random Variables Expected Values

Interpreting Expected Value Recall the interpretation of probability as the relative frequency in a large number n of trials. For each possible value x of X, let n(x) be the number of times that X takes the value x. Then the sum of the observed values of X is xn(x), x D and their average is x D xn(x) n = x D x n(x) n. 15 / 22 Discrete Random Variables Expected Values

But when n is large, we expect so x D x n(x) n n(x) n x D p(x), xp(x) = E(X ) That is, we expect the sample average in many trials to be close to the expected value. 16 / 22 Discrete Random Variables Expected Values

Bernoulli Family If X has the Bernoulli distribution with parameter α, then D = {0, 1}, and E(X ) = 0 P(X = 0) + 1 P(X = 1) = α. Geometric Family If X has the geometric distribution with parameter p, then D = {1, 2,... }, and E(X ) = xp(x = x) = x=1 xp(1 p) x 1 = 1 p. x=1 Note that when D is infinite, the series defining E(X ) may converge to infinity, or not converge at all. 17 / 22 Discrete Random Variables Expected Values

Expected Value of a Function of X If X is a random variable, and h(x) is some function (such as h(x) = x 2 or h(x) = cos(2πx)), then Y = h(x ) is also a random variable. Not surprisingly, E(Y ) = E[h(X )] = x D h(x)p(x). 18 / 22 Discrete Random Variables Expected Values

Rules of Expected Value In the special case where h(x) is a linear function, say h(x) = ax + b, we find E[h(X )] = E(aX + b) = + b)p(x) x D(ax [ = a ] [ xp(x) + b ] p(x) x D x D = ae(x ) + b. 19 / 22 Discrete Random Variables Expected Values

Variance If the random variable X has expected value µ, then its variance is Standard Deviation V (X ) = E[(X µ) 2 ]. The variance of X is sometimes written σx 2, and its standard deviation is σ X = V (X ). Standard deviation is in the same units as X, and represents (in a root-mean-square sense) how far you can expect X to differ from µ. 20 / 22 Discrete Random Variables Expected Values

Shortcut Formula for Variance V (X ) = E[(X µ) 2 ] = E(X 2 2µX + µ 2 ) = E(X 2 ) 2µE(X ) + µ 2 = E(X 2 ) µ 2. Bernoulli Family If X has the Bernoulli distribution with parameter α, then µ = α, and X 2 = X, so V (X ) = α α 2 = α(1 α). 21 / 22 Discrete Random Variables Expected Values

Rules of Variance and Standard Deviation Again consider the linear function Y = ax + b. Now µ Y = aµ X + b, so (Y µ Y ) 2 = a 2 (X µ X ) 2 and so As a result, V (Y ) = V (ax + b) = a 2 V (X ). σ Y = a σ X. 22 / 22 Discrete Random Variables Expected Values