GithubHelp home page GithubHelp logo

kipac / statisticalmethods Goto Github PK

View Code? Open in Web Editor NEW
110.0 15.0 78.0 88.87 MB

Course notes and resources for Stanford University graduate course PHYS366: Statistical Methods in Astrophysics

Home Page: https://kipac.github.io/StatisticalMethods

License: Other

Makefile 0.16% Jupyter Notebook 99.31% Python 0.07% HTML 0.46%
astrophysics statistical-methodologies

statisticalmethods's People

Contributors

abmantz avatar drphilmarshall avatar pitmonticone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

statisticalmethods's Issues

Switch to astropy

  • Edit XrayImage notebook to replace pyfits with astropy
  • Add astropy to the required packages in the Getting Started doc.

Homework claim form and script to interpret it

Scripting the random selection of students to present homework in class means the easy generation of a machine-readable file: google spreadsheets works well for this, and we can scrape out the "submissions" via the csv output. The link to the form

To do:

  • Make a test form and try it out
  • Implement a simple command-line script to scrape the csv, and draw random presenters for each question.

Experimental correlation function notebook for Session 1

Introduce correlation function as the ultimate summary statistic. Compute it for a small sample of SDSS galaxies, get something very noisy. Invite comment.

The idea is to set up some of the cosmology stuff in Week 3, and also produce a set of summary statistics that look like the Cepheid dataset. Then, we can talk about the meaning and interpretation of the error bars...

a1835_xmm/M2ptsrc.txt needs to be checked in

This means that the a1835_xmm folder also needs to be checked in (and so not created by teh FirstLook notebook. At the moment we make it with !mkdir -p a1835_xmm - this will be redundant, but not dangerous, when you have checked in. However, the .gitignore file will need editing, to not ignore a1835_xmm but instead ignore *.FTZ Thanks!

Lay out Session 2

Based on notes in doc. Will need to start with recap of some sort. Think about/plan active exercises before getting into any content.

Handbook of MCMC

FYI, I stumbled upon a book here. At first glance, it looks very thorough, although only a few chapters are online.

XrayImage Metropolis playground

We need a notebook to enable exploration of a Metropolis sampler in the context of the XrayImage.
Requirements:

  • Performs MCMC sampling of simple model parameters given image
  • Enables exercises on speed-ups
  • Enables easy switching in of emcee (either in class of for homework)
  • Enables importance sampling demos: 1) re-using samples with new prior, 2) adding in new constraint (exercise)

Lessons folder, notebooks

Including top level notebook, 0.ThePlan.ipynb (which just contains the list of lectures, for easy navigation). Each lesson notebook should contain at least: a heading, the goals for that lesson, and related reading.

Getting Started instructions

Markdown file(s) with:

  • How to get the course materials (fork the repo)
  • How to install python and work with notebooks
  • Which books we recommend and where/how to get them

Probably one file, with links to sub-files, is a good idea. And all this can live in doc

Start examples and exercises

One folder per example dataset, and make stubs of notebooks based on existing material.

  • examples/StraightLine (see #8 and #11 )
  • examples/XrayImage (see #9
  • examples/SDSScatalog (see #10)

Website cleanup

  • Remove "this page is maintained" etc to try and improve sidebar
  • Remove download options (except for View on GitHub)
  • Add a note that to see the course materials, you need to see the notebooks on GitHub or preferably at home in a notebook

Introduction notebook for Lesson 1

Include high level course overview as well as this particular lesson. May need some logistic stuff before getting into the Goals for today.

Access to the Private Homework Repo: come and introduce yourself!

Hi all!

Homework assignments will be made available to git pull from the 2015 private homework repo. We'll grant read (i.e. fork) access to each of you taking the course, but only once we recognize you (and have matched you to the Stanford sign-up sheet). To be able to do this, we'll need you to introduce yourself on this issue thread (by writing a comment), and also to able to see your real name and your photo on your profile, please! Why not tell us all a bit about yourself while you're at it. What are you most interested in, in astronomy?

Outline first 4 lectures

Identify "key message" bullet points for these lectures to build activities around. Share these somewhere on the github.

E-mail to registered students

A couple of them have remarked to me that they haven't heard anything official even though they know that there's some beforehand setup needed on their laptops. Might be a good idea to point them to the website soon.

Generative model / sampling distribution demo

Simplest possible generative model, size of galaxies at fixed mass.

  • Simulate draw from mock population
  • Simulate observational uncertainty
  • Look at effect on size variance in "sample"
  • Discuss "one galaxy" interpretation
  • Introduce sampling distribution, conditional PDF
  • First PGM.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.