Question

In: Math

The group of interest contains everything that isn’t the unwanted group. For this example, the spades,...

The group of interest contains everything that isn’t the unwanted group. For this example, the spades, clubs, and diamonds would be the group of interest. However, the hearts would not be in the grouping because they do not want a heart in the hand being dealt.

Show using R for i and j

  1. Find the probability in question (hand does not contain a heart).
  1. Find the probability of having no more than 4 hearts in a hand.

Solutions

Expert Solution

count1=0
#count1 denotes 1 if the card is from the hearts
count2=0
#count2 denotes the no of hearts in a hand
count3=0
#count3 is the samples in fever of i
count4=0
#count3 is the samples in fever of j
for(i in 1:10000)
{
   for(j in 1:13)
   {
#generating 13 random numbers from uniform(0,1)
       x=runif(13)
#let's consider the card is heart if the random number is less than 0.25
#We can do this because both have the same probability(=1/4)
       if(x[j]<.25)
       {
           count1=1
       }
       if(count1==1) count2=count2+1
       count1=0
   }
   if(count2<1) count3=count3+1
   if(count2<=4) count4=count4+1
   count2=0
}
cat("probability that a hand doesn't contain a heart is ",count3/10000,"\n")
cat("probability that a hand doesn't contain more than 4 heart is ",count4/10000,"\n")

RESULT:-

probability that a hand doesn't contain a heart is 0.0241
probability that a hand doesn't contain more than 4 heart is 0.7952


Related Solutions

A corporate bond has a nominal interest rate of 13%. The bond isn’t very liquid, and...
A corporate bond has a nominal interest rate of 13%. The bond isn’t very liquid, and thus has a 2% liquidity premium. The bond is rated B, and therefore has a default risk premium of 2.5%. The bond is also due in 20 years, which results in a maturity risk premium of 1.5%.. Open to all (a) compute the nominal interest rate on a long-term Treasury bond _________ (b) what is the real rate of return on the Treasury bond...
Everything else being the same, what is the effect of an increase in interest rates on...
Everything else being the same, what is the effect of an increase in interest rates on the price level? Discuss the process of adjustment to the new equilibrium.
Identify the group or period that contains the noble gases. period 2 group 8A group 7A...
Identify the group or period that contains the noble gases. period 2 group 8A group 7A group 6A period 1 period 3 Identify the group or period that contains B, N, and F period 1 group 7A period 2 group 6A group 8A period 3 Drag the appropriate elements to their respective bins. S Ne Si Ag Hg Metals Metalloids (semimetals) Nonmetals
Choose an Interest Group _________________ What circumstances caused this interest group to form? When did they...
Choose an Interest Group _________________ What circumstances caused this interest group to form? When did they form? What is its history? What incentives (solidary, material, or purposive) does this group offer members? What type (economic, environmental, etc.) of interest group is it? Why? What makes this interest group powerful (i.e. size and resources, leadership, cohesiveness, etc.)? What congressperson(s) has/have this interest group supported? Why? What bill(s) has this interest group been successful in influencing and/or opposing?
You have been given a solution that contains a Group I, a Group II, and a...
You have been given a solution that contains a Group I, a Group II, and a Group III cation. · Develop a qualitative analysis scheme for these cations by selecting reagents and conditions for reactions. · Write the balanced net reaction for each cation reaction.
In your own words, please define the term interest group. How is an interest group different...
In your own words, please define the term interest group. How is an interest group different from a political party? What does it mean when an interest group endorses a political candidate?
What is an orbit of a group action? Give an example of a group action on...
What is an orbit of a group action? Give an example of a group action on a set with 10 elements with exactly two orbits.
Everything costs money. Give an example of how economic considerations play a role in urban planning....
Everything costs money. Give an example of how economic considerations play a role in urban planning. Would the plan be equally successful without the economic considerations in the planning process? Why or why not?
define group risks in project management with an example
define group risks in project management with an example
What is the difference between group norms and group cohesiveness? Give a simple example of each...
What is the difference between group norms and group cohesiveness? Give a simple example of each concept.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT