-
Notifications
You must be signed in to change notification settings - Fork 32
Idea #1 Justin Wong #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jcw629
wants to merge
9
commits into
ernbilen:main
Choose a base branch
from
jcw629:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
52477b1
Idea #1 Justin Wong
jcw629 832c720
Create Idea 2.md
jcw629 15ab824
Create Mini Project 1_JustinWong.pdf
jcw629 4bd397a
Create Mini Project 1_JustinWong.pdf
jcw629 e94cb55
Delete Mini Project 1_JustinWong.pdf
jcw629 22dfbf4
Create Portfolio Analysis Presentation .pptx
jcw629 f4367ea
Stock Portfolio Dashboard slides
jcw629 8e77bda
Delete Stock Portfolio Dashboard slides.pptx
jcw629 37ed2d0
Create Stock Portfolio Dashboard slides (1).pptx
jcw629 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # Idea | ||
| Justin Wong | ||
| Data 400 | ||
| 1/30/2025 | ||
|
|
||
| ### Research Question: | ||
| How do major sporting events impact crime rates in surrounding areas after games? | ||
|
|
||
| ### Data Collection: | ||
| I plan to collect crime data by scraping public crime mapping platforms to obtain timestamps, locations, and types of crimes reported. To gather game data, including results and locations, I can scrape sports team websites, ticketing platforms like Ticketmaster, and use ESPN as a source of information. | ||
| ### Scope: | ||
| I plan to focus specifically on the New York area due to my personal interest in NY basketball, particularly the passionate fanbase of the New York Knicks. Tracking crimes based on geographical proximity to the arena may provide insight into whether winning or losing has an effect on crime in the area. | ||
|
|
||
| ### Data preprocessing: | ||
| For crime data collection, I can either web scrape public crime mapping platforms or use pre-existing datasets. The NYPD provides crime mapping data for NYC, which I have already identified as a potential source (https://compstat.nypdonline.org/). Game day data is publicly available online and can also be found in Kaggle datasets, so scraping may not be necessary. However, game attendance and factors like playoff games may require scraping from team websites or ticketing platforms. | ||
| ##### Potential Additions: | ||
| Spatial Analysis (Geospatial Crime Mapping & Heatmaps) | ||
| Method: Use GIS (Geographic Information Systems) or kernel density estimation (KDE) to visualize crime hotspots before and after games. | ||
|
|
||
| Helps determine whether crime shifts spatially based on game events. | ||
|
|
||
|
|
||
| ### Correct Specification of the Model: | ||
| For my proposed model, I plan to use regression analysis to determine whether my dependent variable—crimes/incidents in the post-game period—is affected by independent variables such as game outcomes, attendance levels, and game type. I will analyze both historical and current data to assess whether team performance influences crime rates. | ||
|
|
||
| ### Implications for Stakeholders: | ||
| Regarding the legality of scraping data, it is possible and legal to scrape the various websites I have listed. Additionally, I will ensure that no personal names or identifying information are included in my analysis, maintaining confidentiality. The majority of the data I will be using is publicly available, and this project is for research purposes, not for profit. | ||
|
|
||
| ### Ethical, Legal, and Societal Implications: | ||
| In terms of legality of scaping for the proposed data, it is possible and legal to scrape the varous websites I have listed. I am also refraining from using names in my analysis, so people information will remain confidential. Most of the data being obtained is public information. As well as I am not selling this project for profit. | ||
| ### Conclusion | ||
| -Summarize findings and their relevance to stakeholders. | ||
|
|
||
| -Propose actionable recommendations for public safety and event management. | ||
|
|
||
| -Discuss potential extensions, such as analyzing additional cities or types of events. | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a cool idea, and I think you could use a regression model to compare certain events and how they simultaneously change with the stock market. You could use an interaction coefficient which would account for changes in two variables at the same time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # IDEA 2 | ||
| ## Research Question | ||
| How do major geopolitical events, elections, or sporting events (e.g., Super Bowl, Olympics) impact stock market volatility and investor sentiment? | ||
|
|
||
| ## Data Collection | ||
|
|
||
| ### Stock Market Data | ||
| - **Stock Prices & Indices:** S&P 500, Dow Jones, NASDAQ, and sector-specific indices (Yahoo Finance). | ||
| - **Volatility Measures:** VIX (CBOE Volatility Index) as a measure of market uncertainty. | ||
| - **Historical Stock Returns:** Event-related stock price fluctuations. | ||
|
|
||
| ### Event Data | ||
| - **Political Events:** U.S. presidential elections, Brexit, major policy announcements, wars, trade agreements. | ||
| - **Sporting Events:** Super Bowl, FIFA World Cup, Olympics, UEFA Champions League final. | ||
| - **Unexpected Crises:** COVID-19, financial crashes, or natural disasters. | ||
|
|
||
| ### Sentiment Data | ||
| - **News & Media Sentiment:** Scrape financial news (CNBC, Bloomberg, WSJ) and analyze headlines using sentiment analysis (Natural Language Processing). | ||
| - **Social Media Sentiment:** Scrape Twitter, Reddit, and investor forums (e.g., r/wallstreetbets) to gauge real-time sentiment. | ||
|
|
||
| ## Data Preprocessing | ||
| - Align event dates with stock price movements before, during, and after events. | ||
| - Convert textual sentiment (news, social media) into numerical scores. | ||
| - Normalize stock price data to remove seasonal trends and unrelated market movements. | ||
|
|
||
| ## Methodology | ||
|
|
||
| ### 1. Event Study Analysis | ||
| - Measure **Abnormal Returns (AR)** and **Cumulative Abnormal Returns (CAR)** around event dates. | ||
| - Compare stock returns during event windows (pre-event, event-day, post-event) to expected returns. | ||
|
|
||
| ### 2. Volatility Analysis | ||
| - Measure volatility spikes. | ||
| - Compare volatility for event periods vs. non-event periods. | ||
|
|
||
| ### 3. Sentiment Analysis | ||
| - Use NLP techniques (e.g., VADER or BERT models) to score news headlines and social media sentiment. | ||
| - Correlate sentiment shifts with stock price movements. | ||
|
|
||
|
|
||
| ## Implications for Stakeholders | ||
| - **For Investors:** Helps investors hedge risks associated with major global events. | ||
| - **For Policymakers:** Provides insights into how economic policies influence markets. | ||
| - **For Financial Analysts:** Guides trading strategies based on historical event-driven market behavior. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be interesting to see if you could truly identify whether the crime was a result of the sporting event itself. You could create a heat map of crimes that occur in proximity to Madison Square Garden before and after certain sporting events to visually compare the frequency.