From c803df9bf08cee7f7af2ecffcc0e951325abe542 Mon Sep 17 00:00:00 2001 From: Christian Kolset Date: Fri, 9 May 2025 09:54:05 -0600 Subject: Added mod. 4 auto-gen notebooks --- .../module_4/notebook_4/linear_regression.ipynb | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tutorials/module_4/notebook_4/linear_regression.ipynb diff --git a/tutorials/module_4/notebook_4/linear_regression.ipynb b/tutorials/module_4/notebook_4/linear_regression.ipynb new file mode 100644 index 0000000..b2d8b37 --- /dev/null +++ b/tutorials/module_4/notebook_4/linear_regression.ipynb @@ -0,0 +1,34 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Linear Regression\n", + "\n", + "## Statical tools\n", + "\n", + "Numpy comes with some useful statistical tools that we can use to\n", + "analyze our data.\n", + "\n", + "### Mean\n", + "\n", + "The mean is the average of a set of numbers. It is calculated by summing\n", + "all the numbers and dividing by the count of numbers.\n", + "\n", + "``` python\n", + "import numpy as np\n", + "\n", + "mean = np.mean([1, 2, 3, 4, 5])\n", + "median = np.median([1, 2, 3, 4, 5])\n", + "std = np.std([1, 2, 3, 4, 5])\n", + "variance = np.var([1, 2, 3, 4, 5])\n", + "```" + ], + "id": "b53d7ecf-fc41-4a2b-9d08-c38af2507843" + } + ], + "nbformat": 4, + "nbformat_minor": 5, + "metadata": {} +} -- cgit v1.2.3