Biostatistics(7)概率與概率分布

3.3 概率分布

3.3.1 離散型隨機(jī)變量

若隨機(jī)變量的取值為有限個(gè)或可列個(gè)薪棒,則稱(chēng)此隨機(jī)變量為離散型(discrete)隨機(jī)變量手蝎,簡(jiǎn)稱(chēng)離散量
比如你拋擲一枚硬幣兩次俐芯,那么結(jié)果只有4種可能性:
HH棵介,HT,TH和TT(H:正面吧史;T:反面)
如果用一個(gè)隨機(jī)變量X表示該試驗(yàn)中出現(xiàn)H結(jié)果的次數(shù)鞍时,那么X只有0,1,2三種可能。因此扣蜻,X為離散型隨機(jī)變量逆巍。具體地:
P(X=0)=0.25
P(X=1)=0.5
P(X=2)=0.25
P(X):Probability Distribution Function(PDF) of variable X 為X的概率分布律,滿足下列性質(zhì):

P(X).png
3.3.2 連續(xù)型隨機(jī)變量

對(duì)于隨機(jī)變量X莽使,若存在一個(gè)非負(fù)的實(shí)函數(shù)f(x)锐极,使X落在任意區(qū)域D上的概率
則稱(chēng)為X的連續(xù)型隨機(jī)變量,簡(jiǎn)稱(chēng)連續(xù)量芳肌,稱(chēng)f(x)為X的概率密度函數(shù)灵再,簡(jiǎn)稱(chēng)密度肋层。
由定義知,密度函數(shù)具有以下性質(zhì):
(1)f(x)≥0
(2)

連續(xù)變量.png

(3)

連續(xù)變量.png

離散型變量和連續(xù)型變量的總結(jié):

Summary.png

Mean and variance for discrete variable with a given PDF

PDF.png
Mean.png
Variance.png
3.3.3 0-1(p)分布
0-1分布.png

E(X)=1×p+0×(1-p)=p
Var(X)=E(X2)-(E(X))2=(12×p+02×(1-p))-p2=p-p2=p(1-p)

3.3.4 貝努里分布 Bernoulli distribution

定義:在n次獨(dú)立重復(fù)的試驗(yàn)中翎迁,每次試驗(yàn)都只有兩個(gè)結(jié)果:A,A‘,且每次試驗(yàn)中A發(fā)生的概率不變栋猖,記P(A)=p,0<p<1汪榔,稱(chēng)這一系列試驗(yàn)為n重貝努里(Bernoulli)試驗(yàn)蒲拉。
在n重貝努里試驗(yàn)中,若記事件A發(fā)生的概率為P(A)=p痴腌,0<p<1雌团,設(shè)X為在n次試驗(yàn)中A發(fā)生的次數(shù),則:

PDF of Bernoulli distribution.png

E(x)=E(x1+x2+...+xn)=E(x1)+E(x2)+...+E(xn)=p+p+...+p=np
Var(x)=Var(x1+x2+...+xn)=Var(x1)+Var(x2)+...+Var(xn)=p(1-p)+p(1-p)+...+p(1-p)=np(1-p)

Example of a Binomial distribution
When a fair coin is flipped, the probability of it being Head or Tail is the same, i.e.,p=0.5.
If we flip the coin 5 times, what is the probability of having 5 Head?

Answer.png

Example of a Binomial distribution
After a genome wide Chip-seq experiment, a transcription factor was found to bind to the promoter region of 100 genes(out of 26,000). Now, if we do another experiment with a second TF and identify also 100 genes, what is the probability of finding at least 5 of them with the first TF binding site?
Suppose the first TF binds to gene without any preference, then the probability of a gene randomly selected from the genome that is bound by the first TF is 100/26000=0.039
For a given gene, it is either bound by the first TF('success') or not ('failure'),i.e.,a Bernoulli trail.
If the second TF is independent of the first TF, then the number of genes bound by the second TF that are also bound by the first TF follows a binomial distribution.
Binomial distribution:n=100,p=0.0039
P(k=0)=0.6765408
P(k=1)=0.2648840
P(k=2)=0.05133606
P(k=3)=0.006565821
P(k=4)=0.0006233937
P(k>=5)=1-P(k=0)-P(k=1)-P(k=2)-P(k=3)-P(k=4)=4.992756e-05

3.3.5 負(fù)貝努里分布 Negative Binomial distribution

