Initialize posteriors as a defaultdict(float)