Random Variable. Random variable A random variable χ is a function (rule) that assigns a number to each outcome of a chance experiment. A function χ acts.

Slides:



Advertisements
Similar presentations
Random Variables & Probability Distributions The probability of someone laughing at you is proportional to the stupidity of your actions.
Advertisements

Lecture Discrete Probability. 5.2 Recap Sample space: space of all possible outcomes. Event: subset of of S. p(s) : probability of element s of.
1. Frequency Distribution & Relative Frequency Distribution 2. Histogram of Probability Distribution 3. Probability of an Event in Histogram 4. Random.
Chapter 5 Probability Distributions. E.g., X is the number of heads obtained in 3 tosses of a coin. [X=0] = {TTT} [X=1] = {HTT, THT, TTH} [X=2] = {HHT,
Probability Distributions Finite Random Variables.
Random Variables and Distributions Lecture 5: Stat 700.
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., 2000 LIND MASON MARCHAL 1-1 Chapter Five Discrete Probability Distributions GOALS When you have completed.
Probability Distributions: Finite Random Variables.
CHAPTER 10: Introducing Probability
Stat 1510: Introducing Probability. Agenda 2  The Idea of Probability  Probability Models  Probability Rules  Finite and Discrete Probability Models.
Probability.
14/6/1435 lecture 10 Lecture 9. The probability distribution for the discrete variable Satify the following conditions P(x)>= 0 for all x.
Random Variables A random variable is simply a real-valued function defined on the sample space of an experiment. Example. Three fair coins are flipped.
Discrete probability Business Statistics (BUSA 3101) Dr. Lari H. Arjomand
5.3 Random Variables  Random Variable  Discrete Random Variables  Continuous Random Variables  Normal Distributions as Probability Distributions 1.
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}.
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
CHAPTER 10: Introducing Probability ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture Presentation.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 8.5 The student will be able to identify what is meant by a random variable.
Random Variables an important concept in probability.
Probability Distributions
Review of Chapter
Random Variables Learn how to characterize the pattern of the distribution of values that a random variable may have, and how to use the pattern to find.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 6: Random Variables Section 6.1 Discrete and Continuous Random Variables.
MATH 256 Probability and Random Processes Yrd. Doç. Dr. Didem Kivanc Tureli 14/10/2011Lecture 3 OKAN UNIVERSITY.
Probability theory is the branch of mathematics concerned with analysis of random phenomena. (Encyclopedia Britannica) An experiment: is any action, process.
Math 145 September 18, Terminologies in Probability  Experiment – Any process that produces an outcome that cannot be predicted with certainty.
Statistics October 6, Random Variable – A random variable is a variable whose value is a numerical outcome of a random phenomenon. – A random variable.
PROBABILITY DISTRIBUTIONS DISCRETE RANDOM VARIABLES OUTCOMES & EVENTS Mrs. Aldous & Mr. Thauvette IB DP SL Mathematics.
Copyright © Cengage Learning. All rights reserved. 8 PROBABILITY DISTRIBUTIONS AND STATISTICS.
1 What Is Probability?. 2 To discuss probability, let’s begin by defining some terms. An experiment is a process, such as tossing a coin, that gives definite.
Discrete Random Variable Random Process. The Notion of A Random Variable We expect some measurement or numerical attribute of the outcome of a random.
Copyright © Cengage Learning. All rights reserved. 8 PROBABILITY DISTRIBUTIONS AND STATISTICS.
Terminologies in Probability
Math 145 October 5, 2010.
Random Variables.
Math 145 June 9, 2009.
PROBABILITY AND PROBABILITY RULES
UNIT 8 Discrete Probability Distributions
Discrete and Continuous Random Variables
Math 145 September 25, 2006.
Aim – How do we analyze a Discrete Random Variable?
CHAPTER 6 Random Variables
Random Variable, Probability Distribution, and Expected Value
Math 145.
Probability distributions
Terminologies in Probability
Math 145 February 22, 2016.
CHAPTER 10: Introducing Probability
Terminologies in Probability
Terminologies in Probability
Random Variable Two Types:
Random Variables and Probability Distributions
Math 145 September 4, 2011.
Terminologies in Probability
Math 145 February 26, 2013.
Math 145 June 11, 2014.
Discrete & Continuous Random Variables
Math 145 September 29, 2008.
Math 145 June 8, 2010.
Section 1 – Discrete and Continuous Random Variables
Math 145 October 3, 2006.
Math 145 June 26, 2007.
Terminologies in Probability
Math 145 February 12, 2008.
Terminologies in Probability
Math 145 September 24, 2014.
Math 145 October 1, 2013.
Math 145 February 24, 2015.
Math 145 July 2, 2012.
Presentation transcript:

Random Variable

Random variable A random variable χ is a function (rule) that assigns a number to each outcome of a chance experiment. A function χ acts on the elements of its domain (the sample space) associating each element with a unique real number. The set of all values assigned by the random variable is the range of this function. If that set is finite, then the random variable is said to be finite discrete. If that set is infinite but can be written as a sequence, then the random variable is said to be infinite discrete. If that set is an interval then the random variable is said to be continuous.

