Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dahliah2
 
Posts: n/a
Default Finding the CI in t-test analysis

Is there a way to get the confidence interval on the worksheet for t-Test:
Two-Sample Assuming Unequal Variances?

  #2   Report Post  
Mike Middleton
 
Posts: n/a
Default

Dahliah2 -

Is there a way to get the confidence interval on the worksheet for t-Test:
Two-Sample Assuming Unequal Variances? <


A method is described on page 132 of my book, Data Analysis Using MS Excel:
Updated for Office XP.

It uses the results from Analysis ToolPak on a worksheet, working
"backwards" from the reported t Stat to get the Standard Error. Use cells
and cell references for the following six quantities:

Observed Mean Difference = Mean2 - Mean1 (using references to cells in the
ToolPak results in the row labeled "Mean")
Standard Error = (Observed Mean Difference - Hypothesized Mean
Difference)/(t Stat)
95% Confidence t =TINV(0.05,df)
Half-Width = (95% Confidence t)*(Standard Error)
Lower Limit = Observed Mean Difference - Half-Width
Upper Limit = Observed Mean Difference + Half-Width

- Mike
www.mikemiddleton.com


  #3   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

The trick with unequal variances is how to calculate standard error and
evaluate df. This is discussed at
http://groups-beta.google.com/group/...a5754092189c39

This (Satterthwaite's) formula for effective df usually results in
non-integer df. The Analysis ToolPak uses ROUNDDOWN(df,0), which is a
conservative approximation.

The TTEST worksheet function uses the estimated df directly, but that
too takes some work since the TDIST function only uses integer df. t^2
is distributed as F(1,df), but FDIST also only uses integer df. You can
use the identity
FDIST(f,d1,d2) = BETADIST(d2/(d2+d1*f),d2/2,d1/2)
which reduces in this case to
TDIST(t,df) = BETADIST(df/(df+t^2),df/2,0.5)
to reproduce the p-value given by TTEST, which will be smaller than the
p-value given by ATP.

Working backward, to get a confidence interval you would use
TINV(alpha,df) =
SQRT(-BETAINV(alpha,df/2,0.5)*df*(BETAINV(alpha,df/2,0.5)-1))/BETAINV(alpha,df/2,0.5)
to deal with the non-integer df.

Jerry

Dahliah2 wrote:

Is there a way to get the confidence interval on the worksheet for t-Test:
Two-Sample Assuming Unequal Variances?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic: Problem with two one sided t-test Rosario Excel Discussion (Misc queries) 4 May 5th 05 05:23 PM
Why " data analysis plus " override " data analysis " once instal. Alfred H K Yip Excel Worksheet Functions 1 March 20th 05 08:10 AM
Analysis ToolPak installed but no Data Analysis option Eric Stephens Excel Discussion (Misc queries) 3 February 2nd 05 09:17 PM


All times are GMT +1. The time now is 08:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"