<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>FAQ/betaprior</title><revhistory><revision><revnumber>4</revnumber><date>2018-12-10 15:19:43</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>3</revnumber><date>2018-12-10 15:18:59</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>2</revnumber><date>2018-12-10 15:14:42</date><authorinitials>PeterWatson</authorinitials></revision><revision><revnumber>1</revnumber><date>2018-12-10 15:14:32</date><authorinitials>PeterWatson</authorinitials></revision></revhistory></articleinfo><section><title>Choice of coefficients for a beta distribution (prior for binomial distribution)</title><para>The Beta distribution is the conjugate prior to the binomial test since the beta density function has a similar form to the binomial density. The Beta distribution, Be(a,b), has two parameters corresponding to shape (a) and scale (b). </para><para>These two values for the prior distribution, a and b, can be specified in JASP to specify the prior distribution. SPSS allows for separate values of a and b to be specified for the prior null and alternative distributions. </para><para>Jeffrey's prior of Be(0.5,0.5) is recommended as an uninformative prior for the binomial test. </para><para><emphasis role="underline">Choice of informative Beta priors</emphasis> </para><para>The Beta expected value of a Be(a,b) distribution is a/(a+b). So that if we expect 9 tails in 10 coin tosses our expected value of the Beta distribution is 9/(9+1) = 0.9.   </para><para>The variance of the beta distribution is ab/[(a+b)<superscript> 2</superscript> (a+b+1)] so that higher values of a and b are more informative priors having smaller variances.<ulink url="https://stats.stackexchange.com/questions/64852/how-do-i-choose-parameters-for-my-beta-prior">See here.</ulink> </para></section></article>