Example (1) A coin is tossed 3 times. Let the random variable χ denotes the number of heads that occur in 3 tosses. 1. List the outcomes of the experiment (Find the domain of the function χ) Answer: The outcomes of the experiments are those of the sample space S = { HHH, HHT, HTH, THH, HTT, THT, TTH, TTT } = the domain of the function (random variable) χ 2. Find the value assigned to each outcome by χ See the table on the following slide.

Value of ΧOutcome 3HHH 2HHT 2HTH 2THH 1HTT 1THT 1TTH 0TTT

3. Let E be the event containing the outcomes to which a value of 2 has been assigned by χ. Find E! Answer: E = {HHT, HTH, THH } 4. Is χ finite discrete, infinite discrete or continuous? Answer: The set of the values assigned by χ is: { 0, 1, 2, 3}, which is a finite set, hence the random variable is χ finite discrete

Example (2) A coin is tossed repeatedly until a head occurs. Let the random variable χ denotes the number coin tosses in the experiment 1. List the outcomes of the experiment (Find the domain of the function χ) Answer The outcomes of the experiments are those of the sample space S = { H, TH, TTH, TTTH, TTTTH, TTTTTH, TTTTTTH, …. } = the domain of the function (random variable) χ 2. Find the value assigned to each outcome by χ See the table on the following slide which shows some of these values.

Value of ΧOutcome 1H 2TH 3TTH 4TTTH 5TTTTH 6TTTTTH 7TTTTTTH …..….Etc etc

3. Is χ finite discrete, infinite discrete or continuous? Answer: The set of the values assigned by χ is: {1, 2, 3, 4, 5, 6, 7, 8, 9, ……..}, which is a infinite set, that can written as a sequence, hence the random variable is χ is infinite discrete

Example (3) A flashlight is turned on until the battery runs out. Let the Radom variable χ denote the length (time) of the life of the battery. What values may χ assume ? Is χ finite discrete, infinite discrete or continuous? Answer: The set of possible values is the interval [0,∞), and hence the random variable χ is continuous.

Probability Distribution of Random variable

A table showing the probability distribution associated with the random variable ( which is associated with the experiment) rather than with the outcomes (which are related to the random variable)

Example (4) A coin is tossed 3 times. Let the random variable χ denotes the number of heads that occur in 3 tosses. Show the probability distribution of the random variable associated with the experiment.

Value of ΧOutcome 3HHH 2HHT 2HTH 2THH 1HTT 1THT 1TTH 0TTT

probability distribution of the random variable X P(X=x)Value of Χ 1/80 3/81 2 1/83

Example (5) Two dice are rolled. Let the random variable χ denotes the sum of the numbers on the faces that fall uppermost. Show the probability distribution of the random variable X. Answer: The values assumed by the random variable X are 2, 3, 4, 5, 6,….,12, corresponding to the events E 2, E 3, E 4,….,E 12. The probabilities associated with the random variable X corresponding to 2, 3, 4, …,12 are the probabilities p(E 2 ), p(E 3 ),, p(E 4 ), …., p(E 12 )..

Sum of uppermost numbersEvent E k { (1,1) } 2 { (1,2), (2,1) } 3 { (1,3), (2, 2), (3,1) } 4 { (1, 4), (2, 3), (3, 2), (4,1) } 5 { (1, 5 ), (2, 4), (3, 3), (4, 2), (5,1) } 6 {(1, 6), (2, 5), (3,4), (4, 3), (5, 2), (6,1)} 7 { (2, 6), (3, 5), (4, 4), (5,1), (6, 2) } 8 { (3, 6), (4, 5), (5, 4), (6, 3) } 9 { (4, 6), (5, 5), (6, 4) } 10 { (5, 6), (6, 5) } 11 {(6,6)} 12

Probability Distribution of the Random Variable X p(X=x)x 1/362 2/363 3/364 4/365 5/366 6/367 5/368 4/369 3/3610 2/3611 1/3612

Example (6) The following table shows the number of cars observed waiting in line at the beginning of 2 minutes interval from am to noon at the drive-in ATM of QNB branch in Ghrafa and the corresponding frequency of occurrence. Show the probability distribution table of the random variable x denoting the number of cars observed waiting in line. Frequency of Occurrence Cars

Dividing the frequency by 60 (the sum of these numbers- the ones indicating frequency ), we get the respective probability associated with random variable X. Thus: P(X=0) = 2/60 =1/30 ≈0.03 P(X=1) = 9/60 = 3/20 =0.15 P(X=2) = 16/60 = 1/10 = 0.1 ….etc See the opposite table Frequency of Occurrence p(X = x) Cars x 2/60 ≈ /60 ≈ /60 ≈ /60 ≈ /60 ≈ /60 ≈ /60 ≈ /60 ≈ /60 ≈ 0.028

