Compatibility
CONFIDENCE
Close: 2 of 5 recorded answers differ in the last bits, worst 2 ULP
Everything else matches (5 workbook cells). Last-bit means a finite number within 16 ULP of Excel's. How we measure this · See the Rust code
Local names in 40 languages
| Language | Name in Excel |
|---|---|
| Arabic | CONFIDENCE |
| Bulgarian | CONFIDENCE |
| Czech | CONFIDENCE |
| Danish | KONFIDENSINTERVAL |
| German | CONFIDENCE |
| Greek | CONFIDENCE |
| English (Australia) | CONFIDENCE |
| English (United Kingdom) | CONFIDENCE |
| English (United States) | CONFIDENCE |
| Spanish | INTERVALO.CONFIANZA |
| Estonian | CONFIDENCE |
| Finnish | LUOTTAMUSVÄLI |
| French | INTERVALLE.CONFIANCE |
| Hebrew | CONFIDENCE |
| Croatian | CONFIDENCE |
| Hungarian | MEGBÍZHATÓSÁG |
| Indonesian | CONFIDENCE |
| Italian | CONFIDENCE |
| Japanese | CONFIDENCE |
| Korean | CONFIDENCE |
| Lithuanian | CONFIDENCE |
| Latvian | CONFIDENCE |
| Norwegian | KONFIDENS |
| Dutch | BETROUWBAARHEID |
| Polish | UFNOŚĆ |
| Portuguese (Brazil) | CONFIANÇA |
| Portuguese (Portugal) | INT.CONFIANÇA |
| Romanian | CONFIDENCE |
| Russian | ДОВЕРИТ |
| Slovak | CONFIDENCE |
| Slovenian | CONFIDENCE |
| Serbian (Latin) | CONFIDENCE |
| Swedish | KONFIDENS |
| Thai | CONFIDENCE |
| Turkish | GÜVENİRLİK işlevi |
| Ukrainian | CONFIDENCE |
| Vietnamese | CONFIDENCE |
| Chinese (Simplified) | CONFIDENCE |
| Chinese (Hong Kong) | CONFIDENCE |
| Chinese (Traditional) | CONFIDENCE |
Names from Microsoft's support site.
What it does
CONFIDENCE(alpha, standard_dev, size)
CONFIDENCE(alpha,standard_dev,size) returns a normal-based confidence-interval half-width. Alpha is the excluded two-tail probability; standard_dev is a known positive population standard deviation; size is the observation count. It is the compatibility normal-confidence name.
Try it
=CONFIDENCE(0.05,10,100) is about 1.96. With a sample mean of fifty the corresponding arithmetic interval is about 48.04 to 51.96; the function itself returns only the margin.
Quirks
Alpha must be strictly between zero and one, standard deviation positive, and truncated size at least one, otherwise #NUM!. Nonnumeric arguments give #VALUE!. The returned margin does not incorporate a sample mean, and the normal-known-scale model differs from a Student-t margin.
How to implement
- Truncate size toward zero and validate
0<alpha<1, positive standard deviation andn>=1. - Form
p=1-alpha/2with a binary64 division and subtraction, then obtain the current standard-normal inverse at p. - Multiply that critical value by standard_dev, storing to binary64. Divide the stored product by the binary64 square root of n. The current order is
(critical*standard_dev)/sqrt(n), rather than multiplying critical by a precomputed standard error.
In the example n=100 has square root ten, so the margin is approximately 1.9599639845*10/10, or 1.96. With sample mean fifty, add and subtract that margin outside the function.
For very small alpha, the stored probability expression can round to one even while alpha is positive. A tail-aware inverse can avoid that loss in a mathematical implementation, but changes the current operation tree. The normal inverse approximation and its return rounding remain separate compatibility obligations; a valid quantile algorithm alone is not evidence of Excel’s private method.
Rust code
Show the CalcFunc source of this function
Quoted from the public repository DnaCalc/DnaCalc, crates calc-func and calc-fml, at commit 9e1884369a67. Comments are the source's own. A kernel shared with other functions appears once, on its module page.
CONFIDENCE · 4 lines · calc-func/src/catalogue/distributions.rs on GitHub13 confidence "CONFIDENCE" (3, 3) [V "alpha", V "standard_dev", V "size"] |s, a, sv| {
let [alpha, sd_, n] = nums::<3>(s, a)?;
out(s, nl::confidence_norm_kernel(alpha, sd_, n))
}
Kernels shared with other functions
numscatalogue/distributionsbinary_withported/excel_numericexcel_x87_mulported/excel_numericmulported/excel_numeric/x87phi_kernelported/normal_dist_commonvalidate_probability_open_unitported/normal_log_familyinverse_standard_normal_acklam_refinedported/normal_log_familyinverse_standard_normalported/normal_log_familyconfidence_norm_kernelported/normal_log_family
Argument and result plumbing
No implementation has been published with a Handbook test suite for this function.
Version differences
No same-input comparison between named Excel builds is recorded for this function here. The documented behaviour below is not a measurement of every Excel release.
Alternatives
CONFIDENCE.NORM is the modern normal spelling; CONFIDENCE.T uses the t critical value; NORM.S.INV exposes the normal quantile.
Named variants
No named variants are recorded yet.
Suggest a correction or contribute an implementation · For agents