20/6/1435 h Sunday Lecture 11 Jan
Mathematical Expectation مثا ل قيمة Y 13 المجموع P(y)3/41/41 Y p(y)3/4 6/4
Variance of a random Variable V(X) = E(X 2 ) – [E(X)] 2 Q: In an experiment of tossing a fair coin three times observing the number of heads x find the varianc of x: الحل S = { HHH, HHT, HTH, THH, TTT, HT, TTH, HTT } X 9410X2X2 1/83/8 1/8F(X)
SOLUTION: V(X) = E(X 2 ) – [E(X)] 2 V(X) = E(X 2 ) – [E(X)] 2 3 E(X 2 )=0(1/8) + 1(3/8) + 4(3/8) + 9(1/8) = 24/8 = 3 E(X) = ∑ X.F(X) 1.5= ( E(X)=0 (1/8) + 1( 3/8 )+ 2(3/8 )+ 3(1/8 V(X) = 3-(1.5) 2 = 3-(2.25) = 0.75
In an experiment of rolling two fair dice, X is defined as the sum of two up faces Q: Construct a probability distribution table مثا ل (1,6)(1,5)(1.4)(1,3)(1,2)(1,1)1 (2,6)(2,5)(2,4)(2,3)(2,2)(2,1)2 (3,6)(3,5)(3,4)(3,3)(3,2)(3,1)3 (4,6)(4,5)(4,4)(4,3)(4,2)(4,1)4 (5,6)(5,5)(5,4)(5,3)(5,2)(5,1)5 (6,6)(6,5)(6,4)(6,3)(6,2)(6,1)6 Elements of the sample space = 6 2 = 36 elements X is a random variable defined in S The range of it is {2,3,4,……….,11,12}
قيمة X P(X =x) 1/362/363/364/365/366/365/364/363/362/361/36 What is the probability that X= 4 i.e what is the probability that the sum of the two upper faces =4
Q: Show if the following table is a probability distribution table? If yes calculate the mathematical expectation (mean) of X مثا ل قيمة X المجموع
Vocabulary factorial permutation combination Insert Lesson Title Here Course Permutations and Combinations
Course 3 Factorial The factorial of a number is the product of all the whole numbers from the number down to 1. The factorial of 0 is defined to be 1. 5! ! = Read 5! as “five factorial.” Reading Math
Evaluate each expression. Example 1 Course 3 A. 9! = 362,880 8! 6! Write out each factorial and simplify. 8 7 = 56 B. Multiply remaining factors.
Example 2 Course 3 Subtract within parentheses = ! 7! 6 5 4 3 2 1 C. 10! (9 – 2)!
Evaluate each expression. Example 3 Course 3 A. 10! = 3,628,800 7! 5! Write out each factorial and simplify. 7 6 = 42 B. Multiply remaining factors.
Example 4 Course 3 Subtract within parentheses = 504 9! 6! 5 4 3 2 1 C. 9! (8 – 2)!
Course Permutations and Combinations Permutation Q: What is a permutation? A permutation is an arrangement of things in a certain order. first letter ? second letter ? third letter ? 3 choices2 choices1 choice The product can be written as a factorial = 3! = 6
Course 3 By definition, 0! = 1. Remember! Q: Write a general formula for permutation
Jim has 6 different books. Example 1 Course 3 Find the number of orders in which the 6 books can be arranged on a shelf ! (6 – 6)! = 6! 0! = = 6 P 6 = The number of books is 6. The books are arranged 6 at a time. There are 720 permutations. This means there are 720 orders in which the 6 books can be arranged on the shelf.
Course 3 Combinations A combination is a selection of things in any order. Q:Define Combination?
Course Permutations and Combinations
Example 1 Course 3 If a student wants to buy 7 books, find the number of different sets of 7 books she can buy. 10 possible books 7 books chosen at a time 10! 7!(10 – 7)! = 10! 7!3! 10 C 7 = ( )(3 2 1) = = 120 There are 120 combinations. This means that Mary can buy 120 different sets of 7 books.
Course 3 A student wants to join a DVD club that offers a choice of 12 new DVDs each month. If that student wants to buy 4 DVDs, find the number of different sets he can buy. 12 possible DVDs 4 DVDs chosen at a time 12! 4!(12 – 4)! = 12! 4!8! = ( )( ) 12 C 4 = = 495
مثا ل Q: Calculate the number of ways, we can choose a group of 4 students from a class of 15 students
Jan
Discrete probability distributions The binomial distribution The Poisson distribution Normal Distribution
The binomial distribution Suppose that n independent experiments, or trials, are performed, where n is a fixed numer, and that each experiment results in „success” with probability p and a „failure” with probability q=1-p. The total number of successes, X, is a binomial random variable with parameters n and p.
Q: Write a general format for the binomial distribution?.
Q:Write a general formula for the mathematical expectation and the variance 1.The expected value is equal to: 2.and variance can be obtained from:
Examples For a long time it was observed that the probability to achieve your goal is 0.8.If we shoot four bullets at a certain target, find these probabilities:- 1. Achieving a goal twice f(x) = c n x p x q n-x Given that,x=2 p = 0.8, n=4 = 1-p q =1-0.8 = 0.2 f(2)= c 4 2 p 2 q ) 2 (0.2))4! 2!2!
!(0.64)(0.4) = !2! 2. Achieving the goal at least twice المطلوب: p(x>=2) = f(2) + f(3)+ f(4) = = c 4 3 (0.8) 3 (0.2)+ c 4 4 (0.8) 4 (0.2) 0 OR: P(x>=2) = 1- p(x<2) = 1- [f(0) +f(1)]
. Example 2 In a class containing 20 students, if 90% of students who registered in a statistic course were passed, what is the probability that at least 2 students will fail n = 20, p = 0.1, q= 0.9 f(x) = c n x p x q n-x X = 0,1,2 ………20 calculate P(x>=2) or 1-p(x<2) = 1 – [P(0)+ P(1) ] = 1- [f(0) + f(1)] 1-[c 20 0 (0.1) 0 ( )] + [c 20 1 (0.1) 1 (0.9) 9 ]