Bar Charts ( Histograms ) A bar chart or histogram is a graphical means of exhibiting probability distribution of a random variable. For a given probability distribution, a histogram is constructed as follows: 1. Locate the values of the random variable on the number line (x-axis) 2. Above each number (value) erect a rectangle of width 1 and height equal to the probability asociated with that number (value).

1. The area of rectangle associated with the value of the random variable x = The probability associated with the value x (notice tat the width of the rectangle is 1) 2. The probability associated with more than one value of the random variable x is given by the sum of the areas of the rectangles associated with those values. Remarks

Example Back to the example of three tosses of the coin

Value of ΧOutcome 3HHH 2HHT 2HTH 2THH 1HTT 1THT 1TTH 0TTT

Probability Distribution x p(X=x) 0 1/8 1 3/8 2 3/8 3 1/8 Value of ΧOutcome 3HHH 2HHT 2HTH 2THH 1HTT 1THT 1TTH 0TTT

12 3

The event F of obtaining at least two heads F = {HHH, HHT, HTH, THH} P(F) = 4/8 = ½ The same result can be obtained from the following reasoning: F is the event: “(X=2) or (X=3)” The probability of this event is equal to: p(X=2) + p(X=3) = the sum of the areas of the rectangles associated with the values 2 and 3 of the random variable = 1(3/8) + 1(1/8) = 4/8 = ½ on the following slide, these areas are identified (the shaded areas)

Expected Value of a Random Variable

Mean (Average) The average (mean) of the numbers a 1, a 2, a 3,……. a n is denoted by ā and equal to: (a 1 +a 2 +a 3 +…….+a n ) / n Example: Find the average of the following numbers: 5, 7, 9, 11, 13 Answer: The average of the given numbers ie equal to ( ) / 5 = 45 / 5 = 9

Expected Value of a Random Variable ( the average or the mean of the random variable) Let x be a random variable that assumes the values x 1, x 2, x 3,……. x n with associated probabilities p 1, p 2, p 3,……. p n respectively. Then the expected value of x denoted by E(x) is equal to x 1 p 1 + x 2 p 2 + x 3 p 3 +……+ x n p n

The the expected value of x ( the average or the mean of X) is a measure of central tendency of the probability distribution associated with X. As the number of the trails of an experiment gets larger and larger the values of x gets closer and closer to the expected value of x. Geometric Interpretation: Consider the histogram of the probability distribution associated with the random variable X. If a laminate (thin board or sheet) is made of this histogram, then the expected value of X corresponds to the point on the base of the laminate at which the laminate will balance perfectly when the point is directly over the a fulcrum (balancing object).

Example (7) Let X be the random variable giving the sum of the dots on the faces that fall uppermost in the two dice rolling experiment. Find the expected value E(X) of X.

Recall the probability distribution of the this random variable P(X=x)x 1/362 2/363 3/364 4/365 5/366 6/367 5/368 4/369 3/3610 2/3611 1/3612

Solution E(X) = 2(1/36) + 3(2/36) + 4(3/36) + 5(4/36) + 6(5/36) + 7(6/36) + 8(5/36) + 9(4/36) + 10(3/36) + 11(2/36) + 12(1/36) =( ) / 36 = 252 / 36 = 7 Inspecting the histogram on the next slide, we notice that the symmetry of the histogram with respect to the vertical line x = 7, which is the expected value of the random variable X.

Example (8) The occupancy rates with corresponding probability of hotels A (Which has 52 rooms) & B (which has 60 rooms) during the tourist season are given by the tables on the next slide. The average profit per day for each occupied room is QR 200 and QR 180 for hotels A & B respectively. Find: 1. The average number of rooms occupied per day in each hotel. 2. Which hotel generates the higher daily profit.

Hotel A Occupancy Rate Probability Hotel B Occupancy Rate Probability

Steps I. For each hotel: 1. Find the expected value of the random variable defined to be the occupancy rate in the hotel. 2. Multiply that by the number of rooms of the hotel to find the average number of rooms occupied per day. 3. Multiply that by the profit made on each room per day to find the hotel daily profit. II. Compare the result of step 3., for hotels A & B.

Solution 1. Let the occupancy rate in Hotels A & B be the random numbers X & Y respectively. Then the average daily occupancy rate is given by the expected values E(X) and E(Y) of X and Y respectively. Thus: E(X) = (0.80)(0.19) + (0.85)(0.22) + (0.90)(0.31) + (0.95)(0.23) + (1.00)(0.05) ≈ The average number of rooms occupied per day in Hotel A = (52) ≈ 46.1 rooms E(Y) = (0.75)(0.35) + (0.80)().21) + (0.85)(0.18) + (0.90)(0.15) + (0.95)(0.09) + (1.00)(0.02) ≈ The average number of rooms occupied per day in Hotel A = (60) ≈ 49.4 rooms

2. The expected daily profit at hotel A = (46.1 )(200) ≈ 9220 The expected daily profit at hotel B = (49.4 )(180) ≈ 8890 → hotel A generates a higher profit