当前位置:网站首页>Data analysis learning records -- complete a simple one-way ANOVA with Excel
Data analysis learning records -- complete a simple one-way ANOVA with Excel
2022-07-02 22:55:00 【Cannon cannon cannon~~】
Data analysis learning records – use EXCEL Complete a simple one-way ANOVA
One Introduction and concept
Analysis of variance is usually used to test whether there is a difference in the number of three or more samples , More often, we call analysis of variance “F test ”, The two most important concepts are the original hypothesis and the alternative hypothesis :
The null hypothesis H0: The mean of each group is equal (H1=H2=H3=H4…=Hk);
The alternative hypothesis H1: The mean of each group is not all equal ;
The judgment method is also very simple , It may be difficult to understand with the concept of Statistics , So I'll put the concept here first , The following will give you a simple example to illustrate .
According to statistics F Value size and correspondence p Value as the criterion of judgment , if p≤0.05, Refuse H0, Accept H1, That is, the population mean of each sample is not all equal ; conversely , received H0, Refuse H1, The population mean of each sample is all equal .
Two example
First of all, here is a set of data for your analysis ( Of samples at different extraction times UV254 The difference in value , Three experiments have been done here ):
stay excel Before performing one-way ANOVA in, we need to transpose the data .
The next in excel Found in one-way ANOVA , As shown in the figure :
Click OK excel A prompt box will pop up , The first thing to note is if you are choosing Input area when , Title selected , So down there The flag is on the first line You need to check , Empathy , If your table is horizontally distributed , Then you need to be in How to group Select That's ok , The prompt below will change to The sign is in the first column ; After selecting the input area, we can set whether the generated analysis results are in the current table or in the new table , So here's what I chose New worksheet group , After choosing, let's order determine .
The figure below is the analysis of variance table we generated :
Let me give a little explanation about the contents in the table , First we know that :

The original hypothesis and alternative hypothesis are the first point we need to clarify , Then let's focus on obey F The test statistics of the distribution :
among ,SSA Is the sum of squares between groups ,SSE Is the sum of squares in the group ,k-1 It's the degree of freedom , In the table df It also represents degrees of freedom ,n Is the sample size , here n=18,k=6,SSA/(k-1)=MSA,SSE/(n-k)=MSE;MSE Is the mean square of the Group ,MSA Is the mean square between groups . We can get MSA=0.025533,MSE=0.0321, Of course, these results are all in the table , We can compare it , At this time F The test statistic is equal to MSA/MSE=0.795416.
When the original hypothesis holds, we should obey F Distribution :F~(5,12), There are two ways to judge whether the original hypothesis is true ( Whether to reject the original assumption ). The first one is We can see P value , In this theoretical distribution , Get ratio 0.795416 The more extreme probability is P value :
P-value=0.573332>α=0.05
So the original hypothesis holds – namely There was no significant difference .
The second kind The method is also called Critical value method , We can see in the table F crit Value , That is our critical value :
F0.05(5,12)=3.105875>0.795416
Description is not in the reject field , Original assumption holds – namely There was no significant difference .
3、 ... and summary
- One way ANOVA is used to test whether the mean values of multiple independent samples are different .
- When the analysis result of variance reaches the significance level (P≤0.05), It can only show that the overall mean of multiple groups is not all the same , However, multiple comparisons are needed to know which two groups have differences in mean ; If the result of ANOVA is not significant , You don't need to .
- Two independent groups can be used to compare the mean of the two groups T test , Of course, one-way ANOVA can also be used , If the number of sample groups exceeds three ( Three or more groups ), Only one-way ANOVA can be used .
above !!!( If there is something wrong Welcome to point out .)
边栏推荐
- Wait to solve the zombie process
- The threshold value of fusing proportion cannot be changed with sentinel, and setting the slow call proportion has no effect
- [leetcode] most elements [169]
- Jerry's charge unplugged, unable to touch the boot [chapter]
- DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
- 首批 | 腾讯云完成国内首个云原生安全成熟度评估
- Analyse des données dossiers d'apprentissage - - analyse simple de la variance à facteur unique avec Excel
- 用sentinel熔断比例阈值改不了,设置慢调用比例没效果
- Jatpack------LiveData
- I admire that someone explained such an obscure subject as advanced mathematics so easily
猜你喜欢

Qt QSplitter拆分器

小鹏P7出事故,安全气囊未弹出,这正常吗?
![[LeetCode] 反转字符串中的单词 III【557】](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[LeetCode] 反转字符串中的单词 III【557】

【板栗糖GIS】arcmap—如何批量修改注记要素的字体,颜色,大小等

Build your own website (22)

uniapp微信登录返显用户名和头像

中国信通院、清华大学、腾讯安全,云原生安全产学研用强强联合!

Wait to solve the zombie process
![[chestnut sugar GIS] ArcMap - why should the tick of classic capture be removed when using custom capture?](/img/b5/e746dd115995e82c93f667c58a601c.png)
[chestnut sugar GIS] ArcMap - why should the tick of classic capture be removed when using custom capture?
![[NPUCTF2020]ezlogin xPATH注入](/img/6e/dac4dfa0970829775084bada740542.png)
[NPUCTF2020]ezlogin xPATH注入
随机推荐
Qt QScrollArea
用sentinel熔断比例阈值改不了,设置慢调用比例没效果
Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
U++ learning notes - relaxation
Hanging mirror security won four global infosec awards on rsac2022
[LeetCode] 数组中的第K个最大元素【215】
杰理之样机在多次触摸后会触发关机【篇】
Xiaopeng P7 had an accident and the airbag did not pop up. Is this normal?
[error record] the flutter reports an error (could not read script 'xxx\flutter\u tools\gradle\app\u plugin\u loader.gradle')
php优化foreach中的sql查询
JS获取display为none的隐藏元素的宽度和高度的解决方案
电商系统微服务架构
Kubernetes uses the host name to allocate the pod on the specified node
佩服,竟然有人把高等数学这么晦涩难懂的科目,讲解得如此通俗易懂
地方经销商玩转社区团购模式,百万运营分享
[NPUCTF2020]ezlogin xPATH注入
【硬件】标准阻值的由来
手写ORM(对象关系映射)增删改查
[ODX studio edit PDX] -0.1- how to quickly view the differences in supported diagnostic information between variant variants (service, sub function...)
位的高阶运算