跳到主要内容

CONFIDENCE_NORM

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

Syntax

expression.CONFIDENCE_NORM(arg1, arg2, arg3);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe significance level used to compute the confidence level, a number greater than 0 and less than 1.
arg2RequiredApiRange | ApiName | numberThe population standard deviation for the data range and is assumed to be known. This value must be greater than 0.
arg3RequiredApiRange | ApiName | numberThe sample size.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
let ans = func.CONFIDENCE_NORM(0.5, 57, 8);
worksheet.GetRange("B2").SetValue(ans);