+ Reply to Thread
Results 1 to 10 of 10

Thread: Paired T-test

  1. #1
    Points: 1,469, Level: 21
    Level completed: 69%, Points required for next Level: 31

    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    unpaired T-test



    Hello,

    I want to perform a paired T-test. I try to do this in Excel 2007. The only "problem" is, is that I already have my std. deviation and means. So, excel thinks my n=1, which is not the case. Is there a program or a way to do manually input the std. deviation, means and N so that I can calculate this?
    Last edited by zerostin; 05-13-2011 at 07:05 AM.

  2. #2
    RotParaTon
    Points: 46,287, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Discussion EnderPosting AwardFrequent PosterCommunity AwardMaster Tagger
    Dason's Avatar
    Location
    Ames, IA
    Posts
    9,083
    Thanks
    211
    Thanked 1,609 Times in 1,379 Posts

    Re: Paired T-test

    You have more than one mean for a paired t-test?

  3. #3
    Points: 1,469, Level: 21
    Level completed: 69%, Points required for next Level: 31

    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Paired T-test

    I read some old statistics books and came to the conclusion that this was the best option.

    H0: U1 - U2 = 0
    Ha: U1 - U2 != 0

    So, I thought that the paired T-test can check if the differences between the two means are different than zero.
    Code: 
                                   Sample 1                 Sample 2
    N:                            11368                     9706      
    Mean:                      .1119241                 -.047241
    Std. deviation            .352279                  .2427075
    Last edited by zerostin; 05-12-2011 at 11:04 AM.

  4. #4
    FormerlyKnownAsRaptor
    Points: 24,442, Level: 95
    Level completed: 10%, Points required for next Level: 908
    Awards:
    Activity Award
    trinker's Avatar
    Location
    Buffalo, NY
    Posts
    3,174
    Thanks
    883
    Thanked 552 Times in 500 Posts

    Re: Paired T-test

    i don't have the answer to your excel problem but your last statement about Ho: mean difference for pre / post is equal, is correct provided you only have one group no control.

  5. #5
    Points: 1,469, Level: 21
    Level completed: 69%, Points required for next Level: 31

    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Paired T-test

    It's the same group in a different year! Therefore the N is also a bit different!

  6. #6
    RotParaTon
    Points: 46,287, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Discussion EnderPosting AwardFrequent PosterCommunity AwardMaster Tagger
    Dason's Avatar
    Location
    Ames, IA
    Posts
    9,083
    Thanks
    211
    Thanked 1,609 Times in 1,379 Posts

    Re: Paired T-test

    I'm still hung up on the fact that you have two means for a paired t-test. You should only have one mean. The mean of the differences between the pairs. I don't know exactly how your pairing was done. Let's assume it was a pre-post test situation. This implies you took the mean for the pre group and the mean for the post group. That wouldn't be what you would do for a paired t-test. For a paired t-test you would compute the post-pre differences and use the mean and standard deviation from that data.

  7. #7
    Points: 1,469, Level: 21
    Level completed: 69%, Points required for next Level: 31

    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Paired T-test

    But in Excel you can give the values of sample 1 and the observations of sample 2. And then he compares those two samples. Like this --> http://www.qimacros.com/qiwizard/t-t...variances.html

    As I know the mean, SD, Variance of the sample (pre/post) I thought there would be a way to calculate it with only that information. The reason that I am trying to want to do it like this is that it would save me a lot of time. Otherwise I need to create approx. 250 variables.

    edit: I see that it should use an unpaired T-test (because N is not the same).
    Last edited by zerostin; 05-12-2011 at 03:48 PM.

  8. #8
    RotParaTon
    Points: 46,287, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Discussion EnderPosting AwardFrequent PosterCommunity AwardMaster Tagger
    Dason's Avatar
    Location
    Ames, IA
    Posts
    9,083
    Thanks
    211
    Thanked 1,609 Times in 1,379 Posts

    Re: Paired T-test

    Quote Originally Posted by zerostin View Post
    edit: I see that it should use an unpaired T-test (because N is not the same).
    Definitely. How exactly were you doing the pairing before if N isn't the same?

  9. #9
    Points: 1,469, Level: 21
    Level completed: 69%, Points required for next Level: 31

    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Paired T-test

    I have no idea It is a long time ago for me that I had these classes about T-tests I didn't try it, because I first need to figure out how to do it.
    Anyway, I did the unpaired T-test manually in excel. I created an excel sheet (see attachment) were you can fill in the mean, SD, and N. Excel calculate the T-statistic and P-value.

    However, I have a question about this. You have an unpaired t-test with equal variances and an unpaired T-test with unequal variances.
    How do you decide if your variances are unequal?
    Attached Files

  10. #10
    Points: 1,469, Level: 21
    Level completed: 69%, Points required for next Level: 31

    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Paired T-test


    I created variables and performed an unpaired t-test in another statistical program. However, I have to reject the null hypothesis for every ttest I performed. All the p-values are very significant. So, that's not a good thing. My variables are not normally distributed, but N is at least 3000 and at most 15000 so then I can assume that my data is still normally distributed, right? So, anybody got some hints to fix this? Is a Wilcoxon rank-sum test the best alternative in this case?

    edit: I performed a WR sum test and almost everything is still very significant. Is this still an indication that there is something wrong?
    Last edited by zerostin; 05-14-2011 at 11:33 AM.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats