{ "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": {} }