Skip to content

Instantly share code, notes, and snippets.

View NaimKabir's full-sized avatar

Naim Kabir NaimKabir

View GitHub Profile
@NaimKabir
NaimKabir / sfcommons_dinner.ipynb
Created January 28, 2023 03:47
Naive method used to create dinner matches for SF Commons
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NaimKabir
NaimKabir / rounding-sim-math.html
Created December 13, 2020 13:22
Math to reveal when we'd expect negative delta values when you use rounded fractions of vote shares to reconstruct votes
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
@NaimKabir
NaimKabir / rounding-error-sim.Rmd
Created December 10, 2020 15:04
Visualization showing the folly of reconstructing vote time series from rounded vote share data.
---
title: "Rounding Error Sim"
output: html_notebook
---
```{r}
library(tidyverse)
library(ggthemes)
library(gridExtra)
---
title: "Significance Figs"
output: html_notebook
---
```{r}
library(tidyverse)
library(ggthemes)
library(gridExtra)
```
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.