/notebooks

My IPython notebooks

Primary LanguageJupyter Notebook

notebooks

This is a collection of my study notes and lecture notes, on various topics, in Jupyter-notebook format.

You're free to you use them for educational, academic, or other noncommercial purposes, but I'd appreciate a citation.

Statistics & Data Analysis

  • (Non)Correlation between zodiac signs and body weight Astrologers claim a lot of weird things, including that some zodiac signs make you overweight. In this fun project, I challenge that claim using a survey of 1000+ people. I use Pandas, determine the coefficient of correlation of zodiac signs with weight, and with body-mass index. I also determine the 95% confidence interval for the correlation coefficient, using bootstrapping.

  • Sayısal Loto ve Şans Topu Analizleri (Turkish) I analyze the outcomes of two types of lotteries in Turkey. In particular, I debunk the claim that one particular district gets a disproportionate amount of prizes. I also analyze whether the lottery outcomes are random, using Haigh's W statistic.

Resampling Stats in Python

This is a Pythonic "transcription" of Daniel T. Kaplan's 1999 book Resampling Stats in Matlab using Python 3. It's a short, informative book illustrating the general principles of statistical simulations and, in particular, how resampling can be used to obtain confidence intervals for data.

The notebooks below do not contain the full text of the book. I keep explanations at the minimum, and I focus on reimplementing the examples of the book. Occasionally I add my own comments and calculations. Any errors in these additions are my own responsibility.

Chapter 1: Sampling, Resampling, and Inference

Chapter 2: Making Statements with Precision: Confidence Intervals