Step 1 :The sample space of rolling two dice is all the possible outcomes of rolling two dice. There are 6 faces on a die, so there are \(6 \times 6 = 36\) possible outcomes when rolling two dice.
Step 2 :To find the probability of getting a sum of 5, we need to find all the outcomes in the sample space that sum to 5. These are (1,4), (2,3), (3,2), (4,1). So there are 4 outcomes that sum to 5.
Step 3 :The probability of an event is the number of favorable outcomes divided by the total number of outcomes. So the probability of getting a sum of 5 when rolling two dice is \(\frac{4}{36} = \frac{1}{9}\).
Step 4 :Final Answer: The probability of getting a sum of 5 when rolling two dice is \(\boxed{\frac{1}{9}}\).