当前位置:网站首页>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 .)
边栏推荐
- 牛客网:龙与地下城游戏
- Oracle cursor
- Qt QScrollArea
- 加油站[问题分析->问题转换->贪心]
- 数组进阶提高
- 创新实力再获认可!腾讯安全MSS获2022年度云原生安全守护先锋
- Zhong Xuegao responded that the product will not melt for 1 hour: it contains solid components and cannot melt into water
- QT qsplitter splitter
- Jerry's charge unplugged, unable to touch the boot [chapter]
- Storage unit conversion
猜你喜欢
![[leetcode] most elements [169]](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[leetcode] most elements [169]

Oracle-游标

创新实力再获认可!腾讯安全MSS获2022年度云原生安全守护先锋
![[LeetCode] 多数元素【169】](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[LeetCode] 多数元素【169】

Qt QScrollArea

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

Niuke: Dragon and dungeon games
![Jielizhi, production line assembly link [chapter]](/img/0d/102596ad13aafd9c6133509d9064dd.png)
Jielizhi, production line assembly link [chapter]
![[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?

Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
随机推荐
【喜欢的诗词】好了歌
【硬件】标准阻值的由来
QT qsplitter splitter
佩服,竟然有人把高等数学这么晦涩难懂的科目,讲解得如此通俗易懂
小鹏P7出事故,安全气囊未弹出,这正常吗?
Jerry's charge unplugged, unable to touch the boot [chapter]
Array advanced improvement
[foreign journal] sleep and weight loss
Solve the error of changing the selected file when uploading excel file. Net:: err_ UPLOAD_ FILE_ CHANGED
Golang的学习路线
DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
boot actuator - prometheus使用
【板栗糖GIS】arcmap—为什么使用自定义捕捉的时候,经典捕捉的勾要去掉呢?
[LeetCode] 反转字符串【344】
Build your own website (22)
百度智能云-创建人脸识别应用
Addition, deletion, modification and query of handwritten ORM (object relationship mapping)
Webrtc audio and video capture and playback examples and mediastream media stream analysis
WebRTC音视频采集和播放示例及MediaStream媒体流解析
Using rendertext() to output multiple lines of text with rendertext() in R shiny