def calculate_reff(fit):
    """
    Calculate number of effective samples divided by
    the number of actual samples.
    """
    df_summary = fit.summary()
    neff = float(df_summary[['N_Eff']].astype(int).mean())
    return neff / (fit.chains * fit.draws)
