Update examples and more information (#23437)

This commit is contained in:
anaasuncion
2018-11-23 18:04:24 -08:00
committed by Manish Giri
parent 06111e2eaf
commit 6eb660ba0b

View File

@ -3,13 +3,20 @@ title: Example All the Ways You Can Flip a Coin
--- ---
## Example All the Ways You Can Flip a Coin ## Example All the Ways You Can Flip a Coin
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/example-all-the-ways-you-can-flip-a-coin/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>. In the experiment of flipping a coin, the mutually exclusive outcomes are the coin landing either heads up or tails up.
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>. When we flip a coin a very large number of times, we find that we get half heads, and half tails. We conclude that the probability to flip a head is 1/2, and the probability to flip a tail is 1/2.
Consider the experiment of flipping of **n** coins where we can enumerate all possible outcomes as follows, where H indicates a head, and T a tail:
* **n = 1** | H T
* **n = 2** | HH HT TH TT
* **n = 3** | HHH THH HTH HHT TTH THT HTT TTT
* **n = 4** | HHHH THHH HHHT THHT HHTH THTH HHTT THTT HTHH TTHH HTHT TTHT HTTH TTTH HTTT TTTT
The formula for all possible outcomes of flipping n coins is 2 to the nth power.
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
#### More Information: #### More Information:
<!-- Please add any articles you think might be helpful to read before writing the article --> - [Theory of Probability](http://www.pas.rochester.edu/~stte/phy104-F00/notes-2.html)