You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Compute the estimated average number of coin tosses (or dice throws) to get a given sequence of Heads-and-Tails (or a sequence of intergers ranging from 1 to 6)
The inputs are:
- The Sequence (row vector)
- The Number of Monte-Carlo Simulations
The outputs are the estimated (Monte-Carlo) expectation of number of tosses/throws to get the input sequence, along with the standard deviation of the error (due to the randomness of the simulation)
Cite As
Rodolphe Sitter (2026). Coin And Dice (https://nl.mathworks.com/matlabcentral/fileexchange/23448-coin-and-dice), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Kernel Smoothing Regression
General Information
- Version 1.0.0.0 (1.52 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
