Calculadora de Intervalo de Confianza
Guía
Calculadora de Intervalo de Confianza
The Confidence Interval Calculator turns a single sample into a defensible range estimate for an unknown population parameter. Feed it your sample size, sample mean and sample standard deviation (or, for survey-style data, your sample size and number of “yes” responses) and it returns the lower bound, upper bound, margin of error and the exact critical value used — all computed in your browser using the same Z and Student-t distributions that statistics textbooks rely on.
Two modes are supported. Mean mode auto-selects the t-distribution for small samples (n < 30) and the Z-distribution otherwise, with an override switch for cases where the population sigma is known. Proportion mode defaults to the Wilson score interval, which holds up better than the textbook Wald formula on small samples or proportions near 0% / 100%.
Cómo Usar
- Pick what you are estimating — a mean (continuous data like weight, time, score) or a proportion (yes / no outcomes).
- For a mean: enter the sample size, sample mean and sample standard deviation. The distribution selector defaults to Auto; leave it unless you genuinely know the population sigma.
- For a proportion: enter the sample size and the number of successes. Keep the Wilson method unless your stats class specifically requires Wald.
- Choose a confidence level (80%, 90%, 95%, 99%, 99.9%, or any custom value between 50% and 99.99%).
- Read the result — the green verdict box shows the interval in plain English, and the breakdown table below it lists every intermediate number (standard error, critical value, margin of error, bounds).
Características
- Two estimation modes — sample mean (Z or Student-t) and one-proportion (Wilson score or Wald).
- Auto distribution selection — picks t for n < 30 and Z for larger samples, with manual override.
- Exact critical values — inverse normal CDF (Beasley-Springer-Moro) and inverse Student-t (numerical inversion of the regularized incomplete beta), so any confidence level and any df work without lookup tables.
- Wilson score for proportions — the default method, robust even at p̂ = 0%, p̂ = 100% or tiny n where the Wald interval breaks down.
- Custom confidence levels — the five common presets plus any custom level from 50% to 99.99%.
- Visual interval band — the point estimate and the confidence band rendered on a number line so the width is immediately readable.
- Copy-friendly summary — a monospace block with every input, calculation step, and the resulting interval, ready to paste into a notebook or report.
- Quick examples — one-click presets for adult height, political polling, A/B conversion, and small lab samples.
- 100% del lado del cliente — your numbers never leave the browser; calculations run instantly with no server round-trip.
When to Use a Confidence Interval
Reach for a confidence interval whenever you need to communicate an estimate plus its uncertainty. Reporting a single number (a sample mean of 4.2, a conversion rate of 6.4%) hides the fact that another sample would have given a slightly different value. A confidence interval makes that variation explicit: “we are 95% confident the true value is between 3.50 and 4.90”. That framing is essential for A/B tests, opinion polls, lab measurements, medical studies, manufacturing tolerances and any decision that depends on whether a difference is real or just sampling noise.
Mean vs Proportion — Which Mode?
Usa mean mode when your sample is a list of numeric measurements — reaction times, blood pressure readings, monthly revenue figures, exam scores. You will need both the sample mean (x̄) and the sample standard deviation (s). Use proportion mode when each observation is a binary outcome — voted yes / no, clicked / did not click, recovered / did not recover. You only need the sample size and the count of “yes” outcomes; the calculator handles the rest.
Preguntas frecuentes
-
What does a 95% confidence interval actually mean?
It means the procedure that produced the interval would, in repeated sampling, capture the true population parameter 95% of the time. It does NOT mean there is a 95% probability the true value lies inside this specific interval — the true value is fixed; only the intervals vary.
-
When should I use the t-distribution instead of the Z-distribution?
Use the t-distribution when the population standard deviation (σ) is unknown and you are using the sample standard deviation (s) to estimate it. The t-distribution has heavier tails to account for the extra uncertainty from estimating σ. A common rule of thumb switches to the Z-distribution once n ≥ 30, but the t-distribution is always defensible when σ is unknown.
-
Why does the Wilson score interval differ from the Wald (normal) interval?
The Wald interval centers on the observed proportion and uses a normal approximation to the standard error. It breaks down badly when the sample is small or the proportion is near 0 or 1 — sometimes producing intervals that include impossible values like −5% or 110%. The Wilson score interval inverts the score test instead, giving better coverage in those edge cases. It is recommended for most one-proportion problems.
-
How does the margin of error relate to sample size?
Margin of error shrinks with the square root of n. To halve the margin of error you need roughly four times the sample size. That is why pollsters chase larger samples for tighter intervals but quickly hit diminishing returns — doubling the sample only narrows the interval by about 30%.
-
What is the difference between confidence level and confidence interval?
The confidence level (e.g. 95%) is the long-run reliability of the method — how often the procedure captures the true parameter across repeated samples. The confidence interval is the specific numeric range produced from one sample (e.g. [4.10, 4.30]). Higher confidence levels widen the interval; lower levels narrow it.
Instalar extensiones
Agregue herramientas IO a su navegador favorito para obtener acceso instantáneo y búsquedas más rápidas
恵 ¡El marcador ha llegado!
Marcador es una forma divertida de llevar un registro de tus juegos, todos los datos se almacenan en tu navegador. ¡Próximamente habrá más funciones!
Herramientas clave
Ver todo Los recién llegados
Ver todoActualizar: Nuestro última herramienta was added on Jun 7, 2026
