From 652f88728eb91bae1c4f30b63d1fbe60788ea938 Mon Sep 17 00:00:00 2001 From: Christian Kolset Date: Thu, 24 Apr 2025 16:25:31 -0600 Subject: Added jupyter notebook converter script. Converts markdown (.md) tutorials to jupyter notebook (.ipynb). --- tutorials/module_4/linear_regression.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tutorials/module_4/linear_regression.md (limited to 'tutorials/module_4/linear_regression.md') diff --git a/tutorials/module_4/linear_regression.md b/tutorials/module_4/linear_regression.md new file mode 100644 index 0000000..b21415b --- /dev/null +++ b/tutorials/module_4/linear_regression.md @@ -0,0 +1,18 @@ +# Linear Regression + + + +## Statical tools +Numpy comes with some useful statistical tools that we can use to analyze our data. + +### Mean +The mean is the average of a set of numbers. It is calculated by summing all the numbers and dividing by the count of numbers. + +```python +import numpy as np + +mean = np.mean([1, 2, 3, 4, 5]) +median = np.median([1, 2, 3, 4, 5]) +std = np.std([1, 2, 3, 4, 5]) +variance = np.var([1, 2, 3, 4, 5]) +``` -- cgit v1.2.3