Skip to content

Instantly share code, notes, and snippets.

Created November 13, 2013 16:42
Show Gist options
  • Save anonymous/7452196 to your computer and use it in GitHub Desktop.
Save anonymous/7452196 to your computer and use it in GitHub Desktop.
Basic income vs basic jobs model
from pylab import *
from scipy.stats import *
num_adults = 227e6
basic_income = 7.25*40*50
labor_force = 154e6
disabled_adults = 21e6
current_wealth_transfers = 3369e9
def basic_income_cost_benefit():
direct_costs = num_adults * basic_income
administrative_cost_per_person = norm(250,75)
administrative_costs = num_adults * administrative_cost_per_person.rvs()
return direct_costs + administrative_costs
def basic_job_cost_benefit():
administrative_cost_per_disabled_person = norm(500,150).rvs()
administrative_cost_per_worker = norm(5000, 1500).rvs()
disabled_cost = disabled_adults * (basic_income + administrative_cost_per_disabled_person)
num_basic_workers = (num_adults - disabled_adults - labor_force)
basic_worker_cost_benefit = num_basic_workers * (
basic_income +
administrative_cost_per_worker
)
return disabled_cost + basic_worker_cost_benefit
N = 1024*32
bi = zeros(shape=(N,), dtype=float)
bj = zeros(shape=(N,), dtype=float)
for k in range(N):
bi[k] = basic_income_cost_benefit()
bj[k] = basic_job_cost_benefit()
subplot(211)
width = 4e12
height=50*N/1024
title("Basic Income")
hist(bi, bins=50)
axis([0,width,0,height])
subplot(212)
title("Basic Job")
hist(bj, bins=50)
axis([0,width,0,height])
show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment