Engineering Statistics ECIV 2305 Chapter 2 Random Variables.

Slides:



Advertisements
Similar presentations
CS433: Modeling and Simulation
Advertisements

Engineering Statistics ECIV 2305 Chapter 2 Section 2.2 Continuous Random Variables.
DISCRETE RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS
CHAPTER Discrete Models  G eneral distributions  C lassical: Binomial, Poisson, etc Continuous Models  G eneral distributions  C.
Introduction to stochastic process
Engineering Statistics ECIV 2305 Section 2.3 The Expectation of a Random Variable.
Probability Theory Part 2: Random Variables. Random Variables  The Notion of a Random Variable The outcome is not always a number Assign a numerical.
Today Today: More of Chapter 2 Reading: –Assignment #2 is up on the web site – –Please read Chapter 2 –Suggested.
Probability Distributions Finite Random Variables.
BCOR 1020 Business Statistics Lecture 9 – February 14, 2008.
Today Today: Chapter 5 Reading: –Chapter 5 (not 5.12) –Suggested problems: 5.1, 5.2, 5.3, 5.15, 5.25, 5.33, 5.38, 5.47, 5.53, 5.62.
Probability Distributions
Statistics Lecture 8. Last day/Today: Discrete probability distributions Assignment 3: Chapter 2: 44, 50, 60, 68, 74, 86, 110.
1 Engineering Computation Part 5. 2 Some Concepts Previous to Probability RANDOM EXPERIMENT A random experiment or trial can be thought of as any activity.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
Chapter 4: Joint and Conditional Distributions
Copyright © Cengage Learning. All rights reserved. 3 Discrete Random Variables and Probability Distributions.
QMS 6351 Statistics and Research Methods Probability and Probability distributions Chapter 4, page 161 Chapter 5 (5.1) Chapter 6 (6.2) Prof. Vera Adamchik.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
NIPRL Chapter 2. Random Variables 2.1 Discrete Random Variables 2.2 Continuous Random Variables 2.3 The Expectation of a Random Variable 2.4 The Variance.
Probability Distributions: Finite Random Variables.
Discrete Probability Distributions A sample space can be difficult to describe and work with if its elements are not numeric.A sample space can be difficult.
Discrete Random Variables: PMFs and Moments Lemon Chapter 2 Intro to Probability
L7.1b Continuous Random Variables CONTINUOUS RANDOM VARIABLES NORMAL DISTRIBUTIONS AD PROBABILITY DISTRIBUTIONS.
Chapter 1 Probability and Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
Jointly Distributed Random Variables
Chapter 3 Discrete Random Variables and Probability Distributions Chapter 3A Variables that are random; what will they think of next?
4.1 Probability Distributions. Do you remember? Relative Frequency Histogram.
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 5: Random Variables and Discrete Probability Distributions
Statistical Applications Binominal and Poisson’s Probability distributions E ( x ) =  =  xf ( x )
Engineering Statistics ECIV 2305 Section 2.4 The Variance of a Random Variable.
Discrete Random Variables. Numerical Outcomes Consider associating a numerical value with each sample point in a sample space. (1,1) (1,2) (1,3) (1,4)
1 Topic 3 - Discrete distributions Basics of discrete distributions Mean and variance of a discrete distribution Binomial distribution Poisson distribution.
One Random Variable Random Process.
STA347 - week 31 Random Variables Example: We roll a fair die 6 times. Suppose we are interested in the number of 5’s in the 6 rolls. Let X = number of.
4.1 Probability Distributions NOTES Coach Bridges.
 Random variables can be classified as either discrete or continuous.  Example: ◦ Discrete: mostly counts ◦ Continuous: time, distance, etc.
