由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 在线急问概率问题.多谢!!!
相关主题
怎样在data step跳过格式不对的data record?format statement
如何根据cdf(比较复杂,不能求微分)求其pdfWhat is wrong with following code?
请知道Birch's Theorem 的人进来帮帮我R能处理多大的数据集?
[合集] 请教SAS 问题!问三题SAS Base的题目
[合集] SAS问题求助-如何把普通变量的值传递给宏变量请教 SAS macro function 的问题
[合集] 怎么找统计的猎头啊?遇到一个SAS问题
虚心请教How to compare two correlations in SAS?
help in sas[合集] help please! A sas question
相关话题的讨论汇总
话题: choose话题: 20304话题: bottle话题: 20300话题: 药片
进入Statistics版参与讨论
1 (共1页)
k****n
发帖数: 98
1
急问:
A 药片 和 B 药片形状, 色泽一样.
一批量A 药片出产, 一共20300片. 有四片B 药片混入其中. AB 一共20304片.
A 药片装瓶, 30 片每瓶. 四片B 药片全部装入一瓶的概率是多少?
多谢!
L*******i
发帖数: 1126
2
C26 /C30
20300/20304
m******i
发帖数: 9479
3
(30 choose 4) *(4/20304)^4*(20300)^26

【在 k****n 的大作中提到】
: 急问:
: A 药片 和 B 药片形状, 色泽一样.
: 一批量A 药片出产, 一共20300片. 有四片B 药片混入其中. AB 一共20304片.
: A 药片装瓶, 30 片每瓶. 四片B 药片全部装入一瓶的概率是多少?
: 多谢!

D*********Y
发帖数: 3382
4
这是要装几瓶啊?不整除啊
a**j
发帖数: 60
5
this is a typical hypergeometric distribution. sampling without replacement
answer is very simple
(20300 choose 26)*(4 choose 4)/(20304 choose 30)
a**j
发帖数: 60
6
(20304 choose 30) is the counts for whole sampling space
(20300 choose 26)*(4 choose 4)is the counts for "30 片每瓶. 四片B 药片全部
装入一瓶"
n**********e
发帖数: 45
7
Are you sure it is right?
Simple example: A=4, B=2, 3 tablets/bottle
(4 choose 1)*(2 choose 2) / (6 choose 3) = 4/(5*4)=1/5
the answer should be 2/5
in general, let N=counts/bottle, the result seems to be:
p(B all in a bottle) = ((N-1) choose (B-1))/( (A+B-1) choose (B-1))

【在 a**j 的大作中提到】
: (20304 choose 30) is the counts for whole sampling space
: (20300 choose 26)*(4 choose 4)is the counts for "30 片每瓶. 四片B 药片全部
: 装入一瓶"

a****r
发帖数: 1486
8
答案就是1/5,你可以做个simulation看看。

【在 n**********e 的大作中提到】
: Are you sure it is right?
: Simple example: A=4, B=2, 3 tablets/bottle
: (4 choose 1)*(2 choose 2) / (6 choose 3) = 4/(5*4)=1/5
: the answer should be 2/5
: in general, let N=counts/bottle, the result seems to be:
: p(B all in a bottle) = ((N-1) choose (B-1))/( (A+B-1) choose (B-1))

s*********i
发帖数: 8
9
难道这个不是只装一瓶药,4片都装进去的概率吗?实际情况是所有的药都装瓶,4片装
入其中任意一瓶的概率。总瓶数是[20304/30]=677,四片药都装入一瓶的概率是(677
,1)/(677,4)=7.8e-8

replacement

【在 a**j 的大作中提到】
: this is a typical hypergeometric distribution. sampling without replacement
: answer is very simple
: (20300 choose 26)*(4 choose 4)/(20304 choose 30)

n**********e
发帖数: 45
10
why simulation?
A=4, B=2, N=3
p(B in a bottle)
= p(pick 3 out of A+B, 2 are B) + p(pick 3 out of A+B, none is B)
= (2/6)*(1/5)*3 + (4/6)*(3/5)*(2/4)
=2/5
isn't it?

