Lists of Lists & Hypothesis Testing

Similar documents
Ranking Senators w/ Ted Kennedy s Votes

Sorting Senators, Collecting Data

Year 10 Mocks Exam Timetable 2017

MAIN INTERSTATE TRAIN SERVICES SUMMARY TIMETABLES (24 CLOCK USED) SYDNEY CANBERRA

Memorial Arts Centre. Wetaskiwin, AB Contact:

2014 SONY OPEN A PREMIER TENNIS TRAVEL EXPERIENCE

FOREIGN TRAVEL ORDER REVISION D IMPACT

Haemonetics North America Regional Sales Meeting Haemonetics

Walmart Store Planning-Mesa #2768 WalMart Store Planning

2019 DRAFT Cruise Ship Schedule

Queensland University of Technology Transport Data Analysis and Modeling Methodologies

Holiday Concert. Check Us Out HAND BELL CHOIR. Orange Park Branch Library Monday, December 3 6:00pm - 7:00pm

SUMMER 2018: GCSE EXAM TIMETABLE

Enter here your Presentation Title 1

TLC Citywest Itinerary 2016

Goose Pond Scout Reservation 2015 PRE-CAMP WORKSHEETS Please mail, fax or all forms to camp at least 1 week prior to your arrival.

10/19/11 Approved. November Sun Mon Tue Wed Thu Fri. Diagonal pattern marks the most recent revision(s)

RVP-AVP-SSE Meeting

3627 S. Westshore Blvd. Tampa, Florida (813)

DOWNSTATE SANITATION COURSES Course Course Course Class Day. City/Location Code Arrive at 3:00 p.m. for exam

FRIENDS OF THE INTERNATIONAL CENTER MASTER CALENDAR

LCCs: in it for the long-haul?

Where do trends come from? Join us in Milan, Italy for EuroCucina 2018 April 16 20, 2018 See tomorrow s trends, today!

Date Start Len Level Board Code Component Title

BOOKING FORM ADDITIONAL TICKETS FOR SEASON TICKET HOLDERS

CWEA 2018 Annual Conference Exhibit, Engage & Learn.

USA Ski Trip th Dec th Jan 2018

You must have: Ruler graduated in centimetres and millimetres, protractor, pen, HB pencil, eraser, calculator.

JUNGLE SURVIVAL

Date Day Ladies Tees Date Day Ladies Tees Date Day Ladies Tees Date Day Ladies Tees

Guest Directory. Extension Numbers

Online Appendix to Quality Disclosure Programs and Internal Organizational Practices: Evidence from Airline Flight Delays

Siemens Financial Global Offsite (Phoenix & San Francisco)

Report for Jan-Nov-2006 pdf. General Statistics

EXAM TIMETABLE SUMMER 2018 ( A LEVEL & LEVEL 3 IN BLUE)

Course Course Dates Class Days City/Location Code Arrive at 3:00 pm for exam

LEADERS 3DS 2018 Proposal from Corinthia Hotel St. George s Bay St. George's Bay, St. Julian's, STJ 3301, Malta

ESPN-3/24 & 3/26 CBB: Women's Regionals-Oklahoma City, OK

Mahaska County Little League Rookie Girls Dairy Queen

2013 PROPOSED WORKSHOP PROGRAMME

SEYCHELLES CIVIL AVIATION AUTHORITY Seychelles International Airport. Summer Schedule 2017 (5 th Edition)

A GUIDE TO USING YOUR CONCESSIONARY PASS ON THE TRAM

SOME THINGS TO DISCUSS:

Kia Stinger Ride and Drive

MONTHLY OPERATIONS REPORT SEPTEMBER 2015

Inverness Library Profile Annual Library Profile Inverness Library.

2016 Saga Hot Air Balloon World Championship Brief Summary

Kiamichi Quilt Guild. December Debbie s Dialogue. Wishing everyone a very Blessed Holiday Season.

ABOUT HOUSE INNOVATIVE TECHNOLOGIES AFRICA 5 2 X EDELWEISS DINING CHAIRS, ASH AND WHITE X EDELWEISS DINING CHAIRS, ASH AND YELLOW 8-9

DECA Facility Hours As of 29 January 2018

Indianapolis Museum of Art - Rental Information

Deep in the Heart of Louisiana 4' x 6' watercolor by Driftwood Johnnie

MONTHLY OPERATIONS REPORT DECEMBER 2015

Aviation Crisis Management in Europe

SUMMER 2018 EXAM TIMETABLE

Flight Schools at SMO

Level Board Component Title Component Code Date Start Length SUMMER 2018

ATTEND Analytical Tools To Evaluate Negotiation Difficulty

EJO English Language Programmes

Magothy River Middle School s Parent Weekly Update

clubmini Vic 2018 Calendar v1.0 JANUARY 2018 FEBRUARY D E C 2 9 J A N S C H O O L H O L I D A Y S

