The exam is by hand; the job is not. This week redoes the whole semester in Python — describe the thirty prices, test the CHF 20 claim, compare the lake and the station, fit the price–rating line, run the chi-square — and gets the same numbers you got with a calculator. Everything runs in Google Colab in the browser, so there is nothing to install and nothing that can go wrong with your laptop. Computer session; bring one anyway.
std() will surprise you: pandas divides by n − 1, NumPy by n. The Week 2 trap, one last time.)pandas.Series; the pizzeria table as a DataFrame; pd.read_csv on the course's own CSV.pandas as pd, matplotlib.pyplot as plt, scipy.stats as st.s.describe() gives the five-number summary in one line.s.std() (pandas, ddof=1) vs np.std(s) (ddof=0). Which one is the sample standard deviation, and why the default differs between the two libraries.plt.hist and plt.boxplot — the same pictures, in three lines.st.t.interval — and the same number the Week 6 widget drew.statsmodels.formula.api.ols: reading summary() line by line — coefficient, standard error, t, p, R².When this week is written, each exercise below becomes a form on this page and a slide in the deck, generated from one array so the two can never disagree — and its solution opens when the instructor reveals it in class. Same engine as Weeks 1–2 (exercises.js).