Statistics

Bayesian statistics part 4 – R tutorial

It's been quite a while since I updated this tutorial series- better late than never? Introduction First, we determine the distribution our data comes from, or the likelihood, and any prior information is described using the prior distribution. Then we use Markov chain Monte Carlo to explore this posterior. Then we determine if we need… Continue reading Bayesian statistics part 4 – R tutorial

Computation, Statistics

Introduction to Bayesian Statistics, Part 3

The two most popular Markov chain Monte Carlo sampling algorithms are Gibbs sampling and Metropolis Hastings. These algorithms produce Markov chains. Numbers inside a Markov chain are dependent on only the previous number. In the context of sampling, we check the probability of the proposed value based on only the probability of the current value,… Continue reading Introduction to Bayesian Statistics, Part 3

Data analysis, Statistics

Introduction to Bayesian statistics, Part 2

As mentioned in Part 1, in Bayesian statistics you summarize a priori knowledge in the prior, and your data in the likelihood. The prior distribution is often chosen based on analytical convenience, while the likelihood is chosen based on the underlying sampling distribution (read about some appropriate distributions here). Multiplying these together produces the posterior distribution. Probability… Continue reading Introduction to Bayesian statistics, Part 2

Biology, Computation

Basic Mathematical Biology Programming Part II

Programming elements that are used to perform basic mathematical calculations include: Arrays Matrices Equations or Simple functions Math functions See my previous post about the first two here. This post will deal with the latter two.  Equations or Simple functions The simplest problem to be solved via programming would be the solution to a single… Continue reading Basic Mathematical Biology Programming Part II

Biology, Computation

Basic Mathematical Biology Programming Part I

Programming elements that are used to perform basic mathematical calculations include: Arrays Matrices Equations or Simple functions Math functions This post will deal with the first two. Arrays Sets are common in mathematical biology : response values, independent values, time units, gene or protein names. These sets can be expressed as arrays. The two most… Continue reading Basic Mathematical Biology Programming Part I