Professional Documents
Culture Documents
Year :
Page 1 of 5
a)
Random numbers that are one-digit are from 0 -------> 9 [ten integer numbers].
Because the coin is fair, then the probability of head equal to the probability of tail =
50% , Means “P(Head)=50% & P(Tail)=50% “.
Means that , the random numbers that indicate to head are five numbers (50%) , say :
0,1,2,3,4 and the random numbers that indicate to tail are the other five numbers
which are: 5,6,7,8,9.
H -----> 0, 1, 2, 3, 4 0.5
T -----> 5, 6, 7, 8, 9 0.5
Then:-
Page 2 of 5
Error = Theoretical prob - Simulated prob * 100
Theoretical prob
Conclusion :-
Page 3 of 5
Unfair Coin
b)
Random numbers that are one-digit are from 0 -------> 9 [ten integer numbers].
Because the coin is unfair, then the probability of head isn’t equal to the probability
of tail , then from the given probability the probability of head = 70 % , because the
probability of tail = 30 % ( given ).
Then let the random numbers that indicate to head are seven numbers (70%) , say :
(0,1,2,3,4,5,6) and the random numbers that indicate to tail are the other three
numbers which are: (7,8,9).
H -----> 0, 1, 2, 3 , 4 , 5 , 6 0.7
T -----> 7, 8, 9 0.3
Then:-
- Error of tail = 33.33 % which means that the probability of tail decreased by 33.33
% , because the theoretical probability = 0.3 and then after compute simulated
probability it become = 0.2 then it decreased ( 0.3 → 0.2 ) , means also the simulated
probability is smaller than theoretical probability.
Page 5 of 5