Sports Data Sources and Data Extraction Gavin Zhang MIS580 University of Arizona 02-06-2008.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Jack Jedwab Association for Canadian Studies September 27 th, 2008 Canadian Post Olympic Survey.
Números.
AGVISE Laboratories %Zone or Grid Samples – Northwood laboratory
ED REED Edward Earl Reed Jr. (born September 11, 1978 in St. Rose, Louisiana) is an American football free safety for the Baltimore Ravens of the National.
Fill in missing numbers or operations
EuroCondens SGB E.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2013 Elsevier Inc. All rights reserved.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
UNITED NATIONS Shipment Details Report – January 2006.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Whiteboardmaths.com © 2004 All rights reserved
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
CALENDAR.
0 - 0.
CHAPTER 18 The Ankle and Lower Leg
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Year 6 mental test 5 second questions
ZMQS ZMQS
The 5S numbers game..
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
Report Card P Only 4 files are exported in SAMS, but there are at least 7 tables could be exported in WebSAMS. Report Card P contains 4 functions: Extract,
Break Time Remaining 10:00.
The basics for simulations
1 IMDS Tutorial Integrated Microarray Database System.
PEPS Weekly Data Extracts User Guide September 2006.
Microsoft Office 2007 Integration Integrating Office 2007 Applications and the World Wide Web.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Office 2003 Integration Integrating Office 2003 Applications and the World Wide Web.
Green Eggs and Ham.
1 Prediction of electrical energy by photovoltaic devices in urban situations By. R.C. Ott July 2011.
Dynamic Access Control the file server, reimagined Presented by Mark on twitter 1 contents copyright 2013 Mark Minasi.
1 3GPP TSGs SA Meeting #49, San Antonio, Texas, USA, September 2010 SP © 3GPP Organizational Partners Satisfaction survey results In.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
We are learning how to read the 24 hour clock
Biology 2 Plant Kingdom Identification Test Review.
CMPT 275 Software Engineering
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Facebook Pages 101: Your Organization’s Foothold on the Social Web A Volunteer Leader Webinar Sponsored by CACO December 1, 2010 Andrew Gossen, Senior.
Before Between After.
Macromedia Dreamweaver MX 2004 – Design Professional Dreamweaver GETTING STARTED WITH.
Addition 1’s to 20.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT WORD Lesson 8 – Increasing Efficiency Using Word.
25 seconds left…...
Subtraction: Adding UP
: 3 00.
5 minutes.
Types of clocks. Types of clocks Sand clock or Hourglass clock.
Week 1.
WorkKeys Internet Version Training
Static Equilibrium; Elasticity and Fracture
Clock will move after 1 minute
Bottoms Up Factoring. Start with the X-box 3-9 Product Sum
PSSA Preparation.
Select a time to count down from the clock above
RefWorks: The Basics October 12, What is RefWorks? A personal bibliographic software manager –Manages citations –Creates bibliogaphies Accessible.
Session ID Presented by: Steve Mason & David Morelli Pacific University Oregon April 9, 2013 Session ID 2699 Recruiter Enrichment the New Age Enrich.
Pupil Premium CSV File Import & Maintain Jim Haywood Product Manager for Statutory Returns.
Benchmark Series Microsoft Excel 2013 Level 2
WARNING This CD is protected by Copyright Laws. FOR HOME USE ONLY. Unauthorised copying, adaptation, rental, lending, distribution, extraction, charging.
A Data Warehouse Mining Tool Stephen Turner Chris Frala
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Introduction Embedded Universal Tools and Online Features 2.
1 What is the Internet Archive We are a Digital Library Mission Statement: Universal access to human knowledge Founded in 1996 by Brewster Kahle in San.
Presented to: By: Date: Federal Aviation Administration FAA Safety Team FAASafety.gov AMT Awards Program Sun ‘n Fun Bryan Neville, FAASTeam April 21, 2009.
Schutzvermerk nach DIN 34 beachten 05/04/15 Seite 1 Training EPAM and CANopen Basic Solution: Password * * Level 1 Level 2 * Level 3 Password2 IP-Adr.
Presentation transcript:

Sports Data Sources and Data Extraction Gavin Zhang MIS580 University of Arizona

2 Outline Sports Data Sources –Baseball –Basketball –Football –Olympics –Greyhound Data Extraction –Case Study: AZGreyhound System

3 Baseball Data Source Download the database

4 Data Download This database contains pitching, hitting, and fielding statistics for Major League Baseball from 1871 through –The data are provided in Microsoft Access, CVS and other formats. –The newest version is Version 5.5. The database can be downloaded at:

5 Database Detailed description of the database is available at: The database has 21 tables; main tables include: –MASTER Table- Player names, DOB, and biographical info; –Batting Table- batting statistics; –Pitching Table- pitching statistics; –Fielding Table- fielding statistics. Detailed description about each data field in each table is available. AwardPlayers.csv … …

