当前位置:网站首页>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 .)
边栏推荐
- go 4种单例模式
- 大一学习分享
- 'when to use const char * and when to use const char []' - when to use const char * and when to use const char []
- Xiaopeng P7 had an accident and the airbag did not pop up. Is this normal?
- 性能优化----严苛模式
- Qt QProgressBar详解
- [error record] the flutter reports an error (could not read script 'xxx\flutter\u tools\gradle\app\u plugin\u loader.gradle')
- Share 10 JS closure interview questions (diagrams), come in and see how many you can answer correctly
- 杰理之、产线装配环节【篇】
- Additional: [login information storage] and [login status verification]; (including: summarizing all the contents of [login information storage] and [login status verification] so far;)
猜你喜欢
Oracle-PL/SQL编程
odoo13搭建医院HRP环境(详细步骤)
boot actuator - prometheus使用
Performance optimization - rigorous mode
Developers share | HLS and skillfully use Axi_ Customize the master bus interface instructions and improve the data bandwidth - area exchange speed
图形视图框架
[LeetCode] 多数元素【169】
位的高阶运算
mysql重置密码,忘记密码,重置root密码,重置mysql密码
Mathematical modeling -- graph and network models and methods (I)
随机推荐
杰理之、产线装配环节【篇】
UE4 UI adaptive screen
U++ learning notes - relaxation
电商系统微服务架构
悬镜安全在RSAC2022上斩获Global InfoSec Awards四项大奖
Introduction and response to high concurrency
DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
LeetCode 968. Monitor binary tree
数据分析学习记录(二)---响应曲面法及Design-Expert的简单使用
NC50965 Largest Rectangle in a Histogram
kubernetes 使用主机名将 pod 分配在指定节点上
[LeetCode] 数组中的第K个最大元素【215】
首批 | 腾讯云完成国内首个云原生安全成熟度评估
I admire that someone explained such an obscure subject as advanced mathematics so easily
Share 10 JS closure interview questions (diagrams), come in and see how many you can answer correctly
MySQL查询附近的数据.并按距离进行排序.
E-commerce system microservice architecture
Jatpack------LiveData
[LeetCode] 多数元素【169】
Array advanced improvement