Applied Nonparametric Statistics-lec3

來源:互聯網
上載者:User

標籤:orm   bin   lte   不能   使用   can   and   sid   use   

Ref:

https://onlinecourses.science.psu.edu/stat464/print/book/export/html/4

 

使用非參數方法的優勢:

1. 對總體分布做的假設少,所以總體分布未知也可以;

2. 容易做;

3. 一般對離群值更具魯棒性robust;

4. 適用於資料中包含ranks, ordinal or categorical的。

 

In a skewed distribution, the population median, η, is a better typical value than the population mean μ.

Sign-test / Binomial-test:

下面是一個執行個體:

這個執行個體,我們先用t-test。做的假設是,資料為常態分佈,所以使用t-statistics,檢驗的是均值μ。

然後,考慮到資料是有偏的,我們使用中值median,然後用sign-test。

Solution:這樣計算的機率是p值。如此,我們不能拒絕原假設。

當資料量大時: 

If np ≥ 10 and n(1 - p)  ≥ 10, we can use the Normal distribution to approximate the Binomial. 

然後可以使用z-score。注意,此時方差和均值的取值。後面假設檢驗的部分與lec2中內容一致。

求信賴區間:

 

Type I error是錯誤拒絕原假設;Type II error是錯誤接受原假設。

The significance level of the test is α = P(Type I error)

Power = 1 - P(Type II error)

如果兩個test的α相等,那麼power大的那個更好。

 

在實際操作中,使用R語言的包BSDA

SIGN.test(x, md = 0, alternative = "two.sided", conf.level = 0.95)# x - is the object where you store your data# md - the hypothesized median (default is 0)# alternative - either "two.sided", "greater", or "less than"# conf.level  - the desired confidence level. 

 

Applied Nonparametric Statistics-lec3

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.