第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

F-test 和 t- test 小總結(jié)

標(biāo)簽:
大數(shù)據(jù)

Data Science Day 21: F -test and t-test

From last time we know t-test is used for comparing the mean of 2-level categorical variable and ANOVA is used for comparing the mean value of a 3-level categorical variable or more.

Question:

However, there is a question bugs me, why both T-test and ANOVA are comparing the mean value, but** one P-value comes from the t-test and the other P-value is derived from the F-test**?



[caption id="attachment_1249" align="alignnone" width="300"]

webp

image

Pexels / Pixabay[/caption]

I did a bit research into this and discussed with little Rain, then we found out the key relation to answer is the equivalence of F and t-test.

Answer:

F= t^{2}

webp

image

The hidden reason is when pair of the sample are normally distributed then the ratios of variance of sample in each pair will always follow the same distribution. Therefore, the t-test and F-test generate the same p-values.

Example : F-test vs t-test in Blood pressure decrease dataset

We want to know if the blood pressure medication has changed the blood pressure for 15 patients after 6 months.

test=pd.DataFrame({"score_decrease": [ -5, -8, 0, 0, 0 ,2,4,6,8, 10,10, 10,18,26,32] })
center=pd.DataFrame({"score_remained": [ 0, 0, 0, 0, 0 ,0,0,0,0, 0,0, 0,0,0,0] })

webp

image

F-test results:

scipy.stats.f_oneway(score_decrease,score_remained)
F_onewayResult(statistic=array([ 7.08657734]), pvalue=array([ 0.01272079]))

t-test results:

scipy.stats.ttest_ind(score_decrease, score_remained)
Ttest_indResult(statistic=array([ 2.66206261]), pvalue=array([ 0.01272079]))

As we can see the F-test and t-test have the same P-value= 0.0127.

I used SAS to generate a graph:

ods graphics on; 
proc ttest h0=0 plots(showh0) sides=u alpha=0.05;var decrease;
run;
ods graphics off;

webp

image

Summary:

Except for F=t^2, I summarized a table for F-test and t-test.

t- test & F-test Assumption

  1. Observations are Independent and Random

  2. The population are Normally distributed

  3. No outliers

t-test Null-hypothesis:

The mean value of the two groups are the same.
The mean value = n0.

F-test Null hypothesis:

The mean value of three or more groups are the same.
N1=N2=N3…

t-test Features

The Standard deviation is not known and Sample size is small.
F-test Features:
The variance of the normal populations is not known.

t-test Application:

1.Compare mean value of two groups.
2.Compare mean value of a group with a particular number.

F-test Application:

  1. comparing the variances of two or more populations.

  2. ANOVA comparing the mean value of 3 or more groups.

Happy Studying!



作者:乌然娅措
链接:https://www.jianshu.com/p/9d82686aeff4


點(diǎn)擊查看更多內(nèi)容
TA 點(diǎn)贊

若覺得本文不錯(cuò),就分享一下吧!

評(píng)論

作者其他優(yōu)質(zhì)文章

正在加載中
  • 推薦
  • 評(píng)論
  • 收藏
  • 共同學(xué)習(xí),寫下你的評(píng)論
感謝您的支持,我會(huì)繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會(huì)直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊(cè)有機(jī)會(huì)得

100積分直接送

付費(fèi)專欄免費(fèi)學(xué)

大額優(yōu)惠券免費(fèi)領(lǐng)

立即參與 放棄機(jī)會(huì)
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

舉報(bào)

0/150
提交
取消