首页 > 其他分享 >ANNOVA test (one-way test and two-way test and bootstrapping)

ANNOVA test (one-way test and two-way test and bootstrapping)

时间:2024-05-22 23:08:38浏览次数:14  
标签:There grades way test ANNOVA previous

对于ANNOVA的理解

什么情况下可以使用annova:

  1. More than 2 populations
    对于多种不同药物对于某种疾病的效果的研究;比较不同国家指标的研究
  2. More than 1 predictive variable (factor)
    锻炼和饮食对于健康的影响; effect of genetic background and drugs on stress levels
  3. 如果是多way test
    2-way test: 2 factors, 比如effect of age and sex on salary

One-way annova

Null hypothesis: There is no difference between any of the groups
或者说
Null hypothesis: There is no effects of class attendance or previous grades on course performance
Alternative hypothesis: At least one of those factors influences course performance

核心思想:组内差异对比组间差异,如果这两者差异大就说明组内之间确实有差异;否则可以认为没有什么组间差异

统计前假设条件:

  1. Independent random sampling
    We believe that this is true given the description of the experiment itself
  2. normality of residuals (distance from group mean)
model <- aov(grade ~ attendance + previous_grades)
hist((resid(model), main = "residuals")# 选一个,方法一
shapiro.test(resid(model)) #方法二
  1. Equality of variances
    通过作图,“residuals vs fitted” plot进行查看
plot(model,1)

好的情况:

进行完ANNOVA 测试后,如果还想要知道具体是哪一组不同于另外几组,可以采用post-hoc tests。比如Tukey's HSD test

TukeyHSD(model)

如果想要探索,也可以思考两个factor之间是否有interaction, hypotheses变化:
• H0: There is no interaction between class attendance and previous grades
• HA: There is an interaction between class attendance and previous grades

标签:There,grades,way,test,ANNOVA,previous
From: https://www.cnblogs.com/chen-heybro/p/18207323

相关文章

  • 银弹:为了避免项目的成员为了一些问题争执不休,公司发明了银弹(Silver Bullet)这一工具。
    在项目管理中,银弹可以在某些情况下是有效的工具。它可以帮助解决团队成员之间的争议和分歧,促使团队更快地达成共识和决策。银弹本身并不是解决问题的方法,而是一种强制执行一方意见的手段,可以在某些情况下起到震慑作用。然而,银弹并不是万能的,它只是暂时性的解决方案。如果团队成员......
  • pytest自动重试失败的测试用例
    先安装插件pipinstallpytest-rerunfailurestest_01.pyimportpytestfromwebTest.Common.loggerimportloggermy_skip=pytest.mark.skipif(1==1,reason='自定义的跳过标签')classTest01:deftest_1(self):try:assert1==1......
  • 判断使用的是 x11 还是 wayland
    date:2024-05-20之前的判断方式是运行命令echo"$XDG_SESSION_TYPE"来查看环境变量的值,如果返回的是wayland则说明用的wayland,如果返回的是x11说明用的x11。但是,如果返回的是tty则不能说明是哪个。例如通过ssh连接到使用x11的远程主机,会返回tty。ps如何判断......
  • Testing Egineer note:2024_5_20-day12-part01
    管理工具禅道一、禅道的介绍(1)定义禅道是一个项目管理工具,也是一个bug管理工具,还是一个用例管理工具。(2)作用:为了解决众多企业在管理中出现混乱,无序的现象,开发出来(3)来源:禅道属易软天川公司(4)禅道是集于产品管理,项目管理,测试管理于一身,同时包含事务管理,组织管理8众多功能,是中小企......
  • vscode 无法调试 golang testify suite 中的单个 test 的解决办法
    目录问题描述网上的讨论最终的解决办法问题描述对于如下这样简单的测试文件:packagemain//Basicimportsimport( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite")varassertObj*assert.Assertions//Definethesuite,......
  • AtCoder Beginner Contest 354
    A-ExponentialPlant(abc354A)题目大意某星球上的植物,初始高\(0\),然后每天依次增长\(1,2,4,8,...\),问哪天就高过身高为\(h\)的高桥。解题思路因为是指数级别长高,枚举一下天数即可,由于\(h\leq10^9\),因此天数不会超过\(32\)天。神奇的代码#include<bits/stdc++.h>u......
  • Codeforces 401B Sereja and Contests 题解
    题目简述Sereja是一名程序员,他喜欢参加Codesorfes比赛。不过,乌兹兰的网络连接不太好,所以Sereja有时会跳过比赛。Codesorfes有两种类型的比赛,分为Div1和Div2。Div1和Div2这两轮可以同时进行(Div1轮不能在没有Div2的情况下进行)。每一轮都有一个唯一的标识符,各轮按......
  • 手机硬件检测:-DeviceTest
    手机硬件检测:Z-DeviceTest官方版是款针对手机硬件所打造的检测工具。手机硬件检测:Z-DeviceTest能够检测硬件和OS,硬件上不仅仅是电池、cpu、内存、OS,甚至连usb、扬声器、指南针、摄像头、GPS、听筒等都能检测。并且手机硬件检测:Z-DeviceTest还能够对市面众多的机型进行检测,方便......
  • talking to the universe(test)
    talkingtotheuniverse2023.11.30 周一 晴8-17°talkingtothemoonIknowyou'resomewhereoutthereSomewherefarawayIwantyoubackIwantyoubackMyneighborsthinkI'mcrazyButtheydon'tunderstandYou'reallIhadYou'......
  • test_EDA
    (1)如果要擦除Flash中的程序,先添加一个jic文件(只有一个jic文件),选择“Erase”列,点击“Start”,完成擦写。Fig.2.2FlowSummaryFig.2.3RTL电路图Fig.2.4PinPlanner......