当前位置:网站首页>Regression - linear regression
Regression - linear regression
2022-07-28 03:55:00 【Lu 727】
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 .
Output : The result of model test goodness , Linear relationship between independent variable and dependent variable, etc .
3、 Case example
Through independent variables ( House age 、 Is there an elevator 、 Floor height 、 Room square ) Fitting the predicted dependent variable ( housing price )

4、 Modeling steps
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 .
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 :
![]()
among ,
Unrelated are all related to
Identically distributed random variables . In order to express the above formula with a matrix , Make
.
Use the least square method to get
Solution :
![]()
Slope b computing method :

intercept a:

边栏推荐
- 【OPENVX】对象基本使用之vx_pyramid
- numeric_ Limits the range and related attributes of each data type learned
- Interface automation test, complete introduction
- Data mining-01
- 简单、好用的性能测试工具推荐
- Greedy - 53. Maximum subarray sum
- Web Security Foundation - Command Execution Vulnerability
- 【力扣】1337.矩阵中战斗力最弱的k行
- ServletContext、request、response
- Leetcode brush question: dynamic planning 09 (weight of the last stone II)
猜你喜欢

8000 word explanation of OBSA principle and application practice

WordPress simple mkblog blog theme template v2.1

How does MySQL ensure high availability

security异常处理机制

一文读懂Plato Farm的ePLATO,以及其高溢价缘由

Read Plato farm's eplato and the reason for its high premium

Advanced Mathematics (Seventh Edition) Tongji University exercises 3-4 personal solutions (first 8 questions)

Prefix-Tuning: Optimizing Continuous Prompts for Generation

《剑指offer》| 刷题小记

Weekly recommended short video: how to correctly understand the word "lean"?
随机推荐
Simple and easy-to-use performance testing tools recommended
An article grasps the calculation and processing of date data in PostgreSQL
【OPENVX】对象基本使用之vx_matrix
CANopen learning notes
Redis cluster
Msgan is used for pattern search of multiple image synthesis to generate confrontation Network -- to solve the problem of pattern collapse
In depth introduction to sap ui5 fileuploader control - why do you need a hidden iframe trial
[openvx] VX for basic use of objects_ pyramid
过滤器、拦截器、监听器
Summary and interpretation of CONDA virtual environment
leetcode刷题:动态规划09(最后一块石头的重量 II)
Jumping game II in question 45 of C language power deduction. Ergodic jump
Developing rc522 module based on c8t6 chip to realize breathing lamp
Data rich Computing: m.2 meets AI at the edge
C language: find the number of 1 in binary stored in memory as an integer
CH340 RTS DTR引脚编程驱动OLED
[prototype and prototype chain] get to know prototype and prototype chain~
Dynamic programming - 474. One and zero
Recursion and non recursion are used to calculate the nth Fibonacci number respectively
【LeetCode】34、在排序数组中查找元素的第一个和最后一个位置