当前位置:网站首页>Linear regression of common mathematical modeling models for College Students
Linear regression of common mathematical modeling models for College Students
2022-06-25 12:06:00 【Halosec_ Wei】
1、 effect
Linear regression is to use regression analysis in mathematical statistics , A statistical analysis method to determine the quantitative relationship between two or more variables , In linear regression analysis , Include only one independent variable and one dependent variable , And the relationship between them can be approximately expressed by a straight line , This kind of regression analysis is called univariate linear regression analysis . If the regression analysis includes two or more independent variables , And the relationship between dependent variable and independent variable is linear , It is called multiple linear regression analysis .
2、 Input / output description
Input : The independent variables X At least one or more quantitative or categorical variables , The dependent variable Y Quantitative variables are required ( If it is a variable of fixed class , Please use logistic regression ).
Output : The result of model test goodness , Linear relationship between independent variable and dependent variable, etc
3、 Case example
Example : Through independent variables ( House age 、 Is there an elevator 、 Floor height 、 Room square ) Fitting the predicted dependent variable ( housing price )
4、 Case data
5、 Case operation
Step1: New analysis ;
Step2: Upload data ;
Step3: Select the corresponding data to open and preview , Click start analysis after confirmation ;
step4: choice 【 Linear regression 】;
step5: View the corresponding data format , Enter... As required 【 Linear regression 】 data ;
step6: Click on 【 To analyze 】, Complete the operation .
6、 Output result analysis
Output results 1: Results of linear regression analysis
Chart description : from F The analysis of the test results can lead to , Significance P The value is 0.0**, The level is significant , The rejection regression coefficient is 0 The original hypothesis of , At the same time, the fitting degree of the model R2 by 0.91, The model performs well , Therefore, the model basically meets the requirements For the collinearity of variables ,VIF All less than 10, So the model has no multicollinearity problem , The model is well constructed .
Output results 2: Fitting effect picture
Chart description : The figure above shows the original data of this model 、 Model fitting value 、 Model predictions .
Output results 3: Model path diagram
Chart description : The above figure shows the results of this model in the form of a path diagram , It mainly includes the coefficients of the model , Used to analyze X about Y Impact relationship .
Output results 4: Model results predict
Chart description : The table above shows the prediction of the linear regression model .
7、 matters needing attention
- Linear regression can be solved by least square method or gradient descent method ,SPSSPRO The least square method is used here , The calculation results are consistent with spss Agreement , But it will be slightly different from the gradient descent method ;
- Linear regression, if there is input data of definite type , Then it is required that the classified data must be classified into two categories ( Muted quantization ), therefore SPSSPRO Input variables for X2 The data required in is classified data , If the data is not classified into two categories ,SPSSPRO Will automatically quantify the dummy change
8、 Model theory
Linear regression is to use regression analysis in mathematical statistics , A statistical analysis method to determine the quantitative relationship between two or more variables , It's widely used . It is expressed in the form of y = w'x+e,e The mean value of error is 0 Is a normal distribution .
In regression analysis , Include only one independent variable and one dependent variable , And the relationship between them can be approximately expressed by a straight line , This kind of regression analysis is called univariate linear regression analysis . If the regression analysis includes two or more independent variables , And the relationship between dependent variable and independent variable is linear , It is called multiple linear regression analysis .
Generally speaking , Linear regression can be solved by least square method or gradient descent method , It can be calculated that for y=bx+a The straight line of . Take the least square method as an example , influence y There is often more than one factor , Suppose there is x1,x2,...,xk,k One factor , Generally, the following linear relation can be considered :
Yes y And x1,x2,...,xk Simultaneous n Second independent observation n Group observations (xt1,xt2,...,xtk),t=1,2,...,n(n>k+1), They satisfy the relation :
9、 reference
[1]Cohen, J., Cohen P., West, S.G., & Aiken, L.S. Applied multiple regression/correlation analysis for the behavioral sciences. Hillsdale, NJ: Lawrence Erlbaum Associates. 2003.
[2]Draper, N.R. and Smith, H. Applied Regression Analysis. Wiley Series in Probability and Statistics. 1998.
[3] Sunrongheng . Apply mathematical statistics ( The third edition ). Beijing : Science Press ,2014:204-206
[4]alton, Francis. Regression Towards Mediocrity in Hereditary Stature (PDF). Journal of the Anthropological Institute. 1886, 15: 246–263
10、 Learning Websites
边栏推荐
- Oracle Spatial creating spatial tables
- 设置图片的透明度从左到右渐变
- plt. GCA () picture frame and label
- What should I do to dynamically add a column and button to the gird of VFP?
- 图片打标签之获取图片在ImageView中的坐标
- sklearnex 让你的 sklearn 机器学习模型训练快得飞起?
- Convergence by probability
- Dark horse shopping mall ---2 Distributed file storage fastdfs
- Manually rollback abnormal data
- Solution to the timeout scenario of Flink streaming computing (official live broadcast)
猜你喜欢
黑馬暢購商城---3.商品管理
架构师为你揭秘在阿里、腾讯、美团工作的区别
VFP uses Kodak controls to control the scanner to solve the problem that the volume of exported files is too large
Nacos installation and use
Develop two modes of BS mode verification code with VFP to make your website more secure
SQL server saves binary fields to disk file
PD1.4转HDMI2.0转接线拆解。
How TCP handles exceptions during three handshakes and four waves
Idea local launch Flink task
Use PHP script to view the opened extensions
随机推荐
Explain websocket protocol in detail
Is industrial securities a state-owned enterprise? Is it safe to open an account in industrial securities?
现在网上炒股开户身份证信息安全吗?
How terrible is it not to use error handling in VFP?
Encapsulation of practical methods introduced by webrtc native M96 basic base module (MD5, Base64, time, random number)
How TCP handles exceptions during three handshakes and four waves
quarkus saas动态数据源切换实现,简单完美
Cesium building loading (with height)
Database Series: MySQL index optimization summary (comprehensive version)
黑马畅购商城---6.品牌、规格统计、条件筛选、分页排序、高亮显示
Old ou, a fox friend, has had a headache all day. The VFP format is always wrong when it is converted to JSON format. It is actually caused by disordered code
Effective reading of literature
15、wpf之button样式小记
黑马畅购商城---3.商品管理
How far is it from the DBF of VFP to the web salary query system?
什么是Flink?Flink能用来做什么?
Detailed explanation of Flink checkpoint specific operation process and summary of error reporting and debugging methods
Two ways of redis persistence -- detailed explanation of RDB and AOF
网络上开户买股票是否安全呢?
19、wpf之事件转命令实现MVVM架构