Code Monkey home page Code Monkey logo

nhl-ticket-sales-promotions's Introduction

Included in this repo is a project examining how various factors impact ticket sales across the NHL and for the Detroit Red Wings. Said factors were then used to create a linear regression model to predict fan attendance of games throughout the season.

Be sure to check out the write-up in 'documentation' for a detailed report of data acquisition, methods, analysis, and results! The write-up for this project is unique in that it evaluates literature from the MLB suggesting factors that may impact fan attendance, applies them to the NHL, and considers how a dynamic pricing model would be beneficial to the Detroit Red Wings.

Data used in the analysis was provided by hockey-reference.com and nhl.com/redwings/tickets/promotions.

Note that due to the hockey-reference.com's reuse of the attendance page URL season-to-season, attendance numbers for the 2022-2023 NHL season are no longer available to scrape. Thus, the saved files with said attendance data are included in 'raw_data' for replicability. Additionally, when scraping individual team attendance data from hockey-reference.com, a 429 error capped the initial scrape at 30 of the 32 teams, so a separate, second scrape was performed to acquire the final 2 teams data. Again, to aid replicability of this project, both saved files with the scraped data were included in 'raw_data.'

The same issue of reuse of URL was observed with the Detroit Red Wings promotional schedule webpage, but no file was created to save the 2022-2023 season promotional schedule so that aspect of the analysis cannot be replicated. However, the analysis can be re-run with the promotional schedule code on the 2023-2024 season attendance data when it becomes available.

nhl-ticket-sales-promotions's People

Contributors

lakenrivet avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.