{"id":20303339,"url":"https://github.com/vbhvsingh0/nflteam_corr_population","last_synced_at":"2026-06-29T15:31:19.951Z","repository":{"id":247678604,"uuid":"826528103","full_name":"vbhvsingh0/NFLteam_corr_population","owner":"vbhvsingh0","description":"The goal of this project is to find the correlation in between NFL teams' win and loss with the population of the city. ","archived":false,"fork":false,"pushed_at":"2024-07-09T23:10:32.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T06:45:18.543Z","etag":null,"topics":["data-analysis","data-cleaning-and-preprocessing","data-manipulation-with-pandas","numpy-library","pandas-python","pearson-correlation","python3"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vbhvsingh0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-09T22:05:59.000Z","updated_at":"2024-07-10T15:29:30.000Z","dependencies_parsed_at":"2024-07-10T03:11:17.406Z","dependency_job_id":"ddc5c482-6ef5-4393-85e8-ec10b4934679","html_url":"https://github.com/vbhvsingh0/NFLteam_corr_population","commit_stats":null,"previous_names":["vbhvsingh0/nflteam_corr_population"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vbhvsingh0/NFLteam_corr_population","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbhvsingh0%2FNFLteam_corr_population","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbhvsingh0%2FNFLteam_corr_population/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbhvsingh0%2FNFLteam_corr_population/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbhvsingh0%2FNFLteam_corr_population/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vbhvsingh0","download_url":"https://codeload.github.com/vbhvsingh0/NFLteam_corr_population/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbhvsingh0%2FNFLteam_corr_population/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34933498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-analysis","data-cleaning-and-preprocessing","data-manipulation-with-pandas","numpy-library","pandas-python","pearson-correlation","python3"],"created_at":"2024-11-14T16:36:49.735Z","updated_at":"2026-06-29T15:31:19.927Z","avatar_url":"https://github.com/vbhvsingh0.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NFLteam_corr_population\n\nThe goal of this project is to find the correlation between the USA Sports teams' wins with respect to the population of the city. \n\nNote: This project was a part of the Coursera course, \"Introduction to Data Science in Python\" offered by University of Michigan.\n\nA file of metropolitan regions and associated sports teams was taken from assets/wikipedia_data.html . Each of these regions may have one or more teams from the \"Big 4\": NFL (football) , MLB (Baseball), NBA (basketball) or NHL (Hockey). For each sport I would like to answer the question: what is the win/loss ratio's correlation with the population of the city it is in? Win/Loss ratio refers to the number of wins over the number of wins plus the number of losses. The data for the win-loss ratio for the four sports are provided as .csv files. To calculate the correlation with pearsonr, two ordered lists of values were involved, the populations from the wikipedia_data.html file and the win/loss ratio for a given sport in the same order. The win/loss ratios for those cities which have multiple teams of a single sport were averaged. \n\nNote: The analysis was done only for the data after the year 2018.\n\nCorrelations were calculated separately for each of the 4 sports. The scripts written to calculate correlations are in the files nhl_corr.py, nba_corr.py, mlb_corr.py, nfl_corr.py for NHL, NBA, MLB, and NFL respectively.\n\nObservation: Interestingly, the NBA, NFL, and MLB showed a positive correlation, but the NHL had a negative correlation. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbhvsingh0%2Fnflteam_corr_population","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvbhvsingh0%2Fnflteam_corr_population","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbhvsingh0%2Fnflteam_corr_population/lists"}