Discrete Mathematics Math 6A Homework 5 Solution.

Slides:



Advertisements
Similar presentations
Números.
Advertisements

1 A B C
Variations of the Turing Machine
AP STUDY SESSION 2.
1
EuroCondens SGB E.
& dding ubtracting ractions.
Addition and Subtraction Equations
Brain Buster Math What fraction tells how many crayons are out of
Probability of Independent Events
David Burdett May 11, 2004 Package Binding for WS CDL.
We need a common denominator to add these fractions.
Create an Application Title 1Y - Youth Chapter 5.
CALENDAR.
Who Wants To Be A Millionaire? Mrs Mances Edition.
Year 5 Term 3 Unit 6b Day 1.
What are your Chances? by Laurie Townsend.
The 5S numbers game..
Discrete Probability Rosen 5.1.
Biostatistics Unit 5 Samples Needs to be completed. 12/24/13.
Workshop Series for YISD Teachers of 6 th Grade Math Workshop Series for YISD Teachers of 6 th Grade Math Conceptual Understanding.
1 Combination Symbols A supplement to Greenleafs QR Text Compiled by Samuel Marateck ©2009.
1 Econ 240A Power Three. 2 Summary: Week One Descriptive Statistics –measures of central tendency –measures of dispersion Distributions of observation.
Chris Morgan, MATH G160 January 30, 2012 Lecture 9 Chapter 4.1: Combinations 1.
Lecture 18 Dr. MUMTAZ AHMED MTH 161: Introduction To Statistics.
5-1 Chapter 5 Probability 1.
Break Time Remaining 10:00.
The basics for simulations
Factoring Quadratics — ax² + bx + c Topic
Turing Machines.
PP Test Review Sections 6-1 to 6-6
MM4A6c: Apply the law of sines and the law of cosines.
Probability Key. You are given a standard deck of 52 playing cards, which consists of 4 suits: diamonds, hearts, clubs, and spades. Each suit has 13 cards.
Tucker, Applied Combinatorics1 SECTION 5.2 Simple Arrangements and Selections Aaron Desrochers and Ben Epstein.
2000 Deitel & Associates, Inc. All rights reserved. Chapter 16 – Bits, Characters, Strings, and Structures Outline 16.1Introduction 16.2Structure Definitions.
MAT 103 Probability In this chapter, we will study the topic of probability which is used in many different areas including insurance, science, marketing,
Who Wants To Be A Millionaire? Mrs Mance’s Edition.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Biology 2 Plant Kingdom Identification Test Review.
Chapter 1: Expressions, Equations, & Inequalities
40S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Probability Lesson: PR-L1 Intro To Probability Intro to Probability Learning Outcome B-4 PR-L1.
Adding Up In Chunks.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
Artificial Intelligence
REVIEW FOR 1st NW TEST 6.19, 6.1, 6.2, 6.4, 6.6, 6.16.
Before Between After.
: 3 00.
5 minutes.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Quit Introduction Cards Combining Probabilities.
1 Let’s Recapitulate. 2 Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Types of selection structures
Converting a Fraction to %
Clock will move after 1 minute
famous photographer Ara Guler famous photographer ARA GULER.
& dding ubtracting ractions.
Copyright © 2013 Pearson Education, Inc. All rights reserved Chapter 11 Simple Linear Regression.
Physics for Scientists & Engineers, 3rd Edition
Select a time to count down from the clock above
Completing the Square Topic
1.step PMIT start + initial project data input Concept Concept.
9. Two Functions of Two Random Variables
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
ICS 253: Discrete Structures I Discrete Probability King Fahd University of Petroleum & Minerals Information & Computer Science Department.
ICS 253: Discrete Structures I
Presentation transcript:

Discrete Mathematics Math 6A Homework 5 Solution

5.1-6 There are 16 cards that qualify as being an ace or a heart, so The prob. that a card selected from a deck is an ace or a heart = 16/ We have to choose five cards. That is, two pairs and another card that is not the same number with two pairs. There are four kinds of card and each kind has 13 cards. So the total number of cards is 52(=13*4) For example, we can choose 1 heart + 1 diamond + 2 heart + 2 diamond + another number that is not the same with 1 or 2 among four kinds. There are C(13,2)*C(4,2)*C(4,2)*(52-8) = 78*6*6*44=123,552 different hands. Since each hand is equally likely, and there are C(52,5) = 2,598,960 different hands. Therefore, the probability of holding two pairs is 123,552/ 2,598, A "straight flush" means choosing a consecutive five cards of the same kind among the four kinds. For example, we can choose 12345, 23456,..., 10,J,Q,K,A that is 10 ways for choosing the straight flush. So there are 10*4 straight flushes. Therefore, the prob. to choose the straight flush is 40/C(52,5) = 1/64974 Note: 10,J,Q,K,A is actually "Royal Straight Flush", but we count this as a straight flush for this problem. Note: From the J,Q,K,A,1 or Q,K,A,1,2 or etc are NOT the straight flush !

First, we need to select exactly one of the correct six integers among the n numbers and the order does not matter. There are C(n,6) possible choices to pick the correct six integers and we need to select one of C(n,6). Second, there are n-6 incorrect integers and we need to select rest of five incorrect integers among the C(n-6,5). Third, there are six ways to choose exactly one correct integers among the six correct integers. So the prob. of selecting exactly one of the correct six integers is 6{C(n-6,5)/C(n,6)} a)if n=40, then prob. is 6{C(40-6,5)/C(40,6)} = 6{C(34,5)/C(40,6)}= / b)if n=48, then prob. is 6{C(48-6,5)/C(48,6)} = 6{C(42,5)/C(48,6)}= / c)if n=56, then prob. is 6{C(56-6,5)/C(56,6)} = 6{C(50,5)/C(56,6)}= / d)if n=64, then prob. is 6{C(64-6,5)/C(64,6)} = 6{C(58,5)/C(64,6)}= / people for a contestant and different winners are selected randomly. First, there are three ways for one of K, J, and P to be picked to win first prize, two ways for one of the others to win second prize, and one way for the third to win third prize. Second, with the same logic above, there are 100 ways to pick as the first prize, and 99 ways to pick as the second prize and 98 ways to pick as the third prize. Therefore, prob. is (3*2*1)/(100*99*98) = 1/161700

