本文着重梳理 假设检验 HYPOTHESIS TEST(SIGNIFICANCE TEST),通过 逻辑性知识概念性知识 两部分厘清该重点内容。

1.Logic of Hypothesis Test

0) What’s hypothesis test?

If we have some doubt in the origin hypothesis or assumption, then we can raise a hypothesis test to prove our doubt or said reject the origin hypothesis.

For example:

Then, we introduce some new concepts on hypothesis:

  • H0H_0H0​ (Null hypothesis): Something we doubt.

  • HaH_\text{a}Ha​ (Alternative hypothesis): Our guess, or said the new hypothesis

  • Single-sided and Double-sided Hypothesis :

    • If our new hypothesis is in the form of newhypothesis≠somenumbernew\ hypothesis \neq some \ numbernew hypothesis̸​=some number, this is a double-sided hypothesis ;
    • If our new hypothesis is in the form of newhypothesis≤somenumbernew\ hypothesis \leq some \ numbernew hypothesis≤some number or newhypothesis≥somenumbernew\ hypothesis \geq some \ numbernew hypothesis≥some number, this is a double-sided hypothesis.

PAY ATTENTION: All the hypothesis is aimed at testing the population parameter.


1) Set up Hypothesis

To set up a Null Hypothesis, we can just need to figure out what is the concerned problem. Or said the feature of null hpothesis is that there is no news if the null hypothesis is actually true.

To set up a lnternative Hypothesis, we use the number of null hypothesis and then choose single-sided or double-sided hypothesis to set up our internative hypothesis.


2) Set up Significance level

PAY ATTENTION: Before we carry out the calculation, we need to set up a significance level. It is an ethical problem if we set up a significance level to suit our calculation result in order to generate a attracting conclusion.


3) Take Sample and Calculate


4) Make Conclusion


2.Concepts of Hypothesis Test

1) What’s p-value and significance level?

  • p−valuep-valuep−value: It is a probability that current sample statistic occur.

P(observecurrentsamplestatistic∣H0isTrue)P(observe\ current\ sample\ statistic |H_0 \ is \ True) P(observe current sample statistic∣H0​ is True)

  • α\alphaα: We call it significance level. It is a thresold that quantify the word “extreme”. In ohter words, it’s a relatively small probability that indicates whether the p−valuep-valuep−value is small enough that shake our belief on H0H_0H0​.

  • $power $: It is a probability that not making Type II error

P(rejecetH0∣H0isfalse)=1−P(notrejecetH0∣H0isfalse)=P(notmakingTypeIIerror)P(rejecet\ H_0|H_0 \ is \ false) = 1 - P(not \ rejecet\ H_0|H_0 \ is \ false) = P(not\ making \ Type \ II \ error) P(rejecet H0​∣H0​ is false)=1−P(not rejecet H0​∣H0​ is false)=P(not making Type II error)


2) Type I Error & Type II Error

i) Understanding the concepts

Meaning of Type I Error :The origin hypothesis (H0H_0H0​) is actually True, but due to some extreme event happens (p−value&lt;αp-value &lt; \alphap−value<α), we consider the hypothesis might be wrong and therefore reject it. It is obivous that if the α\alphaα is too large, we can easily get a Type I Error.

Meaning of Type II Error:The origin hypothesis (H0H_0H0​) is actually False, but nothing seems to happen (p−value&gt;αp-value &gt; \alphap−value>α), then we consider the hypothesis should be true and therefore accpet it. It is obivous that if the α\alphaα is too small, we can easily get a Type II Error. Another way to think of Type II Error is that if we can start from using the concept of powerpowerpower instead of p−valuep-valuep−value.

Trade-off problems : There exists a trade-off between Type I Error and Type II Error, which means that we need to set an appropriate α\alphaα to “balance” the error probability of these two type of error. Here is an example on trade-off problem:

Employees at a health club do a daily water quality test in the club’s swimming pool. If the level of contaminants are too high, then they temporarily close the pool to perform a water treatment.

We can state the hypotheses for their test as H0H_0H0​ : The water quality is acceptable vs. HaH_\text{a}Ha​ : The water quality is not acceptable. Consider the following two questions:

  • In terms of safety, which error has the more dangerous consequences in this setting?
  • What significance level should they use to reduce the probability of the more dangerous error?

FROM Khan Academy

What will affect the error probability :

  • Significance level α\alphaα: If α↑\alpha \uparrowα↑, then power↑power \uparrowpower↑ and P(typeIerror)↑P(type \ I \ error)\uparrowP(type I error)↑
  • Sample size n: If n↑n \uparrown↑, then power↑power \uparrowpower↑. But it doesn’t impact the likelihood of a Type I error.Larger samples are still preferred since they produce less variable results, but we’ll still reject a true H0H_0H0​ at a rate equal to the significance level ααα.
  • Statistic variability : If Statisticvariability↓Statistic\ variability \downarrowStatistic variability↓ , then power↑power \uparrowpower↑. It suits the intuition as when the statistic variablity is low, the outliner should be easier to figured out, and therefore we can hava higher probability to reject it. But we could not control this variable.
  • Distance from true parameter to H0H_0H0​ : If distance↑distance \uparrowdistance↑ , then power↑power \uparrowpower↑. It suits the intuition as when the true value far from H0H_0H0​, we can hava higher probability to reject it. But we could not control this variable.