6 Basketball Data Source Download all of the player and team statistics

7 Data Download The website contains the NBA data from 1947 to 2007 and ABA data from 1968 to 1976 on players, teams, leagues, all-star games, awards, and coaches. Download at: stats_download.htm

8 Database This download contains nine column delimited files (.txt format), each of which represents a table in the database. If you open the files up in excel, you may need to select Data -> Text to Columns, then use the bar ("|") character as the delimiter. Teams.txt team|location|name|leag ANA|Anaheim|Amigos|A AND|Anderson|Duffey Packers|N ATL|Atlanta|Hawks|N BA1|Baltimore|Bullets|N BAL|Baltimore|Bullets|N BOS|Boston|Celtics|N BUF|Buffalo|Braves|N CAP|Capital|Bullets|N CAR|Carolina|Cougars|A CH1|Chicago|Stags|N CH2|Chicago|Zephyrs|N CHA|Charlotte|Hornets|N CHI|Chicago|Bulls|N … …

9 Football Data Source

10 Data Download A copy of data set (in CVS format) can be downloaded from: refernce_CSV.zip This version contains the game data from 1995 to The dataset contains 64,327 players and the games they played in. Tables include: –Masterinformation about players –Seasonsthe statistics of the players records by season –Gamesthe statistics of the players records by game Detailed description about each data field in each table is available.

11 Database … … Master.csv

12 Some Other Football Data Sources –The website contains the National Football League (NFL) data from 1922 to 2005 and Australian Football League (AFL) data from 1960 to 1969 on players, teams, leagues, awards, and coaches. –Data set can not be downloaded directly. The data need to be extracted from the HTML Web pages by using parsing programs. –The website contains the player/coach statistics of NFL from 1920 to present and statistics of AFL from 1960 to –Data set can not be downloaded directly. The data need to be extracted from the HTML Web pages by using parsing programs.

13 Olympics Data Source

14 Data Format DatabaseOlympics.com is your source for every Summer and Winter Olympics medal winner. –Summer Olympics from ; – Winter Olympics You'll find every medal winner for every country with easy links to each Olympics, sports, and athletes.

15 Data Format

16 Greyhound

17 Data Format Data includes daily race programs (videos) and odds charts (.txt file format) for all US Greyhound tracks. Some tracks had both Afternoon and Evening programs.

18 Data Format Chart.txt 1st Grade: B Distance: 550 Condition: Fast DOG WT P O 1/8 Str Fin Time Odds Comment PTL Jane ns Held At Wire Inside Silver Speck ns Cutff 1st, Stayd Cls Jain't It Doug Closed For Show Outs Flyer Whitesocks In The Hunt Flying Detroit Not Far Behind Mdtrk VP Twix Twizala Losing Position Ins Sergio Blocked 1st Turn Heartattack Jack Bumped 1st Turn … … … …

Case Study: AZGreyhound System By Rob Schumaker

20 AZGreyhound System Design AZGreyhound System DB Race Data Odds Data Greyhound Data AZGreyhound Model Building Training / Testing Prediction Win Metrics Accuracy Payout Efficiency Place Show Traditional Betting Engine Exacta Trifecta Superfecta Straight Bets Quiniela Trifecta Superfecta Box Bets

21 Greyhound Data Extraction Grayhound data was gathered from The Web site links to: –GreyMatter –TrackInfo The race and odds data was parsed into a SQL Server database; then the data was sent to the AZGreyhound system for prediction.

22 Example code public void RacePrograms() throws Exception {... String URL1 = " String URL2 = "/Rpages";... OpenConnection2(); try { TrackAbbrev = rSet.getString("TrackAbbrev"); String URL = URL1 + TrackAbbrev + URL2; Feed = web.Scraper(URL, 1);... NumItems = web.NumItems(Feed, "~icons/html.gif"); for(int y = 1; y <= NumItems; y++) { Feed = Feed.substring(Feed.indexOf("~icons/html.gif")); FileName = web.ExtractText(Feed, " "); Feed = Feed.substring(Feed.indexOf("<A HREF=")); FileDate = web.ExtractText(Feed, "NOWRAP>", " "); FileContents = web.Scraper(URL + "/" + FileName, 1); FileContents = FileContents.replaceAll("'", "-"); db.Insert2DBProgram(FileName, FileDate, FileContents); } } CloseConnection2(); } catch(SQLException e) { System.out.println(e); } } This method picks up the overall race information and puts it in the database Data parsing URL Parsing out each data field Insert into DB

23 You can use the sports data sources introduced in this set of slides for your data mining project. You are strongly encouraged to identify other interesting public sports data sets for your project. Thanks!