This is a collection of notebooks and data, which will be added to throughout the term.
- Explore data on birth rates in the US: Birth Data Exploration.ipynb
- Start our introduction to sampling: Intro to Sampling.ipynb
- Wrap up our introduction to sampling: Intro to Sampling.ipynb
- Introduce Gaia data and explore the solar neighborhood: Solar Neighborhood w Gaia.ipynb
- Wrap up Intro to Sampling.ipynb
- Recall the Boltzmann distribution, use Ising model to understand the behavior of a ferromagnet at finite temperature: Boltzmann and Ising (and some Metropolis).ipynb
- We made a quick-and-dirty observational HR diagram from our Gaia data set Solar Neighborhood w Gaia.ipynb
US Birth data from the Social Security Administration, prepared by FiveThirtyEight.
This data can be with a wget command:
mkdir -p ../data
wget -qO ../data/US_births_2000-2014_SSA.csv https://raw.githubusercontent.com/fivethirtyeight/data/master/births/US_births_2000-2014_SSA.csvWe will use the Gaia DR3 data release to explore the solar neighborhood. The data is available from the Gaia Archive. We will use the following query to get the data:
SELECT TOP 300000 phot_g_mean_mag+5*log10(parallax)-10 AS mg, bp_rp, parallax FROM gaiadr3.gaia_source
WHERE parallax_over_error > 10
AND parallax > 10
AND phot_g_mean_flux_over_error>50
AND phot_rp_mean_flux_over_error>20
AND phot_bp_mean_flux_over_error>20
AND phot_bp_rp_excess_factor < 1.3+0.06*power(phot_bp_mean_mag-phot_rp_mean_mag,2)
AND phot_bp_rp_excess_factor > 1.0+0.015*power(phot_bp_mean_mag-phot_rp_mean_mag,2)
AND visibility_periods_used>8
AND astrometric_chi2_al/(astrometric_n_good_obs_al-5)<1.44*greatest(1,exp(-0.4*(phot_g_mean_mag-19.5)))This data accompanies Hogg, Bovy, and Lang (2010). It can be downloaded directly with
!wget -o ../data/data_yerr.dat https://raw.githubusercontent.com/davidwhogg/DataAnalysisRecipes/master/straightline/src/data_yerr.dat