Random Variables and Probability Distributions

Slides:



Advertisements
Similar presentations
Lecture 7. Distributions
Advertisements

Chapter 4: Mathematical Expectation:
Lecture (7) Random Variables and Distribution Functions.
Chapter 4 Mathematical Expectation.
Introduction to Probability
4.3 Random Variables. Quantifying data Given a sample space, we are often interested in some numerical property of the outcomes. For example, if our collection.
Introduction to stochastic process
Continuous Random Variables. For discrete random variables, we required that Y was limited to a finite (or countably infinite) set of values. Now, for.
Review.
Probability Distributions
Probability Distributions
Class notes for ISE 201 San Jose State University
Lesson #15 The Normal Distribution. For a truly continuous random variable, P(X = c) = 0 for any value, c. Thus, we define probabilities only on intervals.
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
Eighth lecture Random Variables.
Chapter 5 Discrete Random Variables and Probability Distributions
Probability Distributions: Finite Random Variables.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
Continuous Random Variables and Probability Distributions
Chapter 3 Random Variables and Probability Distributions 3.1 Concept of a Random Variable: · In a statistical experiment, it is often very important to.
Theory of Probability Statistics for Business and Economics.
Free Powerpoint Templates ROHANA BINTI ABDUL HAMID INSTITUT E FOR ENGINEERING MATHEMATICS (IMK) UNIVERSITI MALAYSIA PERLIS MADAM ROHANA BINTI ABDUL HAMID.
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}.
CHAPTER Discrete Models  G eneral distributions  C lassical: Binomial, Poisson, etc Continuous Models  G eneral distributions 
Chapter Four Random Variables and Their Probability Distributions
2.1 Introduction In an experiment of chance, outcomes occur randomly. We often summarize the outcome from a random experiment by a simple number. Definition.
1 Since everything is a reflection of our minds, everything can be changed by our minds.
Chapter 2: Probability · An Experiment: is some procedure (or process) that we do and it results in an outcome. A random experiment: is an experiment we.
CS433 Modeling and Simulation Lecture 03 – Part 01 Probability Review 1 Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University
1 Continuous Probability Distributions Continuous Random Variables & Probability Distributions Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering.
4.1 Probability Distributions Important Concepts –Random Variables –Probability Distribution –Mean (or Expected Value) of a Random Variable –Variance and.
EQT 272 PROBABILITY AND STATISTICS
Random Variables an important concept in probability.
Chapter 3 Discrete Random Variables and Probability Distributions  Random Variables.2 - Probability Distributions for Discrete Random Variables.3.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
Chapter 3 Discrete Random Variables and Probability Distributions  Random Variables.2 - Probability Distributions for Discrete Random Variables.3.
President UniversityErwin SitompulPBST 3/1 Dr.-Ing. Erwin Sitompul President University Lecture 3 Probability and Statistics
AP STATISTICS Section 7.1 Random Variables. Objective: To be able to recognize discrete and continuous random variables and calculate probabilities using.
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.
TELECOMMUNICATIONS Dr. Hugh Blanton ENTC 4307/ENTC 5307.
EQT 272 PROBABILITY AND STATISTICS
Section 7.1 Discrete and Continuous Random Variables
CSE 474 Simulation Modeling | MUSHFIQUR ROUF CSE474:
Statistics and Probability Theory Lecture 12 Fasih ur Rehman.
Probability Distribution. Probability Distributions: Overview To understand probability distributions, it is important to understand variables and random.
ONE DIMENSIONAL RANDOM VARIABLES
Discrete and Continuous Random Variables
EQT 272 PROBABILITY AND STATISTICS
CHAPTER 2 RANDOM VARIABLES.
Defining Probabilities: Random Variables
Chapter Four Random Variables and Their Probability Distributions
Chapter 2: Probability · An Experiment: is some procedure (or process) that we do and it results in an outcome. A random experiment: is an experiment we.
Chapter. 5_Probability Distributions
Chapter 4: Mathematical Expectation:
Chapter 3: Random Variables and Probability Distributions
Chapter 3: Random Variables and Probability Distributions
Distributions and expected value
Review for test Ch. 6 ON TUESDAY:
2.0 Probability Concepts definitions: randomness, parent population, random variable, probability, statistical independence, probability of multiple events,
Statistics Lecture 12.
Chapter 3: Random Variables and Probability Distributions
Random Variables and Probability Distributions
Tutorial 7 Probability and Calculus
RANDOM VARIABLES Random variable:
M248: Analyzing data Block A UNIT A3 Modeling Variation.
Chapter 3: Random Variables and Probability Distributions
Chapter 3: Random Variables and Probability Distributions
Random Variables and Probability Distributions
Mathematical Expectation
Presentation transcript:

Random Variables and Probability Distributions Chapter 3 Random Variables and Probability Distributions   3.1 Concept of a Random Variable: ·      In a statistical experiment, it is often very important to allocate numerical values to the outcomes. Example: ·      Experiment: testing two components. (D=defective, N=non-defective) ·      Sample space: S={DD,DN,ND,NN} ·      Let X = number of defective components when two components are tested. ·      Assigned numerical values to the outcomes are:

Notation: " X " denotes the random variable . Sample point (Outcome) Assigned Numerical Value (x) DD 2 DN 1 ND NN Notice that, the set of all possible values of the random variable X is {0, 1, 2}. Definition 3.1: A random variable X is a function that associates each element in the sample space with a real number (i.e., X : S  R.) Notation: " X " denotes the random variable . " x " denotes a value of the random variable X.

Types of Random Variables: ·      A random variable X is called a discrete random variable if its set of possible values is countable, i.e., .x  {x1, x2, …, xn} or x  {x1, x2, …} ·      A random variable X is called a continuous random variable if it can take values on a continuous scale, i.e., .x  {x: a < x < b; a, b R} ·      In most practical problems: o      A discrete random variable represents count data, such as the number of defectives in a sample of k items. o      A continuous random variable represents measured data, such as height.

3.2 Discrete Probability Distributions ·      A discrete random variable X assumes each of its values with a certain probability. Example: ·    Experiment: tossing a non-balance coin 2 times independently. ·    H= head , T=tail ·    Sample space: S={HH, HT, TH, TT} ·    Suppose P(H)=½P(T)  P(H)=1/3 and P(T)=2/3 ·    Let X= number of heads Sample point (Outcome) Probability Value of X (x) HH P(HH)=P(H) P(H)=1/31/3 = 1/9 2 HT P(HT)=P(H) P(T)=1/32/3 = 2/9 1 TH P(TH)=P(T) P(H)=2/31/3 = 2/9 TT P(TT)=P(T) P(T)=2/32/3 = 4/9

· The possible values of X are: 0, 1, and 2. ·      X is a discrete random variable. ·      Define the following events: Event (X=x) Probability = P(X=x) (X=0)={TT} P(X=0) = P(TT)=4/9 (X=1)={HT,TH} P(X=1) =P(HT)+P(TH)=2/9+2/9=4/9 (X=2)={HH} P(X=2) = P(HH)= 1/9 ·      The possible values of X with their probabilities are: X 1 2 Total P(X=x)=f(x) 4/9 1/9 1.00 The function f(x)=P(X=x) is called the probability function (probability distribution) of the discrete random variable X.

For the previous example, we have: Definition 3.4: The function f(x) is a probability function of a discrete random variable X if, for each possible values x, we have: f(x)  0 f(x)= P(X=x) Note: Example: For the previous example, we have: 1/9 4/9 f(x)= P(X=x) Total 2 1 X

