cs0931: introduction to computation for the...

24
CS0931: Introduction to Computation for the Humanities and Social Sciences Anna Ritz CS0931 - Intro. to Comp. for the Humanities and Social Sciences 1

Upload: others

Post on 28-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

CS0931: Introduction to Computation for the

Humanities and Social Sciences

Anna Ritz

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 1

Page 2: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

Liberal Media Bias

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 2

Page 3: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

Liberal Media Bias

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 3

“Liberal bias in the media occurs when liberal ideas have undue influence on the coverage or selection of news stories.”

- Wikipedia

Page 4: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

Bias: A CBS Insider Exposes How the Media Distort the News. Bernard Goldberg, 2001.

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 4

Page 5: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

Bias: A CBS Insider Exposes How the Media Distort the News. Bernard Goldberg, 2001.

“In 1981…I was named a national correspondent, which allowed me to cover bigger, more important stories anywhere in the country…It was in New York that for the first time I started noticing things that made me feel uneasy. I noticed that we pointedly identified conservatives as conservatives, for example, but for some crazy reason we didn’t bother to identify liberals as liberals…in the world of the Jenningses and Brokaws and Rathers, conservatives are out of the mainstream and need to be identified. Liberals, on the other hand, are the mainstream and don’t need to be identified.”

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 5

Page 6: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

Bias: A CBS Insider Exposes How the Media Distort the News. Bernard Goldberg, 2001.

“In 1981…I was named a national correspondent, which allowed me to cover bigger, more important stories anywhere in the country…It was in New York that for the first time I started noticing things that made me feel uneasy. I noticed that we pointedly identified conservatives as conservatives, for example, but for some crazy reason we didn’t bother to identify liberals as liberals…in the world of the Jenningses and Brokaws and Rathers, conservatives are out of the mainstream and need to be identified. Liberals, on the other hand, are the mainstream and don’t need to be identified.”

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 6

Somewhere in here is a testable hypothesis: What is it?

Page 7: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

Claim: In the media, conservatives are labeled as “conservative” more often than liberals are labeled as “liberal.”

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 7

Page 8: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

We need to figure out a way to test this hypothesis.

Claim: In the media, conservatives are labeled as “conservative” more often than liberals are labeled as “liberal.”

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 8

Define Problem

Find Data

snfblog.com

Page 9: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

We need to figure out a way to test this hypothesis.

Claim: In the media, conservatives are labeled as “conservative” more often than liberals are labeled as “liberal.”

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 9

Define Problem

Find Data

snfblog.com

What does it mean to be “labeled” in a

newspaper?

Page 10: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

We need to figure out a way to test this hypothesis.

Claim: In the media, conservatives are labeled as “conservative” more often than liberals are labeled as “liberal.”

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 10

Define Problem

Find Data

snfblog.com

What does it mean to be “labeled” in a

newspaper?

What exactly are we going to look for?

Page 11: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 11

“The Most Influential US Conservatives & US Liberals.” The Telegraph, Jan 2010

Conservatives

http://www.telegraph.co.uk/news/worldnews/northamerica/usa/6990965/The-most-influential-US-conservatives-20-1.html

Liberals

1. Dick Cheney (Former VP)

2. Rush Limbaugh (Talk radio)

3. Matt Drudge (Drudge Report)

4. Sarah Palin (AK Gov.)

5. Robert Gates (Defense Sec.)

http://www.telegraph.co.uk/news/worldnews/northamerica/usa/6991000/The-most-influential-US-liberals-20-1.html

1. Barack Obama (President)

2. Hillary Clinton (Sec. of State)

3. Nancy Pelosi (Speaker of H.)

4. Bill Clinton (Former Pres.)

5. Rahn Emanuel (Chicago Mayor)

Page 12: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

How long would it take you to count for an entire newspaper?

20 Pages

8 columns/page

6 paragraphs/column

40 words/paragraph

= 38,400 words in a newspaper

If you read 250 words per minute, 38,400 /250 = 153.6 minutes

Word count of NYTimes front-page articles: 12,496 (45 double-spaced pages)

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 12

http://ask.metafilter.com/18970/How-many-words-on-the-front-page

Page 13: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

Goal: use computers to answer these types of questions

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 13

Define Problem

Find Data

Write a set of instructions

Solution

Computer

Page 14: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

“On the Bias.” Geoffrey Nunberg, on NPR’s Fresh Air

Things to think about:

• What decisions/assumptions did Nunberg make?

• How did he justify his assumptions?

• What are potential criticisms?

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 14

Define Problem

Find Data

Page 15: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

Break

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 15

Page 16: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

About the Course

Everything you need will be on the website: http://www.cs.brown.edu/courses/cs0931/index.shtml Read “About CS0931” and the Course Missive Fill out the Collaboration Policy Two units: • Analyzing Voting Patterns using Excel • Analyzing Texts using Python Weekly Homeworks Two Unit Projects, One Final Project

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 16

Page 17: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

About the Course

Everything you need will be on the website: http://www.cs.brown.edu/courses/cs0931/index.shtml Read “About CS0931” and the Course Missive Fill out the Collaboration Policy Two units: • Analyzing Voting Patterns using Excel • Analyzing Texts using Python Weekly Homeworks Two Unit Projects, One Final Project

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 17

Page 18: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

About the Course

Everything you need will be on the website: http://www.cs.brown.edu/courses/cs0931/index.shtml Read “About CS0931” and the Course Missive Fill out the Collaboration Policy Two units: • Analyzing Voting Patterns using Excel • Analyzing Texts using Python Weekly Homeworks Two Unit Projects, One Final Project

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 18

Page 19: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

You’ll Have Help

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 19

Faculty: Tom Doeppner Steve Reiss Shriram Krishnamurthi (On sabbatical)

Spike Hughes (On sabbatical)

Instructor: Anna Ritz

Page 20: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

You’ll Have Even More Help

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 20

Tas: Flora Jin Jonah Kagan

Head TA: Maria (Gabby) Suarez

Jeanette Miranda Ruth Simmons

Page 21: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

You’ll Have Even More Help

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 21

Tas: Flora Jin Jonah Kagan

Head TA: Maria (Gabby) Suarez

Jeanette Miranda Ruth Simmons

Jadrian Miles

Page 22: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

Odds & Ends

Flash drive will be useful

You will be able to do all homeworks/projects on a PC and most homeworks on a Mac

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 22

Page 23: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

Odds & Ends

Flash drive will be useful

You will be able to do all homeworks/projects on a PC and most homeworks on a Mac

Checking email, facebook, etc. in class will not help you.

CS0931 - Intro. to Comp. for the Humanities and Social Sciences 23

Page 24: CS0931: Introduction to Computation for the …cs.brown.edu/courses/cs0931/2012/lectures/LEC1-1.pdfCS0931 - Intro. to Comp. for the Humanities and Social Sciences 3 “Liberal bias

Odds & Ends

Flash drive will be useful

You will be able to do all homeworks/projects on a PC and most homeworks on a Mac

Checking email, facebook, etc. in class will not help you.

Always be thinking about problems, data sources, etc. Your projects will benefit from it. CS0931 - Intro. to Comp. for the Humanities and Social Sciences 24