freeCodeCamp/guide/chinese/mathematics/die-rolling-probability/index.md

19 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Die Rolling Probability
localeTitle: 模具滚动概率
---
## 模具滚动概率
我们最初会考虑单个模具,我们知道这是公平的。一个公平的模具是这样一种模具,当你滚动时,所有六个面都有相同的可能性。
由于有**6个**边,这意味着任何特定方面面朝上的可能性为**1/6** 。这种概率通常写为分数因此为1/6。使用P侧面来表示特定面朝上的概率P我们可以说
P1= P2= P3= P4= P5= P6= 1/6。
假设我们现在采取2个公平的骰子。由于模具1的六个侧面中的每一个可以与模具2的六个侧面中的每一个面朝上显示因此存在6×6 = 36种不同的可能性因此发生任何组合的机会是1/36。
如果我们在掷骰子时看到骰子的顺序无关紧要我们必须仔细查看概率。例如3和5可以在模具1上显示为3在模具1上显示5 **或**在模具1上显示5在模具2上显示32种组合因此我们可以说P3,5或5,3 = 1/36 + 1/36 = 1/18。
如果显示的总和是最重要的我们必须查看构成我们感兴趣的总和的所有面部组合。例如假设我们想知道总和为7的概率。知道7 = 1 + 6 **或** 6 + 1 **或** 2 + 5 **或** 5 + 2 **或** 3 + 4 **或** 4 + 36种组合使Psum = 7为1/36 + 1/36 + 1 / 36 + 1/36 + 1/36 + 1/36 = 6 \* 1/36 = 6/36或1/6。
练习滚动两个公平骰子时获得总和为5的概率是多少 2的总和怎么样