【在 a****r 的大作中提到】
: 答案就是1/5,你可以做个simulation看看。
相关主题
[合集] 怎么找统计的猎头啊?format statement
虚心请教What is wrong with following code?
help in sasR能处理多大的数据集?
进入Statistics版参与讨论
a**j
发帖数: 60
11
算一下
(20300 choose 26)*(4 choose 4)/(20304 choose 30)
不难吧?
why to simulate?
((20300x...x(20300-26))/26!)/((20304x...x(20304-30))/30!)
=(30x29x28x27)/(20304x20303x20302x20301)
=3.87x10^(-12)
a****r
发帖数: 1486
12
你不觉得你这两个events,是重复的吗?
试试解释一下,“pick 3 out of A+B, 2 are B” 和 “pick 3 out of A+B, none is
B”的区别是什么?

【在 n**********e 的大作中提到】
: why simulation?
: A=4, B=2, N=3
: p(B in a bottle)
: = p(pick 3 out of A+B, 2 are B) + p(pick 3 out of A+B, none is B)
: = (2/6)*(1/5)*3 + (4/6)*(3/5)*(2/4)
: =2/5
: isn't it?

c**********e
发帖数: 2007
13
Standard solution:
676*30*29*28*27/20304/20303/20302/20301 + 24*23*22*21/20304/20303/20302/
20301.
Or: 676*(30 select 4)/(20304 select 4) + (24 select 4)/(20304 select 4)
Numerically: 2.61841633*20^(-9).
This is the standard answer.
n**********e
发帖数: 45
14
This gives the same answer as I gave before:
(29 choose 3)/(20303 choose 3)

【在 c**********e 的大作中提到】
: Standard solution:
: 676*30*29*28*27/20304/20303/20302/20301 + 24*23*22*21/20304/20303/20302/
: 20301.
: Or: 676*(30 select 4)/(20304 select 4) + (24 select 4)/(20304 select 4)
: Numerically: 2.61841633*20^(-9).
: This is the standard answer.

n**********e
发帖数: 45
15
??
These are different events: randomly pick 3 from the A+B pool, you get 2B+1A
in one case and 3A in the other. I don't understand your question

is

【在 a****r 的大作中提到】
: 你不觉得你这两个events,是重复的吗?
: 试试解释一下,“pick 3 out of A+B, 2 are B” 和 “pick 3 out of A+B, none is
: B”的区别是什么?

c**********e
发帖数: 2007
16
You would be right if the total is divisible by 30, say 20310.

【在 n**********e 的大作中提到】
: This gives the same answer as I gave before:
: (29 choose 3)/(20303 choose 3)

c**********e
发帖数: 2007
17
This is the probability that all 4 in a specific bottle, say the 1st bottle.
Need to time 677 approximately.

replacement

【在 a**j 的大作中提到】
: this is a typical hypergeometric distribution. sampling without replacement
: answer is very simple
: (20300 choose 26)*(4 choose 4)/(20304 choose 30)

a****r
发帖数: 1486
18
You are right.
如果假设有m个A,n个B,每个bottle有k个A 和/或 B,一共有p个bottle可以选择,而
要求B都在一个瓶子里,假设n <= k
(p choose 1) × (m choose m-k)/ (m+n choose k)

1A

【在 n**********e 的大作中提到】
: ??
: These are different events: randomly pick 3 from the A+B pool, you get 2B+1A
: in one case and 3A in the other. I don't understand your question
:
: is

1 (共1页)
进入Statistics版参与讨论
相关主题
[合集] help please! A sas question[合集] SAS问题求助-如何把普通变量的值传递给宏变量
[合集] sas 日期的转换[合集] 怎么找统计的猎头啊?
problem in R again ... sorry虚心请教
如何计算normal distribution function的cdf numerically?help in sas
怎样在data step跳过格式不对的data record?format statement
如何根据cdf(比较复杂,不能求微分)求其pdfWhat is wrong with following code?
请知道Birch's Theorem 的人进来帮帮我R能处理多大的数据集?
[合集] 请教SAS 问题!问三题SAS Base的题目
相关话题的讨论汇总
话题: choose话题: 20304话题: bottle话题: 20300话题: 药片