· Example
A first look at linear regression
Example tutorial with a code block and math. Replace this with your own notes.
This sample shows how a tutorial is written. Replace content/tutorials/linear-regression.mdx with a real lesson.
A simple line is
and the slope on its own is .
def predict(x, intercept, slope):
return intercept + slope * x
Squared error for one point is . That is enough to confirm code fences and LaTeX both render.