RENTAL INFORMATION. Call today to book our facility for your:

Table 1. Tab 11 - Data Filtering

John F. Germ President, Rotary International

EJO English Language Programmes

Donation Drop-off Locations

Mercer Island Town Center Stakeholder Meeting E. June 10, 2015

Meal Planning My Organized Chaos. Jo Ebisujima

Tue 14 May 09:00 01:30 EDEXL/GCE 8PH0 01 Physics Core Physics I GCE/ASB Tue 14 May 09:00 00:35 WJEC/GCSE 3800U20-1 French French Unit 2 Foundation:

SuperStar Virgo (SSV) Ex Shenzhen (Shekou) Cruise Fares valid from 1 st December, st March, 2017 in Indian Rupees

Preschool Swimming Lessons

Victorian Mission to the US and AdvaMed 2014 Draft Itinerary (at 27 September 2014)

Date Start Length Board Code Component Title Level

THE BOWSPRIT. Sponsors. Calendar Page 2. Page 4

Title. Issue Date Doc URL. Type. Additional There Information. File Information. report. 32_chapter-1.

Phoenix Braeburn-REMS National & Regional Training Chicago

It wouldn t be Christmas without...

North America West Coast Central America West Coast WAMS

OraPharma/ECR National Sales Meeting - GCI 83354

Consolidation Project Start: Mon 9/3/18 ID: 1 Finish: Fri 4/26/19 Dur: 170 days Comp: 0%

Lamaze 2018 Annual Meeting Request For Proposal_

Volunteer Interest Form

Trinity Catholic High School Summer 2018 Exam Timetable

Market Weighton And Yorkshire Wolds Central Explorer Maps Os Explorer Map

Cinema Listings for: All dates

International Conference on Technology in Mathematics

Joint Base Lewis - McChord Leisure Travel Services (LTS) Price List - Hotels

California Trail Middle School Volleyball Schedule

Star Cruises Super Star Gemini Ex Port Klang

FMS - MJ - Stafford Springs (Monster Jam/Feld Entertainment)

Ionia Downtown Development Authority March 2018 Newsletter

Timetable Summer 2018

Seatrade Cruise Global, Connecting the Global Cruise Industry March 14 17, 2016 Greater Fort Lauderdale

Seventh Grade 2003 pg. 4

Lewis & Clark Library Newsletter August 2017

Royal Bank of Scotland Glasgow Maryhill Branch Closure

Joint Base Lewis - McChord Leisure Travel Services (LTS) Price List - California

Employer: Dedham Health and Athletic Club. Dedham Health and Athletic Club

STUDIO TWENTY SEVEN. Postcards. Calendars. Fridge Magnets Keyrings. Mugs. Bookmarks. Piskies Coasters. Notebooks Pens Car Stickers

The 5Ws route. Wolverhampton City Centre Options WOLVERHAMPTON, WEDNESFIELD, WILLENHALL, WALSALL AND WEDNESBURY

Transcription:

Lists of Lists & Hypothesis Testing April 5, 2012 CS0931 - Intro. to Comp. for the Humanities and Social Sciences 1

Determining Authorship Define Problem Discern the Outlier: The one book that is NOT in the series of the others. Write a set of instructions Python Find Data 1 Book from Alice in Wonderland 5 Books from Wizard of Oz Solution CS0931 - Intro. to Comp. for the Humanities and Social Sciences 2

Excel Table Representations Rows: Indexed by 1,2,3 Cols: Indexed by A,B Cell B4 contains 4 CS0931 - Intro. to Comp. for the Humanities and Social Sciences 3

Table Representations Excel Python mylist = [[1,2],[3,4],[5,6]] Rows: Indexed by? Cols: Indexed by? Rows: Indexed by 1,2,3 Cols: Indexed by A,B How do you index to get 4? Cell B4 contains 4 CS0931 - Intro. to Comp. for the Humanities and Social Sciences 4

Table Representations Excel Python mylist = [[1,2],[3,4],[5,6]] Rows: Indexed by 0,1,2 Cols: Indexed by 0,1 Rows: Indexed by 1,2,3 Cols: Indexed by A,B How do you index to get 4? mylist[1][1] Cell B4 contains 4 CS0931 - Intro. to Comp. for the Humanities and Social Sciences 5

Activity 3-1 Task 1: build a list of lists [[0,1,2],[1,2,3],[2,3,4],[3,4,5],[4,5,6]] CS0931 - Intro. to Comp. for the Humanities and Social Sciences 6

Activity 3-1 Task 1: build a list of lists [[0,1,2],[1,2,3],[2,3,4],[3,4,5],[4,5,6]] Task 2: Write list of lists to a CSV file Separate columns by commas Separate rows by newlines ( \n ) CS0931 - Intro. to Comp. for the Humanities and Social Sciences 7

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

