Function Repository Resource:

StudentTCI

Source Notebook

Estimate the confidence interval based on Student's t-distribution

Contributed by: Wolfram Research

ResourceFunction["StudentTCI"][μ,σ,df]

gives a confidence interval based on Student's t-distribution with df degrees of freedom.

Details and Options

ResourceFunction["StudentTCI"][μ,σ,df] gives a confidence interval {min,max} centered at μ based on Student's t-distribution with location parameter μ, scale parameter σ and df degrees of freedom.
ResourceFunction["StudentTCI"] is the confidence interval for a population mean based on a sample mean μ and standard error σ estimated from a sample of size df + 1.
The following option can be given:
ConfidenceLevel0.95probability associated with a confidence interval

Examples

Basic Examples (1) 

A 95% confidence interval based on Student's t-distribution with 10 degrees of freedom:

In[1]:=
ResourceFunction["StudentTCI"][1, 2, 10]
Out[1]=

Options (1) 

ConfidenceLevel (1) 

A 99% confidence interval:

In[2]:=
ResourceFunction["StudentTCI"][1, 2, 10, ConfidenceLevel -> .99]
Out[2]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 13 February 2019

Related Resources

License Information