Source: xkcd.com/1725
Lecture 30
Least Squares
Announcements
Human Tech
Futures
Fall 2026
Tu 11/10, 4 pm, 1420 Gateway
David Bates
On the Crisis of Decision in the Age of Artificial Intelligence
Tu 11/17, 4 pm, 820 Social Sciences Building
Mona Sloane
Predicted: How AI is Restructuring Social Life
W 11/18, 2 pm, 310 Sutardja Dai Hall
First Encounters with AI: Writers on Writing (Panel)
Tu 12/8, 4 pm, 1420 Gateway
Marion Fourcade
The Ordinal Society
Human Tech
Futures
Fall 2026
Human Tech Futures (HTF) centers human experience in a rapidly changing technological world.
HTF researchers and students explore how AI and other technologies are embedded in and transform society, how data and algorithms shape human life, and how computational methods open new pathways into culture and human understanding.
HTF advances research and teaching at the frontiers of societal impact and human experience. We work across disciplines to contribute to liveable futures across social-technical divides.
Freshman-Sophomore Seminars
Small seminar format for lower-division students
CS 39: Technology, Society, and Power
Linear Regression
Prediction
Goal: Predict y using x
Examples:
Linear Regression Estimate
Goal: Predict y using x
To find the regression estimate of y:
Regression Line
Standard Units
(0, 0)
1
r
Original Units
(Average x,� Average y)
SD x
r * SD y
Slope and Intercept (in original units)
estimate of y = slope * x + intercept
Discussion Question
Suppose we use linear regression to predict candy prices (in dollars) from sugar content (in grams). What are the units of each of the following?
Least Squares
(Demo)
Error in Estimation
(Demo)
Least Squares Line
Numerical Optimization
(Demo)
Non-Linear Regression
(Demo)
FOR NEXT TIME