Analysis on popular votes

Predicting on polls

d ~ N($\mu$, $\tau$) describes our best guess had we not seen any polling data
$\overline{X}$ | d ~ N(d, $\sigma$) describes randomness due to sampling and the pollster effect

Fundamentals: current economy, historical factors

Bayes rule in election forecast of USA, data from the last poll of each pollster, up to one week before election
Considerations: $\mu$ = 0, $\tau$ = 0.035 (average spread)
Analysis based on spread of Clinton and Trump votes of 2016.

Calculating expected valor and standard error for Xbar | d ~ N(d, $\sigma$):
General bias present in every election (historically noticeable) with standard deviations between 2% and 3%

$E(p|y) = B*y + (1-B)*Y$
$SE(p|y)^{2} = 1/(1/\sigma^{2} + 1/\tau^{2})$

Sample of election: $Xi,j = d + b + hi + \varepsilon i,j$
    $i$: pollster
    $j$: poll
    $d$: actual spread
    $b$: general bias of all pollster
    $hi$: house effect of ith pollster
    $\varepsilon i,j$: ramdom error of i,jth poll
Sample average: $\overline{X} = d + b + \sum_{i=1}^{N} Xi$
Standard error: $SE(\overline{X}) = \sqrt{\sigma^{2}/N + \sigma_{b}^{2}}$

Calculating a 95% credible interval:

Probability of d > 0, according to popular vote: (Clinton winning the elections)