Bayesian Modeling with RJAGS
Alicia Johnson
Associate Professor, Macalester College
Parameter
$p$ = proportion that support you
Data
$X = 6$ of $n = 10$ polled voters plan to vote for you
Insights
You are more likely to have observed these data if $p \approx 0.6$ than if $p < 0.5$.
Poll assumptions:
voters are independent
$p$ = probability that a voter supports you
$X$ = number of $n$ polled voters that support you
(count of successes in $n$ independent trials, each having probability of success $p$)
Conditional distribution of $X$ given $p$:
$X \sim \text{Bin}(n,p)$
The likelihood function summarizes the likelihood of observing polling data $X$ under different values of the underlying support parameter $p$. It is a function of $p$.
Bayesian Modeling with RJAGS