3.5.2.4 Confidence

Description

Calculate the confidence interval for a population mean, using a normal distribution by default.

Syntax

double Confidence(double alpha, double std, int size[, int dist])

Parameters

alpha

0<alpha \le 1, the significance level used to compute the confidence level.

std

The population standard deviation for the data.

size

size>0, the sample size.

dist

Optional. Distribution.
  • 1 = Normal distribution, default
  • 2 = Student's T distribution

Return

Return the confidence interval for a population mean, or missing value "--" for error.

Example

confidence(0.05, 1.5, 100) = ;  // 0.29399459768101