{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Linear Fitting Absorbance Data\n", "\n", "
Overview
\n", "\n", "Questions:\n", "\n", "* How can I use Python to fit a linear model?\n", "\n", "Objectives:\n", "\n", "* Fit a linear model using statsmodels\n", "\n", "Exercise
\n", "\n", "Use pandas to read in the file `data/protein_samples.csv`.\n", "\n", "Next, use our calculated slope to predict concentration based on measured absorbance.\n", "\n", "Exercise
\n", "\n", "Now that you have completed a simple linear regression exercise with protein assay data, here is a problem with a slightly larger dataset, taken from a ground water survey of wells in Texas kindly provided by Houghton-Mifflin. \n", "The data for this exercise is in the file `data/ground_water.csv`.\n", "Using the skills you have learned with pandas and `statsmodels`, get the linear regression statistics for the relationship between pH (dependent variable) and bicarbonate levels (ppm in well water in Texas; independent variable).\n", "\n", "