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
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| arg1 | Required | ApiRange | ApiName | number | The significance level used to compute the confidence level, a number greater than 0 and less than 1. | |
| arg2 | Required | ApiRange | ApiName | number | The population standard deviation for the data range and is assumed to be known. This value must be greater than 0. | |
| arg3 | Required | ApiRange | ApiName | number | The sample size. |
Returns
number
Example
This example shows how to return the confidence interval for a population mean, using a normal distribution.
- Code
- Result
// How to return the confidence interval for a population mean, using a normal distribution.
// Use function to confidence interval for a population mean.
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
let ans = func.CONFIDENCE_NORM(0.5, 57, 8);
worksheet.GetRange("B2").SetValue(ans);