MLCrack

    PROBABILITY & STATISTICS · INTERVIEW QUESTION

    What is a confidence interval? How is it different from a credible interval?

    🟡 intermediate · Statistical Inference

    Hint: Frequentist vs Bayesian interpretation of uncertainty.

    Answer

    Confidence interval (frequentist): if we repeated the experiment many times, X% of computed intervals would contain the true parameter. The true parameter is fixed; the interval is random. A 95% CI does NOT mean 'there's a 95% probability the parameter is in this interval.' Credible interval (Bayesian): given the observed data and prior, there's a 95% probability the parameter lies in this interval. The parameter is treated as a random variable.

    Example: CI [2.1, 3.9] means the procedure captures the true value 95% of the time across repeated experiments. Credible interval [2.1, 3.9] means P(θ∈[2.1,3.9]∣data)P(θ ∈ [2.1, 3.9] | data) = 0.95. The Bayesian interpretation is more intuitive and practically useful. Nonparametric bootstrap CIs avoid a specified parametric distribution family but still require appropriate sampling and statistic regularity assumptions. Resample independent units; clustered or time-dependent data need suitable cluster/block schemes. Sparse tails and irregular statistics can have poor coverage.