ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Excel only calculates the confidence interval for a population . (https://www.excelbanter.com/excel-worksheet-functions/18937-excel-only-calculates-confidence-interval-population.html)

Cyler

Excel only calculates the confidence interval for a population .
 
Excel only calculates the confidence interval for a population mean through
the =CONFIDENCE() function. I want the flexibility to calculate the
confidence interval for a sample mean as well. Can Microsoft develop a
CONFIDENCE function for sample data and not just population data?

Jerry W. Lewis

What's wrong with
=TINV(alpha,n-1)*s/SQRT(n-1)
where
s = sample SD
n = sample size

If you really want a single function, you can write a VBA user defined
function that you can call from the worksheet

Function SConfidence(alpha, standard_dev, size)
SConfidence = WorksheetFunction.TInv(alpha, size - 1) _
* standard_dev / SQRT(size - 1)
End Function

Jerry

Cyler wrote:

Excel only calculates the confidence interval for a population mean through
the =CONFIDENCE() function. I want the flexibility to calculate the
confidence interval for a sample mean as well. Can Microsoft develop a
CONFIDENCE function for sample data and not just population data?




All times are GMT +1. The time now is 02:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com