Determining Authorship Define Problem Discern the Outlier: The one book that is NOT in the series of the others. Write a set of instructions Python Find Data 1 Book from Alice in Wonderland 5 Books from Wizard of Oz Solution CS0931 - Intro. to Comp. for the Humanities and Social Sciences 9

Determining Authorship File Title Series Author file1.txt file2.txt file3.txt file4.txt file5.txt file6.txt CS0931 - Intro. to Comp. for the Humanities and Social Sciences 10

Determining Authorship File Title Series Author file1.txt Wonder Wizard of Oz Oz file2.txt Alice s Adventures in Wonderland file3.txt Dorothy and the Wizard in Oz Oz file4.txt Emerald City of Oz Oz file5.txt Royal Book of Oz Oz file6.txt Glinda of Oz Oz Alice in Wonderland CS0931 - Intro. to Comp. for the Humanities and Social Sciences 11

The Wizard of OZ About 40 Books, written by 7 different authors #1 #14 #15 #16 #33 Lyman Frank Baum (1856-1919) Published in 1921 Ruth Plumly Thompson http://www.ssc.wisc.edu/~zzeng/soc357/oz.pdf CS0931 - Intro. to Comp. for the Humanities and Social Sciences 12

Determining Authorship File Title Series Author file1.txt Wonder Wizard of Oz Oz Lyman Frank Baum file2.txt Alice s Adventures in Wonderland Alice in Wonderland Lewis Carroll file3.txt Dorothy and the Wizard in Oz Oz Lyman Frank Baum file4.txt Emerald City of Oz Oz Lyman Frank Baum file5.txt Royal Book of Oz Oz Ruth Plumly Thompson file6.txt Glinda of Oz Oz Lyman Frank Baum CS0931 - Intro. to Comp. for the Humanities and Social Sciences 13

Determining Authorship Are these values surprising? CS0931 - Intro. to Comp. for the Humanities and Social Sciences 14

Coin Flipping I flip a coin 25 times. I get 12 heads. Is this surprising? What if I get 3 heads? CS0931 - Intro. to Comp. for the Humanities and Social Sciences 15

Coin Flipping I flip a coin 25 times. I get 12 heads. Is this surprising? What if I get 3 heads? My Hypothesis: This coin is unfair. CS0931 - Intro. to Comp. for the Humanities and Social Sciences 16

Coin Flipping I flip a coin 25 times. I get 12 heads. Is this surprising? What if I get 3 heads? My Hypothesis: This coin is unfair. How do I prove this? CS0931 - Intro. to Comp. for the Humanities and Social Sciences 17

Coin Flipping What if this penny was a person?? CS0931 - Intro. to Comp. for the Humanities and Social Sciences 18

Coin Flipping What if this penny was a person?? Innocent until proven guilty CS0931 - Intro. to Comp. for the Humanities and Social Sciences 19

Coin Flipping My Hypothesis: This coin is unfair. The Innocent Hypothesis: CS0931 - Intro. to Comp. for the Humanities and Social Sciences 20

Coin Flipping My Hypothesis: This coin is unfair. The Innocent Hypothesis: The coin is heads with probability 0.5 CS0931 - Intro. to Comp. for the Humanities and Social Sciences 21

Coin Flipping My Hypothesis: This coin is unfair. Alternate hypothesis The Innocent Hypothesis: The coin is heads with probability 0.5 Null hypothesis CS0931 - Intro. to Comp. for the Humanities and Social Sciences 22

Hypothesis Testing Alternate hypothesis: The coin is unfair. Null hypothesis: The coin is heads with prob. 0.5 We want to reject the null hypothesis by showing that it is unlikely to get only 3 heads with a fair coin. CS0931 - Intro. to Comp. for the Humanities and Social Sciences 23

Hypothesis Testing Alternate hypothesis: The coin is unfair. Null hypothesis: The coin is heads with prob. 0.5 We want to reject the null hypothesis by showing that it is unlikely to get only 3 heads with a fair coin. Prove that the coin is NOT innocent. CS0931 - Intro. to Comp. for the Humanities and Social Sciences 24

Hypothesis Testing Alternate hypothesis: The coin is unfair. Null hypothesis: The coin is heads with prob. 0.5 We want to reject the null hypothesis by showing that it is unlikely to get only 3 heads with a fair coin. Open coinflip.xls Prove that the coin is NOT innocent. CS0931 - Intro. to Comp. for the Humanities and Social Sciences 25

Project 2 Notes Feedback over the weekend Not going to be as in-depth as the first project Sun Mon Tues Wed Thurs Fri Sat 4/1 4/2 4/3 4/4 4/5 4/6 4/7 Proposal Due 4/8 4/9 4/10 4/11 4/12 4/13 4/14 Project 2 Due (Code) 4/15 4/16 4/17 4/18 4/19 4/20 4/21 Project 2 Due (Website) CS0931 - Intro. to Comp. for the Humanities and Social Sciences 26