{"id":13935183,"url":"https://github.com/rouseguy/intro2stats","last_synced_at":"2025-05-16T19:02:14.239Z","repository":{"id":31751829,"uuid":"35317949","full_name":"rouseguy/intro2stats","owner":"rouseguy","description":"Introduction to Statistics using Python","archived":false,"fork":false,"pushed_at":"2020-10-08T20:56:50.000Z","size":1020,"stargazers_count":906,"open_issues_count":6,"forks_count":381,"subscribers_count":59,"default_branch":"master","last_synced_at":"2025-04-12T17:46:51.601Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/rouseguy.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}},"created_at":"2015-05-09T06:26:25.000Z","updated_at":"2025-03-25T21:57:45.000Z","dependencies_parsed_at":"2022-06-27T07:56:25.656Z","dependency_job_id":null,"html_url":"https://github.com/rouseguy/intro2stats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rouseguy%2Fintro2stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rouseguy%2Fintro2stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rouseguy%2Fintro2stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rouseguy%2Fintro2stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rouseguy","download_url":"https://codeload.github.com/rouseguy/intro2stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254592367,"owners_count":22097010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-07T23:01:27.132Z","updated_at":"2025-05-16T19:02:14.185Z","avatar_url":"https://github.com/rouseguy.png","language":"Jupyter Notebook","readme":"# Introduction to Statistics\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rouseguy/intro2stats/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n\nInspired by Allen Downey's books [Think Stats](http://greenteapress.com/thinkstats/) and [Think Bayes](http://greenteapress.com/thinkbayes/), this is an attempt to learn Statistics using an application-centric programming approach. \n\n## Objective\nShowcase real-life examples and what statistics to use in each of those examples. Almost every book teaches a concept and shows an example. Ultimately, every topic gets treated separately and no holistic view is presented. Here, we would take examples and see how to make sense out of it. \n\n## Topics covered\n\n* Mean, Median, Mode\n* Standard Deviation\n* Variance\n* Co-variance\n* Probability Distribution\n* Hypothesis Testing\n* t-test, p-value, chi-squared test\n* Confidence Intervals\n* Confidence levels and Sigificance levels\n* Correlation\n* Resampling (and uses in Big Data)\n* A/B Testing\n* A simple linear regression model\n\n## Workshop Plan\nWe would be using Marijuana prices in various states of the USA, along with demographic data of the USA based on the latest census data\n\nThere will be separate ipython notebooks - grouped by topic similarities. *notebooks will be uploaded later*\nSome examples include:\n* Find sum of people buying weed in a year, by various states.\n* Find mean of price in a week/month, by various states.\n* Find variance of price in selected states. Find variance of selected states by week of month\n* Define distribution. Plot histograms\n* Determining outliers (Plots, quantiles, box plots, percentiles) in weed price data\n* Continuous distributions(exponential distribution, normal distribution)\n* Introduction to Probability\n* Hypothesis testing. Check if weed price across states are similar or not. Check for different qualities of weed\n* Resampling\n* Simple regression model: Predict weed price for the next month. Understand the output and diagnostics\n* Introduction to A/B testing: Impact of regulation and deregulation on a couple of states \n\n\n## Prerequisites\n* Basics of Python. User should know how to write functions; read in a text file(csv, txt, fwf) and parse them; conditional and looping constructs; using standard libraries like os, sys; lists, list comprehension, dictionaries\n* It is good to know basics of the following:\n    * Numpy\n    * Scipy\n    * Pandas\n    * Matplotlib\n    * Seaborn\n    * IPython and IPython notebook - Everything here would be an IPython notebook\n* Software Requirements\n    * Python 2.7\n    * git - so that this repo can be cloned :)  \n    * virtualenv\n    * Libraries from *requirements.txt*\n\n## Optional\nUsers could choose to install Anaconda, if they want. If using Anaconda or Enthought, please ensure that all libraries listed in the requirements.txt are installed. \n\n*Note to Windows Users*: Neither of us use Windows. From past workshop experiences, Windows users have faced issues installing the way explained below. It is advisable to install Anaconda and ensure that all the libraries listed in the *requirements.txt* file are installed.  \n\n## Setup Guide\n\n#### Clone the repository\n    $ git clone https://github.com/rouseguy/intro2stats.git\n\n#### Create a virtual environment \u0026 activate\n    $ cd intro2stats\n    $ virtualenv env\n    $ source env/bin/activate\n\n#### Install reqirements from requirements file\n    $ pip install -r requirements.txt\n\n#### Note: Make sure you have libraries for png \u0026 freetype.\nUbuntu users can install the below\n\n    apt-get install libfreetype6-dev\n    apt-get install libpng-dev\n\n### Script to check if installation is fine for the workshop\nPlease execute the following at the command prompt\n\n    $ python check_env.py\n\nIf any library has a `FAIL` message, please install/upgrade that library.\n\n---\n\n\u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"\u003e\u003cimg alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by/4.0/88x31.png\" /\u003e\u003c/a\u003e\u003cbr /\u003e\u003cspan xmlns:dct=\"http://purl.org/dc/terms/\" property=\"dct:title\"\u003eIntroduction to Statistics using Python\u003c/span\u003e by \u003ca xmlns:cc=\"http://creativecommons.org/ns#\" href=\"https://twitter.com/bargava/\" property=\"cc:attributionName\" rel=\"cc:attributionURL\"\u003eBargava\u003c/a\u003e and \u003ca xmlns:cc=\"http://creativecommons.org/ns#\" href=\"https://twitter.com/raghothams/\" property=\"cc:attributionName\" rel=\"cc:attributionURL\"\u003eRaghotham\u003c/a\u003e is licensed under a \u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"\u003eCreative Commons Attribution 4.0 International License\u003c/a\u003e.\n\n\n\n","funding_links":[],"categories":["Jupyter Notebook","Statistics"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frouseguy%2Fintro2stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frouseguy%2Fintro2stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frouseguy%2Fintro2stats/lists"}