当前位置:网站首页>Linear regression analysis of parent-child height data set
Linear regression analysis of parent-child height data set
2022-06-23 13:45:00 【Little monster】
Parents - Linear regression analysis of children's height data set
Catalog
brief introduction
“ If a father is tall, his son is tall , A short father makes a short son ”( That is, the height of father and son is related , And is positively correlated )、“ The mother is a nest high , The father is one higher ”( That is, the height of the mother has a greater impact on the children than that of the father ) Whether the customs and legends of are established ? Please be there. “ Height of parents and children ” Data sets ( Galton data set ) On the basis of this, we use linear regression to make scientific analysis .
1) Select the height data of father and son as X-Y, use Excel Calculate the linear regression equation and correlation coefficient 、 variance 、p It's worth waiting for , Judge whether the regression equation is tenable . Now if you have data for a new family , Father's height is known 75 Inch , Please measure the height of your son ?
2) Select the height data of mother and child as X-Y, use Excel Calculate the linear regression equation and correlation coefficient 、 variance 、p It's worth waiting for , Judge whether the regression equation is tenable .
3) Based on the above data , Clarify your analysis of whether the custom statement is correct .
4) You can use multiple linear regression , Calculate the father 、 The regression equation of the height of mother and son ?
One 、 Father and son height data
1、 regression analysis
Data analysis 

Take father's height as X, The height of the child is Y
View analysis results 
Set the starting value of coordinates 
Add trendline 
Display the analytical formula of fitting line 
View results 
The correlation coefficient :-0.0374
variance :0.51779
p value :0.480549
Fitting equation :y=-0.0374x+77.683
2、 Height prediction
problem : Father's height is known 75 Inch , Measure the height of your son ;y=75*(-0.0374)+77.683=74.878
From the forecast data , There is no positive correlation between father's height and children's height , The saying of custom is wrong . When my father is 75 when , According to the table, there are children whose height is lower than the predicted height .
Two 、 Height data of mother and child
1、 regression analysis
The steps are the same as above , Here is the analysis result directly .
Add trend line , Displays the fitted line equation 
2、 related data
The correlation coefficient :0.4134
variance :4.69972
P value :0.043075
Fitting equation :y=0.4134*x+35.292
3、 Relevant numerical knowledge
The characteristics of relational numbers :
The correlation coefficient r Is a statistic that represents the strength and direction of linear correlation between two random variables , It's one A dimensionless number , Value range -1≤r≤1;r The positive and negative values of indicate the direction of linear correlation between two variables , namely r>0 It's positive correlation ,r<0 It's a negative correlation ,r=0 Zero correlation ; r And regression coefficient b The same symbol as ;. r The absolute value of indicates the closeness of the linear correlation between the two variables ,|r | The more close to 1, Indicates that the higher the closeness ,|rI The more close to 0, Indicates that the lower the closeness .
Variance analysis and regression analysis are related but not identical analysis methods . Analysis of variance mainly studies the qualitative relationship between the influence of each variable on the results , So as to eliminate the variables that have little impact on the results , Improve the efficiency and accuracy of the test . Regression analysis is to study the quantitative relationship between variables and results , Get the corresponding mathematical model . In regression analysis , It is necessary to conduct variance analysis on the impact of each variable on the results , To eliminate the variables that have little influence , Improve the effectiveness of regression analysis .
In regression analysis , Analysis of variance will be used to judge the impact of each variable on the results , So as to determine which factors should be included in the regression equation , Which should not be included in the regression equation due to the small variance of the results .
If P Great value , Illustrate this T The value is very close to the origin , and P Small values , It means T The value is far from the origin (T The greater the absolute value of ,P The smaller it is ), Based on the above analysis ,P The smaller the better. .
3、 ... and 、 Summary and references
1、 summary
A thorough understanding of linear regression analysis .
2、 Reference material
Excel Do linear regression analysis .
How to judge whether the regression equation is tenable .
边栏推荐
- 面向 PyTorch* 的英特尔 扩展助力加速 PyTorch
- 『忘了再学』Shell流程控制 — 39、特殊流程控制语句
- 【无标题】
- Generics, generic defects and application scenarios that 90% of people do not understand
- 实战监听Eureka client的缓存更新
- 618's money saving technology strategy is coming - experience the scene and get a 10 yuan cat super card!
- Configure SSH Remote Login for H3C switch
- 实战 | 如何制作一个SLAM轨迹真值获取装置?
- How to write vite plug-ins
- How to solve the task cache compilation problem caused by gradle build cache
猜你喜欢

实战 | 如何制作一个SLAM轨迹真值获取装置?

Quartus II 13.1 detailed installation steps

MIT 6.031 reading5: version control learning experience

1 channel 100m optical fiber transceiver 1 100m optical 1 100m electric desktop Ethernet optical fiber transceiver built-in power supply

First exposure! The only Alibaba cloud native security panorama behind the highest level in the whole domain

腾讯的技术牛人们,是如何完成全面上云这件事儿的?

那些技术实战中的架构设计方法

Online text filter less than specified length tool

How to write vite plug-ins

Oracle中dbms_output.put_line怎么使用
随机推荐
RestCloud ETL解决shell脚本参数化
Quickly understand the commonly used asymmetric encryption algorithm, and no longer have to worry about the interviewer's thorough inquiry
CRMEB 二开短信功能教程
腾讯云TDSQL-C重磅升级,性能全面领跑云原生数据库市场
2-optical-2-electric cascaded optical fiber transceiver Gigabit 2-optical-2-electric optical fiber transceiver Mini embedded industrial mine intrinsic safety optical fiber transceiver
Modelsim 安装步骤详解
Loss, duplication and backlog of message queues
64 channel telephone +2-channel Gigabit Ethernet 64 channel PCM telephone optical transceiver voice telephone to optical fiber
Has aaig really awakened its AI personality after reading the global June issue (Part 1)? Which segment of NLP has the most social value? Get new ideas and inspiration ~
Broadcast level E1 to aes-ebu audio codec E1 to stereo audio XLR codec
Stick to five things to get you out of your confusion!
IEEE Transaction期刊修改过程记录
#yyds干货盘点# 解决剑指offer: 判断是不是平衡二叉树
Online text filter less than specified length tool
Quartus call & Design d Trigger - simulation & time sequence Wave Verification
IEEE transaction journal revision process record
Groovy map operation
有向图D和E
Hanyuan hi tech 1-way uncompressed 4k-dvi optical transceiver 4K HD uncompressed DVI to optical fiber 4k-dvi HD video optical transceiver
栈和队列的基本使用