字典中保存频次,计算并 print proportions of each colour here.
Jump to turn (8)
- 1字典中保存频次,计算并 print proportions of each colour here.
- 2{'Blue': 6, 'Green': 3, 'Orange': 8, 'Red': 6, 'Yellow': 2} 计算各个颜色出现的概率
- 3现在选择一种特定的糖果颜色。规则如下:选择你最喜欢的M&M颜色,该颜色在你的样本中至少出现3次或更多次。在下面的标记单元格中,命名您将要选择的糖果颜色。
- 4根据上文哦
- 5根据上面,仅打印蓝色的概率。并且,print the proportion of times a random draw (with replacement)
- 6打印随机抽取(带替换)给你M&M颜色的次数比例(提示:上面已经打印过了,所以在下面的代码单元格中,我们想知道如何从字典中打印你选择的颜色)。
- 7If I eat my first blue M&M, what will that do to the total number of M&Ms in my
- 8Start by reminding ourselves about what the varaibles are. These are our origina
- User
字典中保存频次,计算并 print proportions of each colour here.
- Assistant
Sorry, I cannot complete this task without the input dictionary containing the colors and their corresponding frequencies. Please provide the input dictionary for me to proceed.
- User
{'Blue': 6, 'Green': 3, 'Orange': 8, 'Red': 6, 'Yellow': 2} 计算各个颜色出现的概率
- Assistant