Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ASTR 596: Modeling the Universe

SDSU | Fall 2025 | Fridays 11:00 AM - 1:40 PM | PS 256

San Diego State University
logo

Welcome to ASTR 596: Modeling the Universe! This course takes you on a journey from Python fundamentals to neural networks and JAX, building transparent “glass box” models that reveal the physics within astronomical phenomena.

Our projects follow a deliberate progression from deterministic simulationstochastic methodsstatistical inferencemachine learning, mirroring how computational astrophysics evolved as a field. Each project builds on previous code and concepts, reducing cognitive load through scaffolding.

Act I: Deterministic simulation (Python → OOP → N-body dynamics)
Act II: Stochastic methods & statistical inference (Monte Carlo → Bayesian/MCMC)
Act III: Machine learning & autodifferentiation (Gaussian Processes → Neural Networks → JAX)

Project Timeline & Core Concepts

ProjectDurationCore ConceptsKey Connection
🐍 Project 1: Stellar Populations1.5 weeksObject-oriented design, vectorization, simple plottingBuilds Star & StellarPopulation classes
🪐 Project 2: N-Body Star Clusters2 weeksNumerical integration, Monte Carlo sampling, realistic stellar dynamicsUses P1’s StellarPopulation to simulate actual clusters
☀️ Project 3: Monte Carlo Radiative Transfer3 weeksRadiative transfer physics, Monte Carlo methods, photon transportBuilds on stellar physics from earlier projects
🌌 Project 4: Cosmological Inference3 weeksBayesian inference, MCMC, parameter estimationP2’s leapfrog → HMC sampler!
📊 Project 5: Gaussian Processes3 weeksSurrogate modeling, kernel methods, uncertainty quantificationEmulates/analyzes P2’s N-body simulations
🧠 Final: Neural Networks + JAX4 weeksDeep learning, automatic differentiation, GPU accelerationLearns from N-body dynamics + accelerates everything

The Scaffolding Architecture

Friday Class Structure

Every Friday follows a consistent rhythm designed for active learning:

Interactive Lecture

📚 11:00-11:40 AM
  • Concept review & clarification

  • Q&A on required readings

  • Live coding demonstrations

  • Project requirement discussion

Hands-On Implementation

💻 11:40 AM-1:40 PM
  • Collaborative work time with project partners

  • Discuss approaches and debug together

  • Everyone writes their own implementation

  • Instructor support rounds

Course Highlights & Features

🔬 Glass Box Methodology

Build every algorithm from scratch before using libraries

👥 Collaborative Learning

Project partners for discussion & debugging (individual code)

🚀 Modern Frameworks

Bridge from NumPy to JAX ecosystem by course end

🌟 Real Astrophysics

Every project addresses genuine astrophysical problems

🤖 AI Integration

Strategic three-phase approach that builds authentic AI literacy for modern computational research careers

📈 Growth Mindset

Progress over perfection, productive struggle as pedagogy

Responsible AI: Three-Phase Scaffolding

Strategic three-phase approach that builds authentic AI literacy for modern computational research careers:

AI as a Learning Partner, Not a Replacement

Phase

Weeks

Permitted Usage

Phase 1

Weeks 1-7

Foundation building with limited AI (30-min rule before debugging help)

Phase 2

Weeks 8-13

Strategic integration with critical evaluation (refactoring after baseline works)

Phase 3

Weeks 14-16

Professional practice (acceleration while maintaining understanding)

Quick Navigation

Expected Learning Outcomes

By course end, you will have:

Built every algorithm from scratch – No black boxes remain
Discovered algorithm generality – Tools transfer across domains
Developed computational intuition – Know why methods fail/succeed
Created a portfolio – 6 working projects demonstrating progression
Mastered modern tools – JAX, autodiff, GPU acceleration potential
Practiced research skills – Git, testing, documentation, scientific writing

Instructor & Support

Instructor

Dr. Anna Rosen

Office

Physics 239

Email

alrosen@sdsu.edu

Student Hacking Hours

Wednesdays 1-2 PM (P-239) or by appointment

Course Website

https://astrobytes-edu.github.io/astr596-modeling-universe/

Issues & Questions

GitHub Issues


Welcome to a transformative journey from Python basics to the frontiers of computational astrophysics. Together, we’ll model the universe, one algorithm at a time.