- add_3cell_with_filler_ci(row, goals == 0 ? 0 : (goals / globals.points_played).toFixed(2));
- add_3cell_with_filler_ci(row, assists == 0 ? 0 : (assists / globals.points_played).toFixed(2));
- add_3cell_with_filler_ci(row, hockey_assists == 0 ? 0 : (hockey_assists / globals.points_played).toFixed(2));
- add_3cell_with_filler_ci(row, defenses == 0 ? 0 : (defenses / globals.points_played).toFixed(2));
- add_3cell_with_filler_ci(row, throwaways == 0 ? 0 : (throwaways / globals.points_played).toFixed(2));
- add_3cell_with_filler_ci(row, receiver_errors == 0 ? 0 : (receiver_errors / globals.points_played).toFixed(2));
+ let ci_goals = make_binomial_ci(goals, globals.points_played, z);
+ let ci_assists = make_binomial_ci(assists, globals.points_played, z);
+ let ci_hockey_assists = make_binomial_ci(hockey_assists, globals.points_played, z);
+ ci_goals.desired = 0.5;
+ ci_assists.desired = 0.5;
+ ci_hockey_assists.desired = 0.5;
+
+ add_3cell_ci(row, ci_goals);
+ add_3cell_ci(row, ci_assists);
+ add_3cell_ci(row, ci_hockey_assists);
+
+ add_3cell_ci(row, make_poisson_ci(defenses, globals.points_played, z));
+ add_3cell_ci(row, make_poisson_ci(throwaways, globals.points_played, z, true));
+ add_3cell_ci(row, make_poisson_ci(receiver_errors, globals.points_played, z, true));
+