Coin toss simulation test
Ältere Kommentare anzeigen
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 Kommentar
per isakson
am 20 Jan. 2022
Bearbeitet: per isakson
am 20 Jan. 2022
One way
vec = randi([0,1],1,1000);
number_of_heads = sum( vec );
number_of_tails = 1000 - number_of_heads
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Noncentral t Distribution finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!