Public
Edited
Apr 15, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ex_long_term_cap_tax = long_term_cap_gains_tax(taxable_income, long_term_cap, bound0, bound15)
Insert cell
ex_naive_long_term_cap_gains_tax = naive_long_term_cap_gains_tax(taxable_income, long_term_cap, bound0, bound15)
Insert cell
ex_post_tax_cap_gains = long_term_cap - ex_long_term_cap_tax
Insert cell
ex_naive_post_tax_cap_gains = long_term_cap - ex_naive_long_term_cap_gains_tax
Insert cell
taxable_income = long_term_cap + other_income
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data_naive = new Array(1000).fill(0).map((_, i) => ({type:'naive', cap: i * 1000, rate: naive_long_term_cap_gains_tax(i * 1000 + other_income, i * 1000, bound0, bound15)/i / 10}))
Insert cell
data_simple = new Array(1000).fill(0).map((_, i) => ({type:'simple', cap: i * 1000, rate: simple_term_cap_gains_tax(i * 1000 + other_income, i * 1000, bound0, bound15)/i / 10}))
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more