DSCI 220, 2025 W1
September 29, 2025
Examlet this week.
Truth and reconciliation tomorrow – Tue lab will not meet.
Reminder: Joe’s office hour is Fri 11-12, in this room!
We are shooting video this afternoon, 4p via zoom. You are all welcome!
Story. If each of us (\(n+1\)) were to shake hands w everyone else, how many handshakes would there be?
Problem.
\(S(n) = \sum\limits_{k=1}^{n} k\)
We’ll need this, and we’ll also need:
\(S(n)=\sum\limits_{k=1}^{n} k^2 = \frac{n(n+1)(2n+1)}{6}\)
Story. Processing n
data rows:
Problem.
\(S(n)=\sum\limits_{i=1}^{n} (7 + 3i)\)
Story. Model accuracy at epoch \(i\):
Problem.
\(S(n)=\sum_{i=1}^{n} \big(\ln(i+1)-\ln(i)\big)\)
Story. Each day your batch size doubles (like a viral share),
but the annotation time per item grows linearly with the day index. What’s the total work after \(n\) days?
Problem.
\(S_n =\sum_{k=1}^{n} k\,2^{k}\)
Story. Each item \(j\) has effort that depends both on its index and how many remain.
Problem.
\(S = \sum_{j=1}^{n} \big(7 + 3(n-j+1)\big)\)
Story. You only log every 3rd data point (rows 3, 6, 9, …).
The cost for row \(i\) is \(2i+1\).
Question. What is the total cost up to row \(n\)?
Story. Each item \(i\) must be compared with all later items \(j\ge i\). The pairwise cost is \(c_j = 4j+1\) (depends only on the later index).
Problem.
\(T = \displaystyle \sum_{i=1}^{n}\;\sum_{j=i}^{n}\,(4j+1)\)