Section Assignment 4
How a chatbot guesses public opinion
Why this assignment
Session 7 showed that a large language model writes by predicting the next token. Today you look inside: how a transformer uses attention to read its context, and why models confidently make things up. Then you test a chatbot on a real question about public opinion on AI.
What to do
| Part | Time | What you do |
|---|---|---|
| 1 · Two models | ~8 min | Compare a counting model with a tiny transformer, both trained on 10,000 simulated survey answers about AI. Look at where its attention goes. Record at least 3 runs and answer 1A–1C. |
| 2 · Guessing game | ~4 min | Set when a model should answer and when it should say "I don't know", under two grading rules. Record at least 3 settings and answer 2A–2B. |
| 3 · Silicon sample | ~9 min | Write your guess, have a chatbot simulate 40 respondents, ask it for the real number with a source, and compare with Pew's June 2026 poll. Answer 3A–3C. |
| 4 · Memo | ~3 min | In 4–6 sentences, advise a campaign that wants to replace its poll with a chatbot. |
The survey answers and game questions are simulated. Part 3 uses a chatbot of your choice and a real Pew Research Center poll.
To pass
- The file has your name, at least 3 runs in Part 1, at least 3 settings in Part 2, and in Part 3 your guesses, at least 1 chatbot sample and the citation check.
- All nine questions (1A–1C, 2A–2B, 3A–3C, Part 4) have a real attempt. Short is fine; blank is not.
- The answers are in your own words. You may work in pairs and discuss, but each person writes and submits their own answers.
Wrong answers don't fail. This is graded on a real attempt, not on matching the poll.
How to submit
- At the bottom of the lab page, press Download my submission.
- On Canvas, open Section 4 lab and upload the file. Or press Copy and paste the text into the text box.
- Submit before you leave section.
If you can't finish in section
Submit what you have before you leave. Late submissions and resubmissions are not accepted. If you missed section, contact your TA.
Privacy
Your name and answers are stored only in your browser until you download them. The page doesn't send anything anywhere. What you paste into a chatbot does go to that chatbot's company, so don't paste personal information.