Update examples and more information (#23437)
This commit is contained in:
@ -3,13 +3,20 @@ title: 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:
|
||||
<!-- 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)
|
||||
|
||||
|
Reference in New Issue
Block a user