Defining the Variables
Let X be the number of heads obtained by friend A, and Y be the number of heads obtained by friend B. Since each person tosses three fair coins, the possible values for both X and Y are {0,1,2,3}.
We utilize the Binomial Probability formula to determine the likelihood of each outcome:
P(X=r)=(r3)(21)3=8(r3)
Calculating Individual Probabilities
Given that the probability of heads p is 1/2 and tails q is 1/2, we calculate the probability for each possible value of r:
For r=0: P(X=0)=8(03)=81
For r=1: P(X=1)=8(13)=83
For r=2: P(X=2)=8(23)=83
For r=3: P(X=3)=8(33)=81
The Master Equation for P(X=Y)
The event X=Y occurs if both friends obtain the same number of heads. Because A and B are independent, the probability of a joint event is the product of their individual probabilities.
We express the total probability as:
P(X=Y)=P(X=0)P(Y=0)+P(X=1)P(Y=1)+P(X=2)P(Y=2)+P(X=3)P(Y=3)
Since the distributions are identical, this simplifies to the sum of the squares:
Final Calculation
Substituting our calculated values into the summation:
P(X=Y)=(81)2+(83)2+(83)2+(81)2
P(X=Y)=641+649+649+641=6420
By simplifying the fraction 6420 by a factor of 4, we arrive at the final result:
P(X=Y)=165