P(X<1) = P(X=0)=4/9 P(X1) = P(X=0) + P(X=1) = 4/9+4/9 = 8/9 P(X0.5) = P(X=1) + P(X=2) = 4/9+1/9 = 5/9 P(X>8) = P() = 0 P(X<10) = P(X=0) + P(X=1) + P(X=2) = P(S) = 1 Example 3.3: A shipment of 8 similar microcomputers to a retail outlet contains 3 that are defective and 5 are non-defective. If a school makes a random purchase of 2 of these computers, find the probability distribution of the number of defectives. Solution: We need to find the probability distribution of the random variable: X = the number of defective computers purchased. Experiment: selecting 2 computers at random out of 8 n(S) = equally likely outcomes

The possible values of X are: x=0, 1, 2. Consider the events:

In general, for x=0,1, 2, we have:

Hypergeometric Distribution The probability distribution of X is: x 1 2 Total f(x)= P(X=x) 1.00 Hypergeometric Distribution Definition 3.5: The cumulative distribution function (CDF), F(x), of a discrete random variable X with the probability function f(x) is given by: for <x<

Find the CDF of the random variable X with the probability function: Example: Find the CDF of the random variable X with the probability function: X 1 2 F(x) Solution: F(x)=P(Xx) for <x< For x<0: F(x)=0 For 0x<1: F(x)=P(X=0)= For 1x<2: F(x)=P(X=0)+P(X=1)= For x2: F(x)=P(X=0)+P(X=1)+P(X=2)=

The CDF of the random variable X is: Note: F(0.5) = P(X0.5)=0 F(1.5)=P(X1.5)=F(1) = F(3.8) =P(X3.8)=F(2)= 1 Result: P(a < X  b) = P(X  b)  P(X  a) = F(b)  F(a) P(a  X  b) = P(a < X  b) + P(X=a) = F(b)  F(a) + f(a) P(a < X < b) = P(a < X  b)  P(X=b) = F(b)  F(a)  f(b)

Suppose that the probability function of X is: Result: Suppose that the probability function of X is: x x1 x2 x3 … xn F(x) f(x1) f(x2) f(x3) f(xn) Where x1< x2< … < xn. Then: F(xi) = f(x1) + f(x2) + … + f(xi) ; i=1, 2, …, n F(xi) = F(xi 1 ) + f(xi) ; i=2, …, n f(xi) = F(xi)  F(xi 1 ) Example: In the previous example, P(0.5 < X  1.5) = F(1.5)  F(0.5) = P(1 < X  2) = F(2)  F(1) =

3.3. Continuous Probability Distributions For any continuous random variable, X, there exists a non-negative function f(x), called the probability density function (p.d.f) through which we can find probabilities of events expressed in term of X. f: R  [0, ) P(a < X < b) = = area under the curve of f(x) and over the interval (a,b)   P(XA) = region A

Definition 3.6: The function f(x) is a probability density function (pdf) for a continuous random variable X, defined on the set of real numbers, if: 1.    f(x)  0  x R 2. 3.     P(a  X  b) =  a, b R; ab Note: For a continuous random variable X, we have: 1.    f(x)  P(X=x) (in general) 2.    P(X=a) = 0 for any aR 3.    P(a  X  b)= P(a < X  b)= P(a  X < b)= P(a < X < b) 4.    P(XA) =

Example 3.6: Suppose that the error in the reaction temperature, in oC, for a controlled laboratory experiment is a continuous random variable X having the following probability density function: 1.    Verify that (a) f(x)  0 and (b) 2.    Find P(0<X1) Solution: X = the error in the reaction temperature in oC. X is continuous r. v.

(a) f(x)  0 because f(x) is a quadratic function. 2. P(0<X1) =

Definition 3.7: The cumulative distribution function (CDF), F(x), of a continuous random variable X with probability density function f(x) is given by: F(x) = P(Xx)= for <x< Result: P(a < X  b) = P(X  b)  P(X  a) = F(b)  F(a) Example: in Example 3.6, 1.Find the CDF 2.Using the CDF, find P(0<X1).

Solution: For x< 1: F(x) = For 1x<2:

For x2: F(x) = Therefore, the CDF is: 2. Using the CDF, P(0<X1) = F(1)  F(0) =