You take eight cards - two 2's, two 3's, two 4's, and two 5's - and form a deck. You shuffle the deck and randomly reveal cards one at a time until you have two that match.
What is the expected number of cards you will need to reveal to get a matching pair?
3.54
3.66
3.72
3.83
3.91
let X be the number oif cards to be taken:
P(X=2) =P(first and 2nd both are same) =(8/8)*(1/7) =1/7
P(X=3) =P(First 2 are different and 3rd is same)=(8/8)*(6/7)*(2/6)=2/7
P(X=4)=(8*6*4*3)/(8*7*6*5)=12/35
P(X=5) =P(first 4 are different) =(8*6*4*2)/(8*7*6*5)=8/35
therefore expected cards E(x)=2*1/7+3*2/7+4*12/35+5*8/35=3.66
You take eight cards - two 2's, two 3's, two 4's, and two 5's - and...
If you take a deck of 2n playing cards, cut it into two stacks of n and interleave them, you have performed a perfect shuffle. Example: for the six-card deck [1 2 3 4 5 6]T , the result is [4 1 5 2 6 3]T (note that the top card of the second stack goes on top. Write down the matrix A2n for a perfect shuffle of 2n cards when 2n=10 and 2n=12. How many times must you (perfectly)...
If you take a deck of 2n playing cards, cut it into two stacks of n and interleave them, you have performed a perfect shuffle. Example: for the six-card deck [1 2 3 4 5 6]T , the result is [4 1 5 2 6 3]T (note that the top card of the second stack goes on top. Write down the matrix A2n for a perfect shuffle of 2n cards when 2n=10 and 2n=12. How many times must you (perfectly)...
Suppose that you randomly draw one card from a standard deck of 52 cards. After writing down which card was drawn, you place the card back in the deck, shuffle the deck, and draw another card. You repeat this process until you have drawn 12 cards in all. What is the probability of drawing at least 5 hearts? For the experiment above, let XX denote the number of hearts that are drawn. For this random variable, find its expected value...
13. [3] You shuffle a deck of playing cards and the chance you get a diamond card is 0.25. You repeat this process 200 times, putting the card back each time, and out of those 200 attempts you get 57 diamond cards. This demonstrates a. The law of large numbers b. The law of averages 14. [3] You shuffle a deck of playing cards and the chance you get a diamond card is 0.25. You repeat this process times, putting...
please help me answer this question please. the first two pictures
are questions please help. then the table and the graph pictures
are provided to help answer
here are the directions if you need to know what
happened
1. Did the host or the parasite win the game? Explain The 2. The Red Queen Hypothesis predicts that host-parasite coevolution maintains genetic variation. Was this prediction met for the host population? For the parasite population? What evolutionary forces were responsible for...
Programming Langaue(Python 3) Define a function deal that will shuffle and distribute the 52 playing cards evenly to two players (26 each) and return a tuple of each player's hand (as a list of values). The function does not need to take in any arguments, and should create the deck of values internally (i.e., you should not need to input the deck of values into the function; you may reuse the statement you developed for part 6.1). You may assume...
answer in basic C++ this is for a intro class no adavanced stuff
past iostream, strings,ctime,functions,arrays all the basics please
12:48 くCSC 2000 W19 Project 02 ビ Problem 0I: Memory Game (30 points) Children often play a memory game in which a deck of cands contaiing muching pairs is used The cards are shuffled and placed face down on a table The plnrs tn te us and select two cards at a time If both cards match, they arc lei...
(Card Shuffling and Dealing) Modify the program below so that the card-dealing function deals a five-card poker hand. Then write the following additional functions: a) Determine whether the hand contains two pairs b) Determine whether the hand contains a full house (i.e., three of a kind with pair). c) Determinewhetherthehandcontainsastraight flush (i.e.,fivecardsofconsecutivefacevalues). d) Determine whether the hand contains a flush (i.e., five of the same suit) #include <stdio.h> #include <stdlib.h> #include <time.h> #define SUITS 4 #define FACES 13 #define CARDS...
Deck of Cards Program I need help printing a flush, which is showing the top 5 cards of the same suite. Below is the code I already have that answers other objectives, such as dealing the cards, and finding pairs. Towards the end I have attempted printing a flush, but I cannot figure it out. public class Shuffler { /** * The number of consecutive shuffle steps to be performed in each call * to each sorting...