Skip to content

Commit

Permalink
fix(experiments): Fix infinite credible intervals chart crash (PostHo…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber authored Feb 20, 2025
1 parent 17e3fd2 commit 6bde178
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/scenes/experiments/experimentLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1731,6 +1731,9 @@ export const experimentLogic = kea<experimentLogicType>([
) as TrendExperimentVariant

const controlMean = controlVariant.count / controlVariant.absolute_exposure
if (!controlMean) {
return null
}

// Calculate the percentage difference between the credible interval bounds of the variant and the control's mean.
// This represents the range in which the true percentage change relative to the control is likely to fall.
Expand Down

0 comments on commit 6bde178

Please sign in to comment.