ii) Some associations

  • 看论文经常会接触到以下的表格,出处正是来自statistics
Table of error types H0H_0H0​ is True(in reality) H0H_0H0​ is False(in reality)
Fail to reject Correct inference Type II error(False Negative)
Reject Type I error(False Positive) Correct inference
  • ROC曲线

3) Z-test and T-test


3.Others

1.Some common ideas between confidence interval and significance test

【Statistics】HYPOTHESIS TEST(SIGNIFICANCE TEST)相关推荐

  1. 【statistics】理想论坛2018-4-25日统计

    说明:利用理想论坛爬虫1.07版(http://www.cnblogs.com/xiandedanteng/p/8954115.html) 下载了前十页主贴及子贴,共得到359619条数据,以此数据为 ...

  2. 【Statistics】均值

    均值 均值(mean)是全部数据的算术平均值,也称为算术平均.在统计学中具有重要的地位,是集中趋势的主要测量值.均值分为:简单均值.加权均值. 简单均值 设代表均值,代表样本各变量值,n代表变量个数, ...

  3. 【Math】P=NP问题

    文章目录 **P vs NP** **0 P=NP基本定义** 0.1 Definition of NP-Completeness 0.2 NP-Complete Problems 0.3 NP-Ha ...

  4. Linux内核抢占实现机制分析【转】

    Linux内核抢占实现机制分析 转自:http://blog.chinaunix.net/uid-24227137-id-3050754.html [摘要]本文详解了Linux内核抢占实现机制.首先介 ...

  5. 掌握 Linux 调试技术【转】

    转自:https://www.ibm.com/developerworks/cn/linux/sdk/l-debug/index.html 您可以用各种方法来监控运行着的用户空间程序:可以为其运行调试 ...

  6. 【FFmpeg】FFmpeg 帮助文档使用

    FFmpeg 系列文章目录 [FFmpeg]Windows 搭建 FFmpeg 命令行运行环境 [FFmpeg]FFmpeg 相关术语简介 [FFmpeg]FFmpeg 相关术语简介 二 文章目录 F ...

  7. python选课系统_【精选】在Monash读Data Science,人人都拥有这样一份选课指南。

    点击上方"蓝字",关注最适合你的学习咨询 前言 1.课程难度因人而异,课程作业也可能每学期变动,所以大家结合个人实际情况参考借鉴. 2.本指南系列只描述了比较最主流的课,冷门课程资 ...

  8. oracle ipc message,【案例】Oracle RAC IPC send timeout error导致RAC的节点挂起解决办法

    天萃荷净 Oracle研究中心案例分析:运维DBA反映Oracle RAC环境数据库节点挂起,分享日志发现是由于IPC send timeout error导致RAC的节点挂起. 本站文章除注明转载外 ...

  9. 【BERT】BERT模型压缩技术概览

    由于BERT参数众多,模型庞大,推理速度较慢,在一些实时性要求较高.计算资源受限的场景,其应用会受到限制.因此,讨论如何在不过多的损失BERT性能的条件下,对BERT进行模型压缩,是一个非常有现实意义 ...

最新文章

  1. mysql(connector/ODBC)
  2. mysql innodb 并发 插入 慢_Innodb 锁机制——一次插入慢查询的排查
  3. Spring事务 Transaction rolled back because it has been marked as rollback-only
  4. vue项目中vue-echarts讲解及常用图表方案实现
  5. java变量,初始化快,构造函数的执行顺序
  6. darknet编译报错 error: ‘__fatBinC_Wrapper_t’ does not name a type
  7. MyBB论坛兼容智能手机的解决方案
  8. 编程基本功:带着本子却不记录,你以为听懂了记住了,不可能的
  9. 计算机系统建模与仿真论文,《系统建模与仿真》课程论文.pdf
  10. c盘java文件误删_C盘的文件被误删如何恢复
  11. Android指纹验证
  12. 【缅怀妈妈系列诗歌】之二十四:一份永不忘却的思念
  13. Oracle 使用xtts升级11g-to-19c
  14. 图解爬虫,用几个最简单的例子带你入门Python爬虫
  15. 梆梆安全卢佐华:用安全拥抱物联网时代
  16. 2021-2027全球与中国移动设备用半导体封装基板市场现状及未来发展趋势
  17. ios越狱python插件_基于Theos越狱开发
  18. 牛客竞赛每日俩题 - Day9
  19. 月薪 2~3W 的码农,是怎样度过一天的?
  20. 篮球竞赛30s计时器效果展示

热门文章

  1. MTK开发之cpu核开关与频率调节
  2. 启动kafka过一会进程自动挂掉问题原因
  3. CentOS7环境安装oracleRAC集群遇到的问题总结二(执行root.sh报错ORA-15018和ORA-15020)
  4. linux设置sfq队列参数,Linux系统运维之Linux高级流量控制工具TC使用方法
  5. 心의 體는 仁禮義知 (韓長庚 易學原理總論)
  6. 软件测试之冒烟测试中易犯的三个误区--新梦想软件测试
  7. 暖火柴打一数字_火柴里的天堂
  8. 解析steam教育中的技术赋能
  9. 硬件电路常用设计摘要
  10. 测试管理之--文档管理