-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
37 lines (35 loc) · 943 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Linear Regression</title>
<!-- Include MathJax -->
<script type="text/javascript" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
</script>
</head>
<body>
<h1>Linear Regression</h1>
<p>Linear regression is a technique to fit a line through data points.</p>
<h2>Mean Squared Error (MSE):</h2>
<p>
\[
\text{MSE} = \frac{1}{N} \sum_{i=1}^{N} (y_i - \hat{y}_i)^2
\]
</p>
<h2>Closed Form Solution:</h2>
<p>
Slope (\(m\)):
\[
m = \frac{\sum \left( x - \bar{x} \right) \left( y - \bar{y} \right)}{\sum \left( x - \bar{x} \right)^2}
\]
</p>
<p>
Intercept (\(b\)):
\[
b = \bar{y} - m \bar{x}
\]
</p>
</body>
</html>