Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

线性函数

  • 线性表示直的
  • 线性函数直线
  • 线性图表示线性函数

线性函数

函数是一种特殊的关联关系,其中每个输入都有一个输出。

函数通常写成f(x),其中x是输入

f(x) = x 的结果

xyy = x
11y = x = 1
22y = x = 2
33y = x = 3
44y = x = 4
55y = x = 5

f(x) = 2x 的结果

xyy = 2x
12y = 2x = 2
24y = 2x = 4
36y = 2x = 6
48y = 2x = 8
510y = 2x = 10


线性方程

线性方程是直线的方程

  • y = x
  • y = x*2
  • y = x*2 + 7
  • y = ax + b
  • 5x = 3y
  • y/2 = 6

非线性方程

线性方程不能包含指数或平方根

  • y = x**2
  • y = Math.sqrt(x)
  • y = Math.sin(x)

线性回归

线性回归试图通过将线性图拟合到数据来模拟两个变量之间的关系。

一个变量 (x) 被认为是数据,另一个 (y) 被认为是相关的。

例如,线性回归可以作为将房屋价格与其大小联系起来的模型。


线性最小二乘法

线性代数用于求解线性方程。

线性最小二乘法 (LLS) 是一组用于解决线性回归中涉及的统计问题的公式。


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.