POLISCI 158 · Section 4

Section Assignment 4

How a chatbot guesses public opinion

Graded: Pass / No-Pass Due: at the end of your Section 4 meeting Submit: one file (or pasted text) on Canvas
Open the lab

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

PartTimeWhat you do
1 · Two models~8 minCompare 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 minSet 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 minWrite 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 minIn 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

Wrong answers don't fail. This is graded on a real attempt, not on matching the poll.

How to submit

  1. At the bottom of the lab page, press Download my submission.
  2. On Canvas, open Section 4 lab and upload the file. Or press Copy and paste the text into the text box.
  3. 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.