surprisals_data function

Surprisals and surprisal probabilities computed from data