返回题库

涂色立方体:看见 5 个无色面时有 1 个涂色面的概率

Colorless Sides

专题
Probability / 概率
难度
L4

题目详情

一个 3×3×3 大立方体外表面都被涂成蓝色,然后切成 27 个 1×1×1 小立方体。

随机取出一个小立方体并放置,你能看到它的 5 个面且都没有颜色(底面看不到)。求该小立方体“恰好有 1 个涂色面”的概率。

A 3×3×33\times3\times3 cube that is colored blue on the outside is cut into 2727 1×1×11\times1\times1 smaller cubes. You randomly select a cube from the 2727 and see 5 sides without any color. Calculate the probability that the cube has one colored side?

解析

“恰好 1 个涂色面”的小立方体共有 6 个(每个大面中心)。设事件 BB 为“可见 5 面无色”,事件 CC 为“恰好 1 个涂色面”。

  • P(C)=6/27=2/9P(C)=6/27=2/9
  • P(BC)=1/6P(B\mid C)=1/6(唯一涂色面必须朝下)。
  • P(B)P(B) 来自两类:中心块(概率 1/271/27,且必满足)与 1 涂色面块(概率 2/92/9,且以 1/61/6 满足),所以
P(B)=127+2916=227.P(B)=\frac{1}{27}+\frac{2}{9}\cdot\frac{1}{6}=\frac{2}{27}.

因此

P(CB)=P(BC)P(C)P(B)=1629227=12.P(C\mid B)=\frac{P(B\mid C)P(C)}{P(B)}=\frac{\frac{1}{6}\cdot\frac{2}{9}}{\frac{2}{27}}=\frac{1}{2}.

Original Explanation

We can update the probability the chosen cube has a colored side given that we know 55 sides are not painted. Using Bayes theorem, Let BB be the event that the five sides of the cube shown are blank and let CC be the event of the cube having exactly one colored side. Then we have

P[CB]=P[BC]P[C]P[B]\mathbb{P}[C \mid B] = \dfrac{\mathbb{P}[B \mid C]\cdot\mathbb{P}[C]}{\mathbb{P}[B]}

If the cube has a colored side, there's a 16\frac{1}{6} chance that the painted side is not showing. Thus P[BC]=16\mathbb{P}[B \mid C] = \frac{1}{6}. Also note that there are 66 cubes that have only one painted face out of 2727. Thus P[C]=627=29\mathbb{P}[C] = \frac{6}{27} = \frac{2}{9}. Finally, the probability we have a cube that shows five unpainted sides is 1629\frac{1}{6}\cdot\frac{2}{9} from the cubes with one painted side and 11271\cdot\frac{1}{27} from the center cube with no painted sides. Therefore, considering everything together we get

P[CB]=P[BC]P[C]P[B]=16291629+1127=12\mathbb{P}[C \mid B] = \dfrac{\mathbb{P}[B \mid C]\cdot\mathbb{P}[C]}{\mathbb{P}[B]} = \dfrac{\frac{1}{6}\cdot\frac{2}{9}}{\frac{1}{6}\cdot\frac{2}{9}+1\cdot\frac{1}{27}}=\dfrac{1}{2}