Statistical functions
F.INV.RT
Close: 1 of 5 recorded answers differ in the last bits, worst 1 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 | F.INV.RT |
| Bulgarian | F.INV.RT |
| Czech | F.INV.RT |
| Danish | F.INV.RT |
| German | F.INV.RT |
| Greek | F.INV.RT |
| English (Australia) | F.INV.RT |
| English (United Kingdom) | F.INV.RT |
| English (United States) | F.INV.RT |
| Spanish | INV.F.CD |
| Estonian | F.INV.RT |
| Finnish | F.KÄÄNT.OH |
| French | INVERSE.LOI.F.DROITE |
| Hebrew | F.INV.RT |
| Croatian | F.INV.RT |
| Hungarian | F.INVERZ.JOBB |
| Indonesian | F.INV.RT |
| Italian | F.INV.RT |
| Japanese | F.INV.RT |
| Korean | F.INV.RT |
| Lithuanian | F.INV.RT |
| Latvian | F.INV.RT |
| Norwegian | F.INV.RT |
| Dutch | F.INV.RECHTS |
| Polish | ROZKŁ.F.ODWR.PS |
| Portuguese (Brazil) | F.INV.RT |
| Portuguese (Portugal) | INV.F.DIR |
| Romanian | F.INV.RT |
| Russian | F.ОБР.ПХ |
| Slovak | F.INV.RT |
| Slovenian | F.INV.RT |
| Serbian (Latin) | F.INV.RT |
| Swedish | F.INV.RT |
| Thai | F.INV.RT |
| Turkish | F.TERS.SAĞK |
| Ukrainian | F.INV.RT |
| Vietnamese | F.INV.RT |
| Chinese (Simplified) | F.INV.RT |
| Chinese (Hong Kong) | F.INV.RT |
| Chinese (Traditional) | F.INV.RT |
Names from Microsoft's support site.
What it does
F.INV.RT(probability, deg_freedom1, deg_freedom2)
F.INV.RT(probability, deg_freedom1, deg_freedom2) finds an F-distribution value from a right-tail probability. The first degree count belongs to the numerator and the second to the denominator.
Try it
=F.INV.RT(0.25,2,2) is about 3. With both degree counts two, the mathematical left CDF is x/(1+x) and the right tail is 1/(1+x).
Quirks
Degree counts are truncated. Nonnumeric arguments give #VALUE!; invalid counts or probabilities give #NUM!. The current shared inverse admits each truncated degree from one through 10^10 and requires an open probability interval 0<p<1.
The Microsoft F.INV.RT page documents a denominator degree count strictly below 10^10 and #N/A after 64 unsuccessful iterations. Keep the documentation and the current code’s boundary tests distinct: a source guard alone is not an additional Excel measurement.
A left-CDF probability and a right-tail probability select different quantiles. Subtracting an extremely small right-tail probability from one can round to one and lose the target entirely.
How to implement
The current right-tail candidate uses an accurate pair of beta arguments and solves the decreasing tail directly. Let D mean ordinary binary64 storage and I_z(a,b) the regularized lower beta ratio.
- Truncate and validate numerator degrees d1 and denominator degrees d2; require
0<p<1. - At each nonnegative trial x, form
num=D(d1*x)andden=D(d2+num). Computez=D(d2/den)andw=D(num/den)separately, then the paired beta helperbratio(d2/2,d1/2,z,w).first. Do not construct w as1-z. - Negate that tail to obtain an increasing function H and set target to
-p. Start withlo=0,hi=1; double hi until H(hi) reaches the target, with at most 200 expansion checks. - Use the ordered-binary64 search: bisect the endpoint encodings until adjacent, and return the upper endpoint. The search is over the stored forward surface, not an exact real beta function.
For d1=d2=2 the mathematical tail is 1/(1+x). At p=0.25, solving 1/(1+x)=0.25 yields three.
The beta routine, its complement pair and the adjacent-value return are separate numerical stages. A beta-quantile transform x=d2*z/(d1*(1-z)) is another mathematical route with different stores. The source’s problem report retains unresolved distribution mismatches; neither route identifies every Excel approximation or certifies the full function.
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.
F.INV.RT · 4 lines · calc-func/src/catalogue/distributions.rs on GitHub34 f_inv_rt "F.INV.RT" (3, 3) [V "probability", V "deg_freedom1", V "deg_freedom2"] |s, a, sv| {
let [p, d1, d2] = nums::<3>(s, a)?;
out(s, cft::f_inv_rt_kernel(p, d1, d2))
}
Kernels shared with other functions
numscatalogue/distributionstruncate_positive_integerported/chi_f_t_familyvalidate_probability_open_unitported/chi_f_t_familysearch_upper_boundported/chi_f_t_familyf_inv_rt_kernelported/chi_f_t_familybinary_withported/excel_numericexcel_x87_addported/excel_numericexcel_x87_mulported/excel_numericexcel_x87_mul_addported/excel_numericmulported/excel_numeric/x87addported/excel_numeric/x87bratio_ftoiported/special_math_commonbratio_spmpar1ported/special_math_commonbratio_expargported/special_math_commonbratio_esumported/special_math_commonbratio_esum20ported/special_math_commonbratio_alnrelported/special_math_commonbratio_rlog1ported/special_math_commonbratio_gam1ported/special_math_commonbratio_gamln1ported/special_math_commonbratio_gamlnported/special_math_commonbratio_algdivported/special_math_commonbratio_bcorrported/special_math_commonbratio_gsumlnported/special_math_commonbratio_betalnported/special_math_commonbratio_betaln_60ported/special_math_commonbratio_erf_nswcported/special_math_commonbratio_erfc1ported/special_math_commonbratio_rexpported/special_math_commonbratio_psiported/special_math_commonbratio_fpserported/special_math_commonbratio_apserported/special_math_commonbratio_bpserported/special_math_commonbratio_bupported/special_math_commonbratio_brcompported/special_math_commonbratio_brcmp1ported/special_math_commonbratio_bfracported/special_math_commonbratio_bgratported/special_math_commonbratio_grat1ported/special_math_commonbratio_basymported/special_math_commonbratioported/special_math_commonbisect_inverseported/special_math_common
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
F.DIST.RT supplies the forward upper tail. F.INV takes a left-CDF probability; F.TEST starts with sample data.
Named variants
No named variants are recorded yet.
Suggest a correction or contribute an implementation · For agents