GithubHelp home page GithubHelp logo

stat-102c-ta-notes's Introduction

This repository contains files for my Stat 102C sections.

Many of our discussion sections will involve me going over R code that’s relevant to what you’ve been learning that week. I’ll (hopefully) be uploading the code here by Tuesday night before our section.

Note on the .Rnw files: if you're going to compile them into PDF's yourself, check your Rstudio preferences to see if it's going to use Sweave or Knitr. Make sure you're using the right one.

1st Week

PI simulation.R: This is part of an assignment we had for Stat 202A, the grad-level intro R class. Along with reviewing key R concepts, this should demonstrate how (and why) we vectorize our code.

ReservoirSampling.R: this is an interesting problem (that is not directly applicable to this course, but is good to practice you R skills): how do we sample from a vector of unknown length? The R code is pretty basic, but if you can understand what the code does you will be ready for this course.

2nd Week

Rejection Sampling & Inverse CDF Sampling, yay!. These are both ways to use random samples from a very simple distribution (like uniform) to get samples from more complex (but usually univariate) distributions.

Sampling from complex multivariate distributions is what MCMC algorithms are for - so hold your horses.

3rd Week

Homework #1 hints. The solution will be posted once Prof. Wu is sure that nobody else will be turning it in.

4th Week

Monte Carlo integration, get psyched! A bit of classic MC integration & importance sampling.

Prof. Wu is letting you all re-do parts of HW1 for credit. So we'll give you even more hints.

5th Week

Went over HW2. Check the repository for Pseudo-code for Prob 3.2

8th Week

Week 8 already? HW3 solutions will be uploaded, and we're moving from MC into MCMC. Metropolis and Metropolis-Hastings will be introduced. I highly recommend watching this youtube video to understand MH samplers.

9th Week

We'll mostly talk about HW#4, and maybe get a tiny bit into Gibbs Sampling. Remember that you have yet another homework due in week 10.

10th Week

We'll provide a bit of help for HW5 (which should be much easier than the last two), and talk a little bit about the Final.

stat-102c-ta-notes's People

Contributors

jarfa avatar

Stargazers

 avatar  avatar Ryan avatar Italo Cegatta avatar  avatar  avatar Alex Whitworth avatar

Watchers

 avatar

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.