Reference

Methods and equations

Inspect the Z-test, sample size, Bayesian quadrature and marketing funnel equations used by FunnelStatLab, with assumptions and interpretation notes.

Fixed-horizon tests

Fixed-horizon Z-tests assume independent observations and a decision rule set in advance. Repeated peeking or stopping when p crosses a cutoff needs a sequential design or an appropriate adjustment.

Bayesian decisions

Bayesian probabilities and expected loss depend on the chosen Beta prior and the binomial model. Review prior sensitivity before using a result to make a decision.

Marketing projections

Funnel revenue projections are deterministic models of the rates you enter. Use them for scenario planning only. Statistical guarantees and financial forecasts require separate evidence.

Two-proportion Z-test

For independent Control and Variant arms, let pA and pB be conversions divided by visitors, with difference d = pB − pA. The equal-rate null pools both arms to estimate p̄.

p̄ = (xA + xB) / (nA + nB)
SE0 = √[p̄(1 − p̄)(1/nA + 1/nB)]
z = d / SE0

The default test divides the difference by the pooled standard error. The unpooled option uses the separate-arm standard error SE1, giving a Wald test. The directional alternative B > A uses 1 − Φ(z). The two-sided alternative uses 2[1 − Φ(|z|)]. Significance compares the unrounded p-value to α.

SE1 = √[pA(1 − pA)/nA + pB(1 − pB)/nB]
Two-sided interval = d ± Φ−1(1 − α/2) SE1
One-sided lower bound = d − Φ−1(1 − α) SE1

The Wilson–Newcombe option builds a Wilson score interval for each arm. With bounds L and U, the lift lower distance is √[(pB − LB)² + (UA − pA)²]. The upper distance uses the opposite bounds. One-sided mode shows the lower limit.

Observed-effect power uses a normal distribution centered at the observed difference with spread SE1, and rejection thresholds from the selected test standard error. The calculator flags sparse counts. Wald intervals can be fragile near 0% or 100%.

References include the NIST difference-of-proportions test and NIST Wilson score interval.

Normal CDF and quantiles

Φ(z) is the standard normal cumulative distribution. For z ≥ 0, its upper tail is half the upper regularized gamma function evaluated at z²/2 with shape ½. The implementation uses a power series for small arguments, a continued fraction for the right tail and symmetry for negative z. It finds the quantile by bisecting the monotone tail function.

Φ(z) = ½ erfc(−z/√2)
1 − Φ(z) = ½ Q(½, z²/2), z ≥ 0

Sample size, MDE and Bonferroni

The planner uses a two-sided, equal-allocation normal approximation. Add the MDE to the baseline rate p0 to get p1. A relative MDE is multiplied by the baseline rate first. Let p̄ = (p0 + p1)/2, zα = Φ−1(1 − αpair/2) and zpower = Φ−1(target power).

n per arm = ceil{[zα√(2p̄(1 − p̄)) + zpower√(p0(1 − p0) + p1(1 − p1))]² / (p1 − p0)²}
αpair = αfamily / (total arms − 1) with Bonferroni
Accrual days = ceil(total sample / daily eligible visitors)

Bonferroni bounds the family false-positive rate over the planned treatment-versus-Control comparisons. Runtime assumes steady traffic and omits outcome follow-up and rollout time.

Bayesian Beta-binomial quadrature

Each arm uses an independent binomial likelihood and the same Beta(α0, β0) prior. For x conversions in n trials, the posterior is Beta(α0 + x, β0 + n − x). Its mean is α/(α + β). Equal-tailed credible intervals use the 2.5th and 97.5th posterior percentiles.

P(B > A) = ∫01 FA(t) fB(t) dt
Loss if choosing B = ∫01 FB(t)[1 − FA(t)] dt
Loss if choosing A = ∫01 FA(t)[1 − FB(t)] dt

Here F is a posterior CDF and f a posterior density. The calculator evaluates the regularized incomplete beta function via a continued fraction. It integrates over log-odds using 16-point Gauss–Legendre quadrature on intervals split at both arms’ quantiles from the 10−12 tail inward. It normalizes the ranking integral by numerical mass. The same inputs always use the same integration points.

The tolerance ε applies to the smaller expected loss, expressed in percentage points. Change the prior to check how much the decision depends on its mean and concentration. See the NIST Digital Library of Mathematical Functions on incomplete beta functions.

B2B pipeline and acquisition cost

A closed-revenue target rounds target / ACV up to required wins, then works backward through the opportunity win rate to required opportunities. A pipeline target rounds target / ACV up to opportunities directly. Both modes work backward through the SQL, MQL and lead conversion rates and round each required count upward.

Pipeline coverage = (opportunities × ACV) / closed-won value
Lead spend = leads × CPL
Marketing ROI = (closed-won value − lead spend) / lead spend

Lead spend divided by MQLs, SQLs or deals gives each acquisition cost. The latest SQL day subtracts the sales cycle from the modeled target date, day 90 for a quarter or day 365 for a year. Average monthly lead volume assumes steady intake.

Email CTR, CTOR, RPE and decay

Delivered = sends × delivery rate
Opens = delivered × open rate
CTR = clicks / delivered. CTOR = clicks / opens.
Revenue = clicks × landing CVR × AOV
RPE = revenue / sends. ROI = (revenue − spend) / spend.
Reachable list after m months = starting list × (1 − churn)m

The model uses unique opens and clicks and assumes that modeled clickers first open the message. It sends once per subscriber. It treats churn as a constant monthly net loss from unsubscribes and bounces, with no new signups in the decay curve.

SEO cohorts and payback

In month m, each cohort of articles contributes its mature visits multiplied by min(cohort age / ramp months, 1). Publication month is age one. Cumulative traffic is the sum of monthly visits across the existing cohorts.

Customer lifetime value to month m = cumulative visits × visit-to-lead × lead-to-customer × LTV
Paid-search equivalent value = cumulative visits × equivalent CPC
Payback = first m ≥ 1 with cumulative customer value ≥ m × monthly budget
24-month ROI = (24-month customer value − 24-month spend) / 24-month spend

The calculator searches through month 24 for payback. It compares customer lifetime value against spend and reports paid-search equivalent value separately. CAC divides spend by modeled customers.

Creator sponsorship payouts and break-even

Orders = views × CTR × CVR
Revenue = orders × AOV
Payout = flat fee + revenue × creator share
Profit = revenue × (gross margin − creator share) − flat fee
Break-even orders = ceil(flat fee / [AOV × (gross margin − creator share)]) when contribution is positive
Break-even views = ceil(flat fee / [AOV × (gross margin − creator share) × CTR × CVR]) when contribution is positive
Maximum flat fee = revenue / target ROAS − revenue × creator share

Effective CPM, CPC and CPA price the full payout by impressions, clicks and orders. A fee cap below zero indicates the variable share already exceeds the payout allowed at target ROAS. Break-even views use expected orders, and break-even orders use whole purchases.