Giter VIP home page Giter VIP logo

solutions-to-a-students-guide-to-bayesian-statistics-by-ben-lambert's Introduction

Solutions-to-Problems-in-Bayesian-Statistics

This repository contains my solutions to the assignments in the book: "A Student’s Guide to Bayesian Statistics" by Ben Lambert. I will update the repository with my solutions continuously.

Each chapter of the book has its corresponding folder in this repository. These solutions consist of Python code as well as pdfs.

Let me know (by posting an issue or via email: [email protected]) if you have any questions or would like to discuss a certain solution or assignment!

Content

An introduction to Bayesian inference

Chapter 2 - The subjective worlds of Frequentist and Bayesian statistics

The code for this section can be found: HERE The report can be found: HERE

Chapter 3 - Probability - the nuts and bolts of Bayesian inference

The code for this section can be found: HERE The report can be found: HERE

Understanding the Bayesian formula

Chapter 4 - Likelihoods

The report can be found: HERE

Excerpt of some results

Chapter 5 - Priors

The report can be found: HERE

Chapter 6 - The devil is in the denominator

The report can be found: HERE

Excerpt of some results

Chapter 7 - The posterior - The goal of Bayesian inference

Analytic Bayesian methods

Chapter 8 - Distributions

Excerpt of some results

Chapter 9 - Conjugate priors

Excerpt of some results

Chapter 10 - Evaluation of model fit and hypothesis testing

Chapter 11 - Making Bayesian analysis objective?

Computational Bayes

Chapter 12 - Leaving conjugates behind: Markov chain Monte Carlo

Chapter 13 - Metropolis Hastings

The report can be found: HERE

Modeling presence of Borrelia amongst Ticks
Symmetric Kernel - Random Walk Metropolis

Using a Binomial likelihood, a Beta prior and an symmetric Normal jumping kernel.

Assymmetric Kernel - Metropolis Hastings

Using a Beta-Binomial likelihood, a Gamma prior and an assymmetric log-Normal jumping kernel.

Modeling Mosquito Death Rate

Using a Poisson Likelihood, a Gamma prior, a Beta Prior, a log-Normal jumping kernel and a beta jumping kernel.

Chapter 14 - Gibbs Sampling

The report can be found: HERE

The sensitivity and specificity of a test for a disease - Gibbs Sampling

Coal mining disasters in the UK - Gibbs Sampling

Using Gibbs sampling to estimate the point in time when legislative and societal changes caused a reduction in coal mining disasters in the UK. The number of disasters per year pre and post legislations were modeled using Poisson Likelihoods: Possion(lambda_1), Possion(lambda_2) with Gamma priors. The point in time when the new legislations were enacted is called n.

Chapter 15 - Hamiltonian Monte Carlo

Chapter 16 - Stan

Hierarchical models and regression

Chapter 17 - Hierarchical models

Chapter 18 - Linear regression models

Chapter 19 - Generalized linear models and other animals

solutions-to-a-students-guide-to-bayesian-statistics-by-ben-lambert's People

Contributors

alexandrahotti 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.