Chapter 3. Chapter 3 sections

Similar documents
Lecture 3. Discrete Random Variables

Chapter 3 sections. SKIP: 3.10 Markov Chains. SKIP: pages Chapter 3 - continued

The random variable 1

Chapter 3 sections. SKIP: 3.10 Markov Chains. SKIP: pages Chapter 3 - continued

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

Name: Firas Rassoul-Agha

Chapter 2. Random Variable. Define single random variables in terms of their PDF and CDF, and calculate moments such as the mean and variance.

Random Variables and Their Distributions

Quick Tour of Basic Probability Theory and Linear Algebra

Lecture 3: Random variables, distributions, and transformations

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

5. Conditional Distributions

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

Statistics and Econometrics I

More on Distribution Function

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

Probability Review. Yutian Li. January 18, Stanford University. Yutian Li (Stanford University) Probability Review January 18, / 27

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

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

Chapter 1 Probability Theory

Preliminary Statistics Lecture 2: Probability Theory (Outline) prelimsoas.webs.com

Lecture 2. October 21, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University.

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

2 (Statistics) Random variables

Lecture Notes 1 Probability and Random Variables. Conditional Probability and Independence. Functions of a Random Variable

1 Presessional Probability

Discrete Random Variables. Discrete Random Variables

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

Chapter 4. Chapter 4 sections

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

Distributions of Functions of Random Variables. 5.1 Functions of One Random Variable

Math 105 Course Outline

Lecture Notes 1 Probability and Random Variables. Conditional Probability and Independence. Functions of a Random Variable

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

Chapter 3 Discrete Random Variables

Chapter 3: Random Variables 1

Probability and Statistics Concepts

Chapter 4 continued. Chapter 4 sections

Continuous Random Variables

Random variable X is a mapping that maps each outcome s in the sample space to a unique real number x, < x <. ( ) X s. Real Line

Probability measures A probability measure, P, is a real valued function from the collection of possible events so that the following

Random Variables. Statistics 110. Summer Copyright c 2006 by Mark E. Irwin

Math 416 Lecture 3. The average or mean or expected value of x 1, x 2, x 3,..., x n is

Lecture 2. Distributions and Random Variables

Lecture 2: Repetition of probability theory and statistics

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

PROBABILITY AND INFORMATION THEORY. Dr. Gjergji Kasneci Introduction to Information Retrieval WS

Part IA Probability. Definitions. Based on lectures by R. Weber Notes taken by Dexter Chua. Lent 2015

MA 250 Probability and Statistics. Nazar Khan PUCIT Lecture 15

Joint Distribution of Two or More Random Variables

1.1 Review of Probability Theory

1. Discrete Distributions

Analysis of Engineering and Scientific Data. Semester

Fundamental Tools - Probability Theory II

Week 12-13: Discrete Probability

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

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:

Homework for 1/13 Due 1/22

Probability, Random Processes and Inference

Deep Learning for Computer Vision

Random variables. DS GA 1002 Probability and Statistics for Data Science.

Review of Probability Theory

Class 26: review for final exam 18.05, Spring 2014

M378K In-Class Assignment #1

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

Random Variables and Probability Distributions

Discrete Random Variables

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

Recitation 2: Probability

Recap of Basic Probability Theory

1 Random Variable: Topics

Continuous r.v. s: cdf s, Expected Values

Recap of Basic Probability Theory

Probability. Lecture Notes. Adolfo J. Rumbos

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

Random Variable. Discrete Random Variable. Continuous Random Variable. Discrete Random Variable. Discrete Probability Distribution

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

Chapter 2: Random Variables

Algorithms for Uncertainty Quantification

Review of Probability. CS1538: Introduction to Simulations

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

Chapter 3, 4 Random Variables ENCS Probability and Stochastic Processes. Concordia University

Probability and Statisitcs

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

University of California, Los Angeles Department of Statistics. Joint probability distributions

Probability Theory and Simulation Methods

Chapter 3: Random Variables 1

Statistics 100A Homework 5 Solutions

Random Variables Example:

Chapter 5. Chapter 5 sections

n(1 p i ) n 1 p i = 1 3 i=1 E(X i p = p i )P(p = p i ) = 1 3 p i = n 3 (p 1 + p 2 + p 3 ). p i i=1 P(X i = 1 p = p i )P(p = p i ) = p1+p2+p3