Topic 3 - Discrete distributions Basics of discrete distributions - pages Mean and variance of a discrete distribution - pages ,
Copyright © 2006 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Review of Statistics I: Probability and Probability Distributions.
Chapter 2: Random Variable and Probability Distributions Yang Zhenlin.
Random Variables Example:
Chapter 4 Continuous Random Variables and Probability Distributions
Random Variables. Numerical Outcomes Consider associating a numerical value with each sample point in a sample space. (1,1) (1,2) (1,3) (1,4) (1,5) (1,6)
TELECOMMUNICATIONS Dr. Hugh Blanton ENTC 4307/ENTC 5307.
Chapter 3 Discrete Random Variables and Probability Distributions  Random Variables.2 - Probability Distributions for Discrete Random Variables.3.
CSE 474 Simulation Modeling | MUSHFIQUR ROUF CSE474:
Chapter 3 Discrete Random Variables and Probability Distributions  Random Variables.2 - Probability Distributions for Discrete Random Variables.3.
Random Variables 2.1 Discrete Random Variables 2.2 The Expectation of a Random Variable 2.3 The Variance of a Random Variable 2.4 Jointly Distributed Random.
Random Variables By: 1.
Probability Distribution for Discrete Random Variables
Virtual University of Pakistan
Math a Discrete Random Variables
Discrete Random Variables and Probability Distributions
STAT 311 REVIEW (Quick & Dirty)
Chapter 4 Continuous Random Variables and Probability Distributions
Probability Review for Financial Engineers
x1 p(x1) x2 p(x2) x3 p(x3) POPULATION x p(x) ⋮ Total 1 “Density”
ASV Chapters 1 - Sample Spaces and Probabilities
POPULATION (of “units”)
Cumulative Distribution Function
M248: Analyzing data Block A UNIT A3 Modeling Variation.
Chapter 2. Random Variables
Discrete Random Variables: Basics
Discrete Random Variables: Basics
Experiments, Outcomes, Events and Random Variables: A Revisit
Discrete Random Variables: Basics
Distribution Function of Random Variables
Continuous Random Variables: Basics
Presentation transcript:

Engineering Statistics ECIV 2305 Chapter 2 Random Variables

2 What is a Random Variable A random variable is a special kind of experiment in which the outcomes are numerical values e.g. -2, 7.3, 350, 0, … etc It is obtained by assigning a numerical value to each outcome of a particular experiment.

3 Example (Machine Breakdown) We remember that the sample space for the breakdown cause was: S = {Electrical, Mechanical, Misuse} The breakdown cause is not a random variable since its values are not numerical. How about the repair cost? CostBreakdown cause $200Electrical $350Mechanical $50Misuse The repair cost is a random variable with a sample space of S = {50, 200, 350}

4 Example (Power Plant Operation) The sample space for the status of the three plants is: (0, 0, 0) (1, 0, 0) (0.07) (0.16) (0, 0, 1) (1, 0, 1) (0.04) (0.18) (0, 1, 0) (1, 1, 0) (0.03) (0.21) (0, 1, 1) (1, 1, 1) ( 0.18) (0.13) The status of the three plants is not a random variable because its values are not numerical. where, 1 = generating electricity 0 = idle

5 …example (Power Plant Operation) The sample space for the number of plants generating electricity S = {0, 1, 2, 3} Therefore, we can define the Random Variable X representing the number of plants generating electricity, which can take the values 0, 1, 2, 3 (0, 0, 0) (1, 0, 0) (0, 0, 1) (1, 0, 1) (0, 1, 0) (1, 1, 0) (0, 1, 1) (1, 1, 1) How about the number of plants generating electricity?

6 Example (Factory Floor Accidents) It is obvious here that the number of floor accidents in a given year is a random variable which may take the value of zero or any positive integer. Suppose that a factory is interested in how many floor accidents occur in a given year.

7 Examples → The score obtained from the roll of a die is a random variable taking the values from 1 to 6 → The positive difference between the scores when rolling two dice can also be defined as a random variable taking the values 0 to 5

8 → We use upper case letters to refer to random variables; e.g. X, Y, Z → We use lowercase letters to refer to values taken by the random variable e.g. a random variable X takes the values x = -0.6, x = 2.3, x= 4.0

9 Discrete or Continuous Random Variable Continuous random variable: May take any value within a continuous interval. Therefore, the values taken by a continuous variable are uncountable examples: ?? Discrete random variable: Can take only certain discrete values. Therefore, the values taken by a discrete random variable are finite. Examples: ??

