Chapter 1. Question 26

Two cards are drawn successively from a deck of 52 cards. Find the probability that the second card is higher in rank than the first card. Hint: Show that 1 = P(higher) + P(lower) + P(same) and use the fact that P(higher) = P(lower).

total_cards <- 52
prob_same <- 1/total_cards
prob_higher_lower <- 1 - prob_same
prob_higher <- prob_higher_lower / 2

print(prob_higher)
## [1] 0.4903846