Sample Spaces, Random Variables

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

ACM 116: Lecture 2. Agenda. Independence. Bayes rule. Discrete random variables Bernoulli distribution Binomial distribution

2.1 Elementary probability; random sampling

Chapter 3: Discrete Random Variable

Review of Statistics I

18.05 Practice Final Exam

Great Theoretical Ideas in Computer Science

Transcription:

sections 3.1 Random Variables and Discrete Distributions 3.2 Continuous Distributions 3.4 Bivariate Distributions 3.5 Marginal Distributions 3.6 Conditional Distributions 3.7 Multivariate Distributions (generalization of bivariate) 3.8 Functions of a Random Variable 3.9 Functions of Two or More Random Variables SKIP: 3.10 Markov Chains STA 611 (Lecture 03) Random Variables and Distributions 1 / 17

Random Variables 3.1 Random Variables and Discrete Distributions Def: Random Variable A random variable is a function from a sample space S to the real numbers R P(X = x i ) = P({s j S : X(s j ) = x i }) or P(X A) = P({s j S : X(s j ) A}) Note: Random variables are denoted by capital letters and the values they take (their outcome) with lowercase Examples: Experiment Toss two dice Apply different amounts of fertilizer to corn plants Random variable X = sum of the numbers X = yield per acre STA 611 (Lecture 03) Random Variables and Distributions 2 / 17

3.1 Random Variables and Discrete Distributions Discrete random variables Def: Probability (mass) function A random variable X is said to have a discrete distribution if X can only take countable number of different values. The probability function (pf) for X is defined as f (x) = P(X = x) defined for all x R Bernoulli distribution Let p be the probability of winning a bet and define X = 0 if we loose and X = 1 if we win. Then X has the Bernoulli distribution with parameter p, often denoted X Bernoulli(p), and the pf is p if x = 1 f (x) = 1 p if x = 0 0 otherwise STA 611 (Lecture 03) Random Variables and Distributions 3 / 17

3.1 Random Variables and Discrete Distributions Example: Rolling sixes We are interested in the number of 6 s we obtain in four rolls of a fair dice. Find the pf of this random variable Use this pf to calculate the probability of obtaining at least one 6 in four rolls. STA 611 (Lecture 03) Random Variables and Distributions 4 / 17

Binomial distribution 3.1 Random Variables and Discrete Distributions Binomial distribution X = the number of successes in n independent trials, where the probability of success is p. Then ( ) n P(X = x) = p x (1 p) n x x = 0, 1,..., n x { ( n ) so the pf is f (x) = x p x (1 p) n x if x = 0, 1,..., n 0 otherwise X is said to have the Binomial distribution with parameters n and p, often denoted X Binomial(n, p) Binomial distribution (Binomial(n, p) or Bin(n, p)) models the number of successes in n independent Bernoulli(p) trials I.e. Bernoulli(p) = Binomial(1, p) STA 611 (Lecture 03) Random Variables and Distributions 5 / 17

Continuous random variables Def: Probability density function 3.2 Continuous Distributions A random variable X is said to have a continuous distribution if there exists a non-negative function f defined on the real line such that P(x 1 X x 2 ) = x2 x 1 f (x)dx The function f is called the probability density function (pdf). The closure of the set {x : f (x) > 0} is called the support of X. Examples If X is Uniformly distributed in [a, b], or X Uniform(a, b), every interval in [a, b] has probability proportional to it s length. The pdf is f (x) = 1, x [a, b], 0 otherwise. b a STA 611 (Lecture 03) Random Variables and Distributions 6 / 17

Continuous random variables A simulated example x = rnorm(1000000) par(mfrow = c(2, 2)) hist(x, breaks = 10, density = TRUE, freq = FALSE) # changing the number of breaks to 50, 100 and 1000 3.2 Continuous Distributions STA 611 (Lecture 03) Random Variables and Distributions 7 / 17

Properties of pdf s and pf s Theorem 3.1 and 3.2 A function f (x) is a pdf (or pf) of a random variable X if and only if both of the following holds 1 f (x) 0 for all x 2 For pf s: f (x i ) = 1, i=1 if X one of the values x 1, x 2,... For pdf s: 1 The coefficient (e.g. normalizing constant. b a with positive probability. f (x)dx = 1 ) that ensures that 2 is satisfied is called the STA 611 (Lecture 03) Random Variables and Distributions 8 / 17

3.1 and 3.2 Examples 1 Show that ( ) n f (x) = p x (1 p) n x, x = 0, 1,..., n, f (x) = 0, otherwise x is a pf 2 Show that is a pdf f (x) = 1, for x > 0, f (x) = 0, otherwise (1 + x) 2 STA 611 (Lecture 03) Random Variables and Distributions 9 / 17

Cumulative Distribution Function Def: Cumulative distribution function The Cumulative distribution function (cdf) of a random variable X is F (x) = P(X x) for < x < Relationship between the cdf and p(d)f Continuous distributions: F(x) = P(X x) = x f (u)du and f (x) = d dx F(x) Discrete distributions: F(x i ) = P(X x i ) = f (u) {u:u x i } STA 611 (Lecture 03) Random Variables and Distributions 10 / 17

Cumulative Distribution Function More simulated examples y = rbinom(10000, 10,.2) par(mfrow = c(2, 2)) plot(ecdf(y), main = Binomial(10,.2) ) plot(ecdf(x), main = 50samplesfromF ) STA 611 (Lecture 03) Random Variables and Distributions 11 / 17

Example Sketch the pf and cdf for Binomial(4, 1/6) (Tossing sixes example) f (x) = P(X = x) = ( 4 x ) ( 1 6 ) x ( ) 5 4 x x = 0, 1, 2, 3, 4 6 x 0 1 2 3 4 f (x) 0.482 0.386 0.116 0.015 0.001 F(x) 0.482 0.868 0.984 0.999 1.000 STA 611 (Lecture 03) Random Variables and Distributions 12 / 17

Properties of the cdf Theorem A function F(x) is a cdf if and only if the following three conditions hold: 1 lim x F(x) = 0 and lim x F(x) = 1 2 F(x) is a nondecreasing function of x 3 F(x) is right-continuous; i.e. lim x x0 F(x) = F(x 0 ) Note that lim x x0 F(x) is not necessarily equal to F(x 0 ) In practice we use the pdf (or pf) much more than the cdf. However, the cdf has some additional theoretical properties (e.g. uniqueness) that the pdf does not have. STA 611 (Lecture 03) Random Variables and Distributions 13 / 17

Example Consider the following cdf of a random variable X: 0 for x 0 1 F(x) = 9 x 2 for 0 < x 3 1 for x > 3 1 Verify that this is a cdf 2 Find and sketch the pdf of X STA 611 (Lecture 03) Random Variables and Distributions 14 / 17

Properties of the cdf Theorem P(X > x) = 1 F(x) for all x P(x 1 < X x 2 ) = F(x 2 ) F(x 1 ) for all x 1 < x 2 For all x: P(X = x) = F(x) F(x ) where F(x ) = lim y x F(y) For discrete distributions f (x) = P(X = x) is equal to the jump the cdf F takes at x For continuous distributions P(X = x) = 0 f (x)! STA 611 (Lecture 03) Random Variables and Distributions 15 / 17

Identically distributed Def: Identically distributed Random variables X and Y are identically distributed (id) if for every set A we have P(X A) = P(Y A) NOTE: X and Y are NOT necessarily the same Example: Let X and Y be the number of head and tails, respectively, in n tosses of a fair coin. They are not the same random variable, but they have the same distribution! Theorem The following are equivalent: 1 Random variables X and Y are identically distributed 2 F X (x) = F Y (x) for all x STA 611 (Lecture 03) Random Variables and Distributions 16 / 17

Quantile Function Def: Quantiles/Percentiles Let X be a random variable with cdf F(x) and let p (0, 1). We define the quantile function of X as F 1 (p) = the smallest x such that F(x) p F 1 (p) is called the p quantile of x or the 100 p percentile pf X If F(x) is continuous and one-to-one the quantile function is the inverse of F(x). Then there is only one x such that F(x) = p. Example: The quantile function for 0 for x 0 1 F(x) = 9 x 2 for 0 < x 3 is F 1 (p) = 3 p, p (0, 1) 1 for x > 3 The median is sometimes defined as the 0.5 quantile, but sometimes as the midpoint of the interval [x 1, x 2 ) where F(x) = 0.5 for all x [x 1, x 2 ). STA 611 (Lecture 03) Random Variables and Distributions 17 / 17