Recent content by keithsw1111
-
K
Undergrad Calculating Probability of Hand of n Cards from a Given Set
The reason you take 4 kings and 4 aces is because the question does not require them to be of a particular suit. As there are 4 kings in the pack and any of them are good enough the probability of getting a king is 4/52. If you only wanted say the king of clubs then the probability would be 1/52...- keithsw1111
- Post #11
- Forum: Set Theory, Logic, Probability, Statistics
-
K
Undergrad Calculating Probability of Hand of n Cards from a Given Set
The following code is psudocode is based loosely on Java/C#. It would never compile as it assumes some functions that the coder would need to supply but it should give you an idea of the algorithm // list_of_desired_suits is an order independent list of the suits we want the drawn cards to...- keithsw1111
- Post #8
- Forum: Set Theory, Logic, Probability, Statistics
-
K
Undergrad Calculating Probability of Hand of n Cards from a Given Set
The problem this and all other card probability answers I can find on the web have is they approach each problem as if they are unique problems to solve. In this example you took my example and turned it around to take advantage of a particular aspect of the example without addressing the more...- keithsw1111
- Post #7
- Forum: Set Theory, Logic, Probability, Statistics
-
K
Undergrad Calculating Probability of Hand of n Cards from a Given Set
I am trying to understand a general algorithm for calculating the probability of a hand of n cards drawn from a deck containing a given set of cards. Where the given set of cards is n in size it is easy. I am struggling when the number of cards specified is less than n. To make it easier to...- keithsw1111
- Thread
- Probability
- Replies: 10
- Forum: Set Theory, Logic, Probability, Statistics