Presentation on theme: "DISCRETE & RANDOM VARIABLES. Discrete random variable A discrete random variable is one which may take on only a countable number of distinct values such."— Presentation transcript:
DISCRETE & RANDOM VARIABLES
Discrete random variable A discrete random variable is one which may take on only a countable number of distinct values such as 0, 1, 2, 3, 4,... Discrete random variables are usually (but not necessarily) counts. If a random variable can take only a finite number of distinct values, then it must be discrete. Examples of discrete random variables include the number of children in a family, the Friday night attendance at a cinema, the number of patients in a doctor's surgery, the number of defective light bulbs in a box of ten.
Relative frequency The only way to get an estimate of the probability is to throw the sticks many times and find what we call the: –relative frequency –Q Can be different each time why? –If the stick is thrown 100 times and the results are: –Flat side up: 70 giving an estimate probability of 0.7 –Curved side up: 30 giving an estimate probability of 0.3 Number of flat sides up Score51234
Listing possibilities: have a system f c fffc cf cc fffffc fcf fcc cff cfc ccf ccc fffffffc ffcf ffcc fcff fcfc fccf fccc cfff cffc cfcf cfcc ccff ccfc cccf cccc 1 stick 2 sticks 3 sticks
Working out probabilities: f c fffc cf cc fffffc fcf fcc cff cfc ccf ccc fffffffc ffcf ffcc fcff fcfc fccf fccc cfff cffc cfcf cfcc ccff ccfc cccf cccc 1 stick 2 sticks 3 sticks Each stick falls independently, f=0.7c=0.3 1 x P(f,f,f,f) = 0.7 x 0.7 x 0.7 x 0.7= = x P(f,f,f,c)= x 0.3 x 4= 6 x P(f,f,c,c)=0.7 2 x x 6 = 4 x P(f,c,c,c) = 0.7 x x 4 = 1 x P(c,c,c,c) = =
Relative frequency The score is an example of discrete random variable. –Let S stand for score. Capital letters are used for random variables. –P(S=3) means ‘the probability that S=3 –P(S=3) = Number of flat sides up Score51234 s.12345P(S=s) Probability function Note s is used for individual values of the random variable S
P(X=x) as a stick/bar graph
TASK Exercise A – Page 53 & 54 Questions: 1, 2, 3, 5 & 6 Do rest at home.
Mean, variance and standard deviation If I were to throw times, I could work out the mean like the below. Multiply each of my probabilities by and then divide by s P(S=s) Probability function
Mean, variance and standard deviation However, multiplying and dividing by both top and bottom seems unnecessary and it is s P(S=s) Probability function
MEAN of: Discrete random Variables Mean S =Σs x P(S=s) The mean of a random variable is usually denoted by μ (‘mu’) Task B1, B2
VARIANCE Mean = 0x x x x x0.1=1.9 x01234 P(X=x) Probability function x x-μ (x-μ) 2 P(X=x) (x-μ) 2 x P(X=x)
Variance & Standard deviation x x-μ (x-μ) 2 P(X=x) (x-μ) 2 x P(X=x) Variance = σ Standard deviation = σ 1.22 The standard deviation or random variables is normally denoted as σ
TASK Page 56 question 2 Homework – test yourself