First, there are four ways to get a total of 9 when two dice are rolled: (6,3), (5,4), (4,5), (3,6) So, the prob. of getting of 9 is 4/(6^2). Second, there are 26 ways to get a total of 9 when three dice are rolled: (6,2,1), (6,1,2) and (5,3,1), (5,2,2), (5,1,3) and (4,4,1), (4,3,2), (4,2,3), (4,1,4) and (3,5,1),(3,4,2),(3,3,3), (3,2,4),(3,1,5) and (2,6,1),(2,5,2),(2,4,3),(2,2,5),(2,5,2),(2,3,4),(2,1,6) and (1,6,2),(1,5,3),(1,4,4),(1,3,5),(1,2,6) So the prob. getting of 9 is 26/(6^3). Therefore, three dice is more likely First, you had a ¼ chance of winning with your original selection. Second, Your chance of winning after switching is half of ¾, that is 3/8

5.2-5 First, probabilities for 4 appears on the first die is 2/7 and 3 appears on the second dies is 2/7 and other outcomes for each die appear is 1/7. Second, there are six ways to roll a sum of 7: (1,6),(2,5),(3,4),(4,3),(5,2),(6,1) where (i,j) means rolling i on the first die and j on the second. p((1,6)) = 1/7*1/7=1/49, p((2,5)) = 1/7*1/7=1/49, p((3,4)) = 1/7*1/7=1/49, p((4,3)) = 2/7*2/7=4/49, p((5,2)) = 1/7*1/7=1/49, p((6,1)) = 1/7*1/7=1/49 and sum of above probs. is 9/ {1,2,3,4} a)We can simply think that there are only 1 and 4 and we don't have to think about 3 and 4. So in this case, 14 or 41 so the Prob.(1 precedes 4) = ½ b)With the same logic with a), so the Prob.(4 precedes 1) = ½ c)Prob.(4 precedes 1 and 2) = 1/3, because the same concept with a) and b), so just think about the permutation of three numbers that is, 412 and just put the 4 in the first position of the three possible positions d)Prob.(4 preceds1,2 and 3) = ¼, just put the 4 in the first position in possible four positions e)Prob.(4 precedes 3 AND 2 precedes 1) = Prob.(4 precedes 3)* Prob.(2 precedes 1)=1/2*1/2=1/4 because 4 and 2 are not related with each other, that is independent.

p(E)=0.8 and p(F)=0.5 Cleary p(E  F) >= p(E) = 0.8. Also, p(E  F) = We assume for simplicity here that births are independent and the probability of a birth in each day is 1/7 (a)The prob. that the second person has the same birth day-of-the-week as the first person is 1/7, that is p(two people were born on the same day of the week) = 1/7 (b)The prob. that all the birth days-of-the-week are different is p_n= 6/7*5/7*...(8-n)/7 since each person after the first must have a different birth day-of-the-week from all the previous people in the group. Note that if n>=8, then p_n=0 since the seventh fraction is 0 (this also follows from the pigeonhole principle). The prob. that at least two are born on the same day of the week is therefore 1-(p_n) (c)We compute 1-(p_n) for n=2,3,... and find that the first time this exceeds ½ is when n=4(if n=4 then 1-(p_n) >= ½), so that is our answer. With four people, the prob. that at least two will share a birth day-of-the-week is 1-(6/7*5/7*4/7) = 223/343, or about 65%

By def3. The conditional prob. of E given F is p(E|F) = p(E  F)/p(F) Flipping the coins five times: number of trials p(F)= 16, the first flip came up heads (10000~11111 among 2^5=32: ~11111, if 1=head and 0=tail) p(E)= 4, excatly four heads appear p(E|F) = p(E  F)/p(F) = 4/16 = ¼ The prob. that a family with five children does not have a boy, if the sexes of children are independent and if (a)If a boy and a girl are equally likely, then the prob. is (½)^5 = 1/32 (b)If the prob. of a boy is 0.51, then the prob. of a girl is 0.49, so (0.49)^5  (c)If the prob. that the ith child is a boy is 0.51-(i/100), then p(1) = /100, p(2) = /100,..., p(5) = /100 1-p(1) * 1-p(2) *...* 1-p(5) = 0.50*0.51*0.52*0.53*0.54  0.038

Two dice rolling, the observer informs at least one of the dice came up six. (a)prob. of sum is seven, given the inform. provided by the honest observer. p(E) is sum 7 p(F) is at least one dice came up 6 and p(F) = (6^2 – 5^2) /6^2 = 11/36 p(E  F) = 2/36 (1,6) and (6,1) Therefore, the answer p(E|F) = (2/36)/(11/36) = 2/11 (b) Suppose that the honest observer tells us that at least one die came up five. Then the analysis is exactly the same as in part (a), so the answer is again 2/11 p(E) is sum 7 p(F) is at least one dice came up 5 and p(F) = (6^2 – 5^2) /6^2 = 11/36 p(E  F) = 2/36 (2,5) and (5,2) Therefore, the answer p(E|F) = (2/36)/(11/36) = 2/11