Linear Regression Practice Problems
Contents
14.8. Linear Regression Practice Problems#
14.8.1. Learning Objectives#
After studying this notebook and your lecture notes, you should be able to:
Interpret correlation coefficient
Compute simple linear regression best fits
Check linear regression error assumptions using residual analysis (plots)
Compute residual standard error and covariance matrix for fitted parameters
Assemble confidence intervals for fitted parameters
# load libraries
import scipy.stats as stats
import numpy as np
import math
import matplotlib.pyplot as plt