3.5.3.1.3 Confidence

Description

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

Syntax

double Confidence(double alpha, double std, int size)

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.

Return

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

Example

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