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