Discrete Random Variables

Slides:



Advertisements
Similar presentations
Random Variables A random variable is a variable (usually we use x), that has a single numerical value, determined by chance, for each outcome of a procedure.
Advertisements

Unit 32 STATISTICS.
QBM117 Business Statistics
Copyright © 2009 Pearson Education, Inc. Chapter 16 Random Variables.
Eighth lecture Random Variables.
Chapter 16: Random Variables
Copyright © 2010 Pearson Education, Inc. Slide
Chapter 5 Discrete Probability Distribution I. Basic Definitions II. Summary Measures for Discrete Random Variable Expected Value (Mean) Variance and Standard.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 16 Random Variables.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 16 Random Variables.
1 Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering EMIS 7370/5370 STAT 5340 : PROBABILITY AND STATISTICS FOR SCIENTISTS AND ENGINEERS Systems.
1 Lecture 4. 2 Random Variables (Discrete) Real-valued functions defined on a sample space are random vars. determined by outcome of experiment, we can.
1 Chapter 16 Random Variables. 2 Expected Value: Center A random variable assumes a value based on the outcome of a random event.  We use a capital letter,
5.3 Random Variables  Random Variable  Discrete Random Variables  Continuous Random Variables  Normal Distributions as Probability Distributions 1.
Random Variables and Probability Models
Mean and Standard Deviation of Discrete Random Variables.
Define "discrete data" to the person sitting next to you. Now define "random" and "variable"
Lesson Objective Understand what we mean by a Random Variable in maths Understand what is meant by the expectation and variance of a random variable Be.
1 Continuous Probability Distributions Continuous Random Variables & Probability Distributions Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering.
DISCRETE RANDOM VARIABLES.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 16 Random Variables.
Slide 16-1 Copyright © 2004 Pearson Education, Inc.
Chapter 16 Probability Models. Who Wants to Play?? $5 to play You draw a card: – if you get an Ace of Hearts, I pay you $100 – if you get any other Ace,
Probability Distributions
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 6: Random Variables Section 6.1 Discrete and Continuous Random Variables.
STA 2023 Module 5 Discrete Random Variables. Rev.F082 Learning Objectives Upon completing this module, you should be able to: 1.Determine the probability.
Probability and Distributions. Deterministic vs. Random Processes In deterministic processes, the outcome can be predicted exactly in advance Eg. Force.
Probability Theory Modelling random phenomena. Permutations the number of ways that you can order n objects is: n! = n(n-1)(n-2)(n-3)…(3)(2)(1) Definition:
AP STATISTICS Section 7.1 Random Variables. Objective: To be able to recognize discrete and continuous random variables and calculate probabilities using.
Chapter 16 Week 6, Monday. Random Variables “A numeric value that is based on the outcome of a random event” Example 1: Let the random variable X be defined.
Review Know properties of Random Variables
7.2 Means & Variances of Random Variables AP Statistics.
Probability Distribution. Probability Distributions: Overview To understand probability distributions, it is important to understand variables and random.
1 Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering EMIS 7370/5370 STAT 5340 : PROBABILITY AND STATISTICS FOR SCIENTISTS AND ENGINEERS Systems.
PROBABILITY DISTRIBUTIONS DISCRETE RANDOM VARIABLES OUTCOMES & EVENTS Mrs. Aldous & Mr. Thauvette IB DP SL Mathematics.
Random Variables Lecture Lecturer : FATEN AL-HUSSAIN.
12.SPECIAL PROBABILITY DISTRIBUTIONS
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
Copyright © 2009 Pearson Education, Inc. Chapter 16 Random Variables.
Statistics -S1.
Chapter 15 Random Variables.
Random Variables/ Probability Models
CHAPTER 2 RANDOM VARIABLES.
Random Variables.
Chapter 15 Random Variables
Chapter 16 Random Variables.
Business Statistics Topic 4
Random Variables and Probability Models
Chapter 16 Random Variables
Chapter. 5_Probability Distributions
Chapter 16 Random Variables.
Chapter 15 Random Variables.
Chapter 16.
Expectation & Variance of a Discrete Random Variable
Probability Review for Financial Engineers
Probability Key Questions
Review
6.1: Discrete and Continuous Random Variables
Chapter 16 Random Variables Copyright © 2009 Pearson Education, Inc.
Discrete Distributions
Discrete Distributions
I flip a coin two times. What is the sample space?
Discrete Distributions.
AP Statistics Chapter 16 Notes.
M248: Analyzing data Block A UNIT A3 Modeling Variation.
Discrete Distributions
Lesson #5: Probability Distributions
Chapter 16 Random Variables Copyright © 2010 Pearson Education, Inc.
Presentation transcript:

Discrete Random Variables

Discrete Random Variables This Chapter is on Discrete Random Variables We are going to learn what these are! We will look at Cumulative Distribution We will also be re-visiting Mean and Variance in these situations We will look at Discrete Uniform Distribution

Teachings for Exercise 8A

Discrete Random Variables Explanation of Discrete Random Variables Discrete Random Variables are linked to Probability. A Discrete Random Variable can be obtained by real-world measurement. For example, rolling a dice. They must always be numerical values. For example, you could toss a coin and say ‘how many heads?’, the answer being 1 or 0. However you could not say ‘heads or tails’ as these are not numerical. The possibilities can only be whole numbers (discrete). There can be others but these are not the focus of the chapter. Summary  Discrete random variables allow us to calculate the expected outcomes of events with given probabilities. 8A

Discrete Random Variables Notation of Discrete Random Variables A Capital letter, such as X, will be used for the random variable, and a lower case x for a particular value of that variable. P(X = x) means the Probability that the Random variable is equal to a particular value. Rolling a Dice  ‘X’ P(X = 5) = 1/6 P(X > 4) = 2/6 = 1/3 Tossing a coin once  Number of heads  ‘X’ P(X = 0) = 1/2 P(X = 1) = 1/2 8A

Discrete Random Variables A coin is tossed 6 times and the number of heads (X) is noted. What are the possible values of X?  0, 1, 2, 3, 4, 5, 6 Which of the following are Discrete Random Variables?  The average height of a group of boys  No as height is on a continuous scale  The number of times a dice is rolled before a 2 appears  Yes, it is numerical and comes from an experiment  The number of months in a year  No as it is fixed and therefore not random 8A

Discrete Random Variables You can draw up a table to show the Probability Distribution of a discrete Random Variable. This should be something you always do first if you are not given it in the question. A fair dice is rolled. Show the Probability of getting any number as a Probability Distribution. x 1 2 3 4 5 6 P(X = x) 1/6 1/6 1/6 1/6 1/6 1/6 This is the Probability Function. It summarises the data in the table.  P(X = x) = 1/6 for x = 1, 2, 3, 4, 5, 6 8A

Discrete Random Variables H H H Discrete Random Variables Three fair coins are tossed. The number of heads is counted. a) Draw the sample space for this experiment.  This shows all possibilities b) Show this as a Probability Distribution  The table summarises the Probabilities c) Show this as a Probability Function  This summarises the table. It is common practice to include a ‘0’ probability at the bottom. H H T These Probabilities will always add up to 1 H T H H T T T H H T H T T T H T T T b) No. Heads, x 1 2 3 P(X = x) 1/8 3/8 3/8 1/8 c) 8A

Discrete Random Variables You will need to be able to calculate missing values, based on the Probabilities adding up to 1. a) Find the value of k in the table opposite b) Complete the missing values in the table, based on the value of k. x 1 2 3 4 5 P(X = x) 0.2 k 0.1 0.2 3k 0.2 + k + 0.1 + 0.2 + 3k = 1 Group together like terms 4k + 0.5 = 1 - 0.5 4k = 0.5 ÷ 4 k = 0.125 x 1 2 3 4 5 P(X = x) 0.2 0.125 0.1 0.2 0.375 8A

Discrete Random Variables You will need to be able to calculate missing values, based on the Probabilities adding up to 1. A tetrahedral (4 sided) dice is numbered 1, 2, 3 and 4. The probability of it landing on a given side is k/x, where k is constant. a) Draw the Probability Distribution of P(X = x), in terms of k. b) Calculate the value of k x 1 2 3 4 P(X = x) k/1 k/2 k/3 k/4 Make the denominators equal Now you can group them x 12 ÷ 25 8A

Discrete Random Variables You will need to be able to calculate missing values, based on the Probabilities adding up to 1. A tetrahedral (4 sided) dice is numbered 1, 2, 3 and 4. The probability of it landing on a given side is k/x, where k is constant. a) Draw the Probability Distribution of P(X = x), in terms of k. b) Calculate the value of k c) Draw the finished Probability Distribution x 1 2 3 4 P(X = x) k/1 k/2 k/3 k/4 x 1 2 3 4 P(X = x) 12/25 6/25 4/25 3/25 Half of 12/25 12/25 ÷ 3 12/25 ÷ 4 8A

Teachings for Exercise 8B

Discrete Random Variables Probability of multiple values A discrete random variable X has the Probability Distribution to the right Calculate: a) b) c) d) x 1 2 3 4 5 6 P(X = x) 0.1 0.2 0.3 0.25 0.05 ‘Probability X is bigger than 1 and less than 5’ ‘Probability X is bigger than or equal to 2 and less than or equal to 4’ ‘Probability X is bigger than 3 and less than or equal to 6’ ‘Probability X is less than 3’ 8B

