Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Probability, Statistics, and Applications

3 vues (au cours des 30 derniers jours)
Khadija Sulail
Khadija Sulail le 22 Jan 2020
Clôturé : Rik le 31 Jan 2020
Perform the following experiment by writing a MATLAB program to simulate tossing a
fair coin. (You may want to use the MATLAB command
rand
or
randi
in order to
produce random outputs.) Simulate flipping the coin five times and observe the
number of heads. Then, repeat this experiment (that is, flipping the fair coin five times
and counting the number of heads) 10 times. Using the
equation
* in P
roblem
1,
determine the probability for
each of
k=0,1,2,3,4,5 heads. Based on this theoretical
result, what is the number of heads that is most probable for a single experiment? In
your 10 experiments which number of heads appeared most often? For 1000
repetitions of the experiment, what is the simulated probability of obtaining four heads
in five coin tosses? Compare your result to that obtained using the
equation
*.
(Problem
3 is an example of a Monte Carlo simulation, a computational simulation of a
random exp
eriment repeated many times to estimate the probability distribution of the
experimental outcomes. In this example, you performed the experiment 10 times and
then 1000 times. How many repetitions is “enough”? If you were performing such an
experiment in a
real
-world setting in which you did not know the theoretical
probability distribution before beginning the experiment, how might you determine
whether you have performed “enough” repetitions to uncover the true distribution?
  2 commentaires
Andrew Janke
Andrew Janke le 31 Jan 2020
You can't just post your homework questions here and expect to have people do them for you. Try working through the question yourself, and when you encounter issues, post questions about the specific problems you're having.
Rik
Rik le 31 Jan 2020
You can find guidelines for posting homework on this forum here.
Feel free to re-open and edit your question to resolve these issues.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by