10 Probability Mass Function (p.m.f.) The probability mass function of a random variable X is a set of probability values p i assigned to each of the values x i taken by the discrete random variable. 0 ≤ p i ≤ 1 and ∑p i = 1 The probability that the random variable takes the value x i is p i, and written as P(X = x i ) = p i. The probability mass function (pmf) is also referred to as the distribution of the random variable.

11 Example (Machine Breakdown) p78

12 Example (Power Plant Operation) p78 Suppose that we are interested in the number of plants generating electricity. We can define a Random Variable X X= number of plants generating electricity, which may take the values 0, 1, 2, 3 What is the pmf of X? (0, 0, 0) (1, 0, 0) (0.07) (0.16) (0, 0, 1) (1, 0, 1) (0.04) (0.18) (0, 1, 0) (1, 1, 0) (0.03) (0.21) (0, 1, 1) (1, 1, 1) ( 0.18) (0.13)

13 Example (Factory Floor Accident) p79 Suppose that the probability of having x accidents is a)Draw the pmf on a line graph. b)Is this a valid pmf?

14 Example (Rolling Two Dice) p79 Two dice are rolled. Suppose that we are interested in the positive difference between the scores obtained. a)Is it a RV b)Draw the pmf of the RV (1,1) (1,2) (1,3) (1,4) (1,5) (1,6) (2,1) (2,2) (2,3) (2,4) (2,5) (2,6) (3,1) (3,2) (3,3) (3,4) (3,5) (3,6) (4,1) (4,2) (4,3) (4,4) (4,5) (4,6) (5,1) (5,2) (5,3) (5,4) (5,5) (5,6) (6,1) (6,2) (6,3) (6,4) (6,5) (6,6)

15 …example (Rolling Two Dice) p79 (1,1) (1,2) (1,3) (1,4) (1,5) (1,6) (2,1) (2,2) (2,3) (2,4) (2,5) (2,6) (3,1) (3,2) (3,3) (3,4) (3,5) (3,6) (4,1) (4,2) (4,3) (4,4) (4,5) (4,6) (5,1) (5,2) (5,3) (5,4) (5,5) (5,6) (6,1) (6,2) (6,3) (6,4) (6,5) (6,6) However, the positive difference between the two scores is a random variable. We can define X: → X = positive difference between scores, which make take the values 0, 1, 2, 3, 4, 5 We already know that the scores obtained as a result of rolling two dice will not generate a random variable since the sample space is not a set of numerical values.

16 …example (Rolling Two Dice) p79 (1,1) (1,2) (1,3) (1,4) (1,5) (1,6) (2,1) (2,2) (2,3) (2,4) (2,5) (2,6) (3,1) (3,2) (3,3) (3,4) (3,5) (3,6) (4,1) (4,2) (4,3) (4,4) (4,5) (4,6) (5,1) (5,2) (5,3) (5,4) (5,5) (5,6) (6,1) (6,2) (6,3) (6,4) (6,5) (6,6)

17 Cumulative Distribution Function (cdf) The cumulative distribution function of a random variable X is the function: F( x ) = P(X ≤ x )  For example: In the two-dice example: F(2) = F(5) = Like the pmf, the cdf summarizes the probabilistic properties of a random variable.

18 Example (Rolling Two Dice) p83 Two dice are rolled. Suppose that we are interested in the positive difference between the scores obtained. a)What is the probability that the difference is no larger than 2? b)Construct & plot the cdf of the positive difference between the scores obtained. a)

19 …example (Rolling Two Dice) p83 b) Construct & plot the cdf of the positive difference between the scores obtained xixi 2/364/366/368/3610/366/36 pipi F(x)

20 Notes F(x) is an increasing step function with steps taken at the values taken by the random variable. Knowledge of either the pmf or cdf allows the other function to be calculated; for example: a) From pmf to cdf: b) From cdf to pmf: The cdf is an alternative way of specifying the probability properties of a random variable X. What if there is no step in the cdf at point x?

21 Example (Machine Breakdown) p81 For the machine breakdown example, construct & plot the cdf.

22 Example (Power Plant Operation) p81 For the machine breakdown example, construct & plot the cdf. Also, find the probability that no more than one plant is generating electricity.