定義:實(shí)驗(yàn)包含一系列獨(dú)立的試驗(yàn)士聪,每個(gè)試驗(yàn)都有成功锦援、失敗兩種結(jié)果,成功的概率p是恒定的剥悟,實(shí)現(xiàn)持續(xù)到r次成功灵寺,r為正整數(shù)。滿足上述條件的稱(chēng)為負(fù)貝努里分布区岗。

PDF of Negative Binomial Distribution.png

Mean and Variance of Negative Binomial Distribution

Negative Binomial Distribution.png
Mean and Variance.png

Alternative formulation of Negative Binomial distribution

Negative Binomial distribution.png

Example of negative binomial distribution
If a predator must capture 10 prey before it can grow large enough to reproduce, what would the mean age of onset of reproduction be if the probability of capturing a prey on any given day is 0.1?

Answer.png

The expected time is 100 days. However, the variance is quite high (900) and that the distribution looks quite skewed. Some predators will reach reproductive age much sooner and some much later than the average.

3.3.6 幾何分布 Geometric distribution

定義:在n次貝努里試驗(yàn)中略板,試驗(yàn)k次才得到第一次成功的機(jī)率。即躏尉,前k-1次皆失敗蚯根,第k次成功的概率。

Geometric distribution.png

Example of geometric distribution
If the probability of extinction of an endangered population is estimated to be 0.1 every year, what is the expected time until extinction?

Answer.png

The expected time is 10 year. However, because of large variance, it will be difficult to predict the actual year in which the population go to extinct accurately.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末胀糜,一起剝皮案震驚了整個(gè)濱河市颅拦,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌教藻,老刑警劉巖距帅,帶你破解...
    沈念sama閱讀 222,729評(píng)論 6 517
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異括堤,居然都是意外死亡碌秸,警方通過(guò)查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 95,226評(píng)論 3 399
  • 文/潘曉璐 我一進(jìn)店門(mén)悄窃,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)讥电,“玉大人,你說(shuō)我怎么就攤上這事轧抗《鞯校” “怎么了?”我有些...
    開(kāi)封第一講書(shū)人閱讀 169,461評(píng)論 0 362
  • 文/不壞的土叔 我叫張陵横媚,是天一觀的道長(zhǎng)纠炮。 經(jīng)常有香客問(wèn)我月趟,道長(zhǎng),這世上最難降的妖魔是什么恢口? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 60,135評(píng)論 1 300
  • 正文 為了忘掉前任孝宗,我火速辦了婚禮,結(jié)果婚禮上耕肩,老公的妹妹穿的比我還像新娘因妇。我一直安慰自己,他們只是感情好看疗,可當(dāng)我...
    茶點(diǎn)故事閱讀 69,130評(píng)論 6 398
  • 文/花漫 我一把揭開(kāi)白布沙峻。 她就那樣靜靜地躺著睦授,像睡著了一般两芳。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開(kāi)封第一講書(shū)人閱讀 52,736評(píng)論 1 312
  • 那天,我揣著相機(jī)與錄音拱撵,去河邊找鬼闰靴。 笑死,一個(gè)胖子當(dāng)著我的面吹牛芦劣,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 41,179評(píng)論 3 422
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼特咆,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來(lái)了录粱?” 一聲冷哼從身側(cè)響起腻格,我...
    開(kāi)封第一講書(shū)人閱讀 40,124評(píng)論 0 277
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎啥繁,沒(méi)想到半個(gè)月后菜职,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 46,657評(píng)論 1 320
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡旗闽,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,723評(píng)論 3 342
  • 正文 我和宋清朗相戀三年酬核,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片适室。...
    茶點(diǎn)故事閱讀 40,872評(píng)論 1 353
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡嫡意,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出捣辆,到底是詐尸還是另有隱情蔬螟,我是刑警寧澤,帶...
    沈念sama閱讀 36,533評(píng)論 5 351
  • 正文 年R本政府宣布罪帖,位于F島的核電站促煮,受9級(jí)特大地震影響邮屁,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜菠齿,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 42,213評(píng)論 3 336
  • 文/蒙蒙 一佑吝、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧绳匀,春花似錦芋忿、人聲如沸。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 32,700評(píng)論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)。三九已至是尔,卻和暖如春殉了,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背拟枚。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 33,819評(píng)論 1 274
  • 我被黑心中介騙來(lái)泰國(guó)打工薪铜, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人恩溅。 一個(gè)月前我還...
    沈念sama閱讀 49,304評(píng)論 3 379
  • 正文 我出身青樓隔箍,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親脚乡。 傳聞我的和親對(duì)象是個(gè)殘疾皇子蜒滩,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,876評(píng)論 2 361