Discrete Random Variables Probability of multiple values You can also find the Cumulative Distribution Function.  If a value for X is x, the Probability that X is less than or equal to x is written as F(x).  F(x) can be calculated by adding together probabilities that are equal to or less than x. It can be included in the Probability Distribution table. You should see that F(x) = 1 for the highest value of x x 1 2 3 4 5 6 P(X = x) 0.1 0.2 0.3 0.25 0.1 0.05 F(x) 0.1 0.3 0.6 0.85 0.95 1 Add the probabilities as you go along ‘The probability of X being less than or equal to 1 is 0.1’ So F(1) = 0.1 ‘The probability of X being less than or equal to 4 is 0.85’ F(4) = 0.85 8B

Discrete Random Variables The Possibilities Probability of multiple values Two fair coins are tossed. X is the number of heads showing on the coins. Draw up a sample space and then a Probability Distribution table. Include the Cumulative Distribution Function. HH HT TH TT No. heads, x 1 2 P(X = x) 0.25 0.5 0.25 F(x) 0.25 0.75 1 8B

Discrete Random Variables 3 is the highest value Probability of multiple values A discrete random variable X has a Cumulative Distribution Function F(x) defined by: a) Find the value of k. b) Draw the Cumulative Distribution Function table. c) What is the value of F(2.6)? Use x = 3 x 8 - 3 x 1 2 3 F(x) 6/8 7/8 1 ‘Probability X is less than or equal to 2.6’ 8B

Discrete Random Variables x 1 2 3 Probability of multiple values A discrete random variable X has a Cumulative Distribution Function F(x) defined by: To the right is the Cumulative Distribution Function from the previous question. a) Calculate the Probability Distribution F(x) 6/8 7/8 1 P(X = x) 6/8 1/8 1/8 The first value is always the same To get from 6/8 to 7/8, we added 1/8 To get from 7/8 to 1, we added 1/8 8B

Teachings for Exercise 8C

Discrete Random Variables Calculating the Expected value The table shows the number of television sets per household, in a survey of 100. a) Calculate the mean for this data No. sets 1 2 3 Frequency 10 75 5 8C

Discrete Random Variables Calculating the Expected value The table shows the number of television sets per household, in a survey of 100. a) Calculate the mean for this data b) Draw the probability distribution for X where X is the number of TV sets for a house picked at random. c) Calculate E(X), the expected value of X. No. sets 1 2 3 Frequency 10 75 5 Mean = 1.1 sets x 1 2 3 p(x) 0.1 0.75 0.1 0.05 xp(x) 0.75 0.2 0.15 E(X) is sometimes called ‘the mean of X’ 8C

Discrete Random Variables Calculating the Expected value If we know the probability distribution for a variable X, we can calculate the expected value of X The expected value is not necessarily a value which is possible It is effectively the mean of the distribution (this will become clearer as we do some questions) Notation ‘The expected value of x’ ‘The sum of (x multiplied by the probability of x)’ 8C

Discrete Random Variables x 1 2 3 4 P(X = x) 12/25 6/25 4/25 3/25 Finding the expected value of x In order to calculate Standard Deviation in these types of question, we need to see how to work out E(X2). a) Find the value of E(X) 8C

Discrete Random Variables The random variable X has the following probability distribution. a) Given that E(X) = 3, write down 2 equations involving p and q. x 1 2 3 4 5 p(x) 0.1 p 0.3 q 0.2 All the probabilities add up to 1 Group together the numbers Subtract 0.6 8C

Discrete Random Variables The random variable X has the following probability distribution. a) Given that E(X) = 3, write down 2 equations involving p and q. x 1 2 3 4 5 p(x) 0.1 p 0.3 q 0.2 Work out each bracket Group numbers Subtract 2 8C

Discrete Random Variables The random variable X has the following probability distribution. a) Given that E(X) = 3, write down 2 equations involving p and q. b) Use your equations to find the values of p and q. x 1 2 3 4 5 p(x) 0.1 0.3 p 0.3 0.1 q 0.2 1 2 x 2 3 4 4 - 3 8C

The Variance of X x 1 2 3 4 P(X = x) 12/25 6/25 4/25 3/25 The Variance of a set of data, X, is given by; ‘The expected value of X2 subtract the expected value of X, squared’ a) Calculate E(X) and E(X2) for the following set of data… 8C

Discrete Random Variables x 1 2 3 4 x2 9 16 P(X = x) 12/25 6/25 4/25 3/25 x 1 2 3 4 P(X = x) 12/25 6/25 4/25 3/25 Finding the expected value of x2 In order to calculate Standard Deviation in these types of question, we need to see how to work out E(X2). a) Find the value of E(X) b) Calculate E(X2) Note that E(X2) IS NOT E(X) squared! 8C

Discrete Random Variables The Variance of X The Variance of a set of data, X, is given by; ‘The expected value of X2 subtract the expected value of X, squared’ 8D

