Coin toss simulation test
이전 댓글 표시
Through the simulation, show that probability of getting HEAD by tossing a fair coin is about 0.5. Write your observation from the simulation run.
if possible please explain the steps as I am new
댓글 수: 1
One way
vec = randi([0,1],1,1000);
number_of_heads = sum( vec );
number_of_tails = 1000 - number_of_heads
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Noncentral t Distribution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!