{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Lab 4-1: Linear regression\n", "\n", "---" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import pandas as pd\n", "import scipy.stats as stats\n", "import matplotlib.pyplot as plt\n", "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Load in a csv file with snow water equivalent (SWE) measurements from two snow pillow sites (which measure the mass of snow) in California's Sierra Nevada. \n", "\n", "(If you're interested, [read about SWE and snow pillows here](https://www.nrcs.usda.gov/wps/portal/wcc/home/dataAccessHelp/faqs/climateHydrologyFaqs))" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | years | \n", "BLC_max | \n", "SLI_max | \n", "
---|---|---|---|
0 | \n", "1983 | \n", "688 | \n", "2446 | \n", "
1 | \n", "1984 | \n", "112 | \n", "1471 | \n", "
2 | \n", "1985 | \n", "216 | \n", "1143 | \n", "