Lesson 16: Linear Regression in Python
Tue, Apr 4
Review:
- Sum of Squares Calculations in Python
- Think Python (PDF)
Presentation:
- Linear regression programs (3 methods)
- Multiple regression program
Assignment:
- Rewrite the 3 simple regression programs (lesson03a, 3b and 3c) with the following data set
- Data set 2: {(50,12), (60,15), (70,20), (80,30)}
- Write 2 programs (one for each of the two data worksheets in this Sheets file) to run multiple regression
- Use “lesson04_multiregress.py” as example
- Read Chapter 1 (pp. 1-9) in Think Python
- Write, from scratch, a simple program to calculate the answer to Exercise 1.4 on p. 9 in Think Python
- Nothing to submit yet. Instead, just save these programs in your PythonAnywhere “Files”.