当前位置:网站首页>概率论的学习整理--番外1:可重复且无次序的计数公式C(n+k-1,k) 的例题 : 同时丢3个骰子,会有多少种情况?答案不是216而是56!
概率论的学习整理--番外1:可重复且无次序的计数公式C(n+k-1,k) 的例题 : 同时丢3个骰子,会有多少种情况?答案不是216而是56!
2022-07-30 11:28:00 【奔跑的犀牛先生】
总结:题目理解
- 同时丢3个骰子,3个骰子同时丢,其结果是不能分辨出骰子的次序的,这样可能的情况是6*6*6=216
- 所以也可以等价视为,丢1个骰子,实验3次,但是这样的实验可以记录次序,所以要去掉排序。所以是要从上面的6*6*6=216里去重后才可以。
- 所以可以套用公式 C(n+k-1,k)
- n就是6个随机实验结果,k是实验次数3 ,因为这些实验结果允许重复,但是不排序
骰子例题 : 同时丢3个骰子,会有多少种情况?答案不是216而是56!
为什么
错误:6*6*6=216, 错误原因,3个骰子会出现很多重复的组合
正确:56
直接用公式 C(n+k-1,k)=56
| 算法1 | 216 | 重复出现次数 | 去重后次数 | |||
| 3个一样的 | 6 | 1 | P(3,0) | 6 | ||
| 包含对子的 | 90 | 3 | P(3,1) | 30 | ||
| 3个都不同 | 120 | 6 | P(3,3) | 20 | ||
| 56 | ||||||
| 有对子的概率 | ||||||
| 错--包含对子的 | 30 | 3 | P(3,1) | 10 | ||
| 对--包含对子的 | 90 | 3 | P(3,1) | 30 | ||
| 紫色字体的15种*6=90 | ||||||
| 因为2个数相同 6*1没错,然后6*1*5没错 | ||||||
| 但是不相同的那个数字有p3,3种放法 | ||||||
- 3个一样的 =6*1*1,不重复
- 包含对子的 =6*1*5*PERMUT(3,1),重复出现
- 3个都不同 =6*5*4,重复出现
- 验证结果和直接用公式 C(n+k-1,k)=56

扩展
骰子例题 : 同时丢4个骰子,会有多少种情况?答案不是1296而是126!
| 算法1 | 1296 | 重复出现次数 | 去重后次数 | ||
| 4个一样的 | 6 | 1 | P(3,0) | 6 | |
| 包含3个一样的 | 120 | 4 | P(4,1) | 30 | |
| 包含2个对子的 | 90 | 6 | P(3,1) | 15 | |
| 包含1个对子的 | 720 | 12 | P(3,1)*P(2,1) | 60 | |
| 4个都不同 | 360 | 24 | P(4,4) | 15 | |
| 126 | |||||
- 4个一样的 =6*1*1*1
- 包含3个一样的 =6*1*1*5*PERMUT(4,1)
- 包含2个对子的 =6*1*5*1*PERMUT(3,1) ,先有1个对子后,剩下1对整体放,还有3个位置
- 包含1个对子的 =6*1*5*PERMUT(3,1)*4*PERMUT(2,1) ,先有1个对子后,还有3个位置放1个,再2个位置放1个
- 4个都不同 =6*5*4*3

边栏推荐
- Underwater target detection method based on spatial feature selection
- AB test summary
- 《跟唐老师学习云网络》 - 问题定位 - 主机通但容器不通
- "Learning Cloud Networking with Teacher Tang" - Problem Location - The host is working but the container is not working
- feign远程调用时如何在请求头加入数据
- Based on sliding mode control of uncertain neutral system finite time stable
- 牛客-TOP101-BM42
- 云原生应用的概念和云原生应用的 15 个特征
- 淘宝/天猫淘宝评论问答列表接口 API
- contentDocument contentWindow, canvas, svg, iframe
猜你喜欢

Explain the problem of change exchange in simple terms - the shell of the backpack problem

2022-07-29 Gu Yujia Study Notes Exception Handling

电压继电器HDY-A/1-220VAC-1

Difference between C# enumeration type and xaml

Summary of text alignment, line height, space, etc.

【ASP.NET Core】选项类的依赖注入

Beyond Stream Processing!The 4th real-time computing Flink challenge is launched, and 490,000 prizes are waiting for you!

嵌入式环境下并发控制与线程安全

物联网技术概论:第6章

周鸿祎:微软抄袭了360安全模式 所以成为美国最大的安全公司
随机推荐
基于加权灰色关联投影的Bagging-Blending多模型融合短期电力负荷预测
Performance testing of API Gateway APISIX on Google Cloud T2A and T2D
LCD1602 display experiment developed by single chip microcomputer
Reverse linked list - recursive inversion method
明德扬FPGA开发板XILINX-K7核心板Kintex7 XC7K325 410T工业级
mapbox-gl开发教程(十四):画圆技巧
Jingdong school recruited written test questions + summary of knowledge points
HJY-F931A/YJ three-phase voltage relay
Underwater target detection method based on spatial feature selection
stm32 RTC闹钟唤醒低功耗模式
高能产出!腾讯内部的MyCat中间件手册,理论实操齐下
LeetCode_236_二叉树的最近公共祖先
分布式限流 redission RRateLimiter 的使用及原理
Digital input and output module DAM-5088
基于时延估计的扰动卡尔曼滤波器外力估计
C语言 — 位运算操作
基于MySQL数据库,Redis缓存,MQ消息中间件,ES搜索引擎的高可用方案解析
The method of judging the same variable without the if branch
TensorFlow自定义训练函数
The use and principle of distributed current limiting reduction RRateLimiter