# Beta-binomial Model with missing values

I have read http://www.sumsar.net/blog/2018/12/visualizing-the-beta-binomial/ this simple explanation of how the posterior is changing while more data are added: in this visualization there are six data (F,T,F,F,F,T), my question is: how can be treated the case where some data is missing or, better, unknown, let’s say (F,NA,F,F,F,T)? • Why is it missing? – Tim Feb 20 '19 at 20:46
• @Tim it is missing because it was not observed, it did happen but no one knows the value – Alessandro Jacopson Feb 20 '19 at 20:48
• Did this happen randomly, or is there any pattern? Why was it not recorded? – Tim Feb 20 '19 at 20:51
• @Tim there is a pattern, let’s say I observe $n_1$ consecutive values and skip the following $n_2$ values and so on. $n_2$ can be much greater than $n_1$ – Alessandro Jacopson Feb 20 '19 at 20:58

If the values are missing at random, then given the fact that your data is assumed to be independent and identically distributed, you can simply ignore the missing values. If you thrown a coin ten times, but one result was not recorded because your pencil got broken, then it is the same as if you've thrown the coin nine times (you just have less data). This also applies to your comment that $$n$$ consecutive values are missing, because since you assume the data to be i.i.d., you could shuffle it in any order and it wouldn't change anything.