Final answer:
The probability that a student chosen randomly from the class plays basketball or baseball is 62.5%.
Step-by-step explanation:
To calculate the probability that a student chosen randomly from the class plays basketball or baseball, we can use the principle of inclusion-exclusion. Here, we start with the number of students playing basketball (9) and add the number of students playing baseball (13), then subtract the number of students who play both sports (7) to avoid double counting. This gives us the total number of students who play at least one of the two sports.
The formula is:
Probability = (Number playing basketball + Number playing baseball - Number playing both) / Total number of students.
Applying the formula:
Probability = (9 + 13 - 7) / 24
= 15 / 24
= 0.625.
Therefore, the probability that a student chosen randomly from this class plays basketball or baseball is 0.625 or 62.5%.