Discrete Random Variables x 1 2 3 4 x2 9 16 P(X=x) 1/3 1/6 The Variance of X The Variance of a set of data, X, is given by; ‘The expected value of X2 subtract the expected value of X, squared’ a) Calculate E(X) and E(X2) for the following set of data…  E(X) = 2 1/6 8D

Discrete Random Variables x 1 2 3 4 x2 9 16 P(X=x) 1/3 1/6 The Variance of X The Variance of a set of data, X, is given by; ‘The expected value of X2 subtract the expected value of X, squared’ a) Calculate E(X) and E(X2) for the following set of data…  E(X) = 2 1/6  E(X2) = 5 5/6 8D

Discrete Random Variables x 1 2 3 4 x2 9 16 P(X=x) 1/3 1/6 The Variance of X The Variance of a set of data, X, is given by; ‘The expected value of X2 subtract the expected value of X, squared’ a) Calculate E(X) and E(X2) for the following set of data…  E(X) = 2 1/6  E(X2) = 5 5/6 b) Calculate the Variance of X  1.14 (2dp) 8D

Teachings for Exercise 8E

Discrete Random Variables Calculating E(X) and Var(X) for functions of X A rule relating E(X) and E(aX + b) is; So whatever the value in front of X is.. … Multiply E(X) by that amount And whatever the value of b is… … Add it on afterwards 8E

Discrete Random Variables Calculating E(X) and Var(X) for functions of X A rule relating Var(X) and Var(aX + b) is; So whatever the value in front of X is.. … Multiply Var(X) by the square of that amount And whatever the value of b is… Ignore it as it will not affect the spread of data… 8E

Discrete Random Variables E(3X)  Multiply E(X) by 3  12 Calculating E(X) and Var(X) for functions of X A random variable X has E(X) = 4, and Var(X) = 3 Calculate: a) E(3X) b) E(X – 2) c) Var(3X) d) Var (X - 2) e) E(X2) b) E(X - 2)  Subtract 2 from E(X)  2 c) Var(3X)  Multiply Var(X) by 32  27 = 12 = 2 = 27 d) Var(X - 2)  Do nothing as it will not affect spread…  3 = 3 8E

Discrete Random Variables Calculating E(X) and Var(X) for functions of X A random variable X has E(X) = 4, and Var(X) = 3 Calculate: a) E(3X) b) E(X – 2) c) Var(3X) d) Var (X - 2) e) E(X2) Add 16 = 12 = 2 = 27 = 3 = 19 8E

Discrete Random Variables x 10 20 Longer Example Question Two fair 10p coins are tossed. The random variable X represents the value of the coins that land heads up. a) Calculate E(X) and Var(X)  E(X) = 10 x2 100 400 P(X=x) 1/4 1/2 1/4 When the data is symmetrical, E(X) is just the middle value! 8E

Discrete Random Variables x 10 20 Longer Example Question Two fair 10p coins are tossed. The random variable X represents the value of the coins that land heads up. a) Calculate E(X) and Var(X)  E(X) = 10  E(X2) = 150 x2 100 400 P(X=x) 1/4 1/2 1/4 8E

Discrete Random Variables x 10 20 Longer Example Question Two fair 10p coins are tossed. The random variable X represents the value of the coins that land heads up. a) Calculate E(X) and Var(X)  E(X) = 10  E(X2) = 150  Var(X) = 50 x2 100 400 P(X=x) 1/4 1/2 1/4 8E

Discrete Random Variables S = X – 10 E(S) = E(X) – 10 E(S) = 10 – 10 E(S) = 0 Longer Example Question Two fair 10p coins are tossed. The random variable X represents the value of the coins that land heads up. a) Calculate E(X) and Var(X)  E(X) = 10  E(X2) = 150  Var(X) = 50 b) Two random variables S and T are defined as follows… S = X – 10 T = 1/2X – 5 Show that E(S) = E(T) T = 1/2X – 5 E(T) = 1/2E(X) – 5 E(T) = (1/2 x 10) – 5 E(T) = 0 8E

Discrete Random Variables S = X – 10 Var(S) = Var(X) Var(S) = 50 Longer Example Question Two fair 10p coins are tossed. The random variable X represents the value of the coins that land heads up. a) Calculate E(X) and Var(X)  E(X) = 10  E(X2) = 150  Var(X) = 50 b) Two random variables S and T are defined as follows… S = X – 10 T = 1/2X – 5 c) Find Var(S) and Var(T) T = 1/2X – 5 Var(T) = (1/2)2Var(X) Var(T) = (1/4)Var(X) Var(T) = 12.5 E(S) and E(T) were the same for both, so on average both will give the same overall result… Var(S) is bigger than Var(T), so results for S will be more varied… 8E