led by Prof. Murali Haran and Prof. Joel Leja
Organized by Penn State Center for Astrostatistics
This repository contains several computational notebooks:
- monte_carlo.jl (Pluto notebook): Compares methods for performing numerical integration
- app_hbm_galaxy_evolution.ipynb (Jupyter notebook): Applies hierarchical Bayesian modeling to make inferences about galaxy evolution.
- ppl_intro.jl (Pluto notebook): Introduces the use of probabilistic programming languages (PPLs) using Turing.jl
- ppl_hbm.jl (Pluto notebook): Demonstrates performing inference with hierarchical Bayesian models using the Turing PPL
monte_carlo.jl is mostly independent of the other notebooks in this lesson and could reasonably be done first or last.
We recommend that students complete ppl_intro.jl before ppl_hbm.jl.
app_hbm_galaxy_evolution.ipynb and ppl_hbm.jl could be worked in either order.
Files ending in .jl are Pluto notebooks written in Julia and files ending in .ipynb are Jupyter notebooks written in Python. Labs do not assume familiarity with either language. While it can be useful to "read" selected portions of the code, the lab tutorials aim to emphasize understanding how algorithms work, while minimizing need to pay attention to a language's syntax.
Instructions will be provided for students to run labs on AWS severs during the summer school. Below are instruction for running them outside of the summer school.
Summer School participants will be provided instructions for accessing a Pluto server. Others may install Julia and Pluto on their local computer with the following steps:
- Download and install current version of Julia from julialang.org.
- Run julia
- From the Julia REPL (command line), type
julia> using Pkg
julia> Pkg.add("Pluto")
(Steps 1 & 3 only need to be done once per computer.)
- Start Pluto
julia> using Pluto
julia> Pluto.run()
- Open the Pluto notebook for your lab
Summer School participants will be provided instructions for accessing JupyterLab server.
Others may install Python 3 and Jupyter (or JupyterLab) on their local computer or use Google Colab to open the Jupyter notebooks.
- GitHub respository for all of Astroinformatics Summer school
- Astroinformatics Summer school Website & registration
We welcome people filing issues and/or pull requests to improve these labs for future summer schools.