+ Reply to Thread
Results 1 to 15 of 15

Thread: correlation between 2 groups

  1. #1
    Points: 2,197, Level: 28
    Level completed: 32%, Points required for next Level: 103

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    correlation between 2 groups



    Hi

    I have given questionnaires to 50 participants, and i want to see if there are any differences in the mean values between those participants with an even compared to an odd questionnaire number. So i have split the participants into 2 groups- group A(even nos) and group B(odd nos). I have the means for group A and group B.

    I was wondering if there is a correlation caclulation i can do on these two means, to see how different the means are from each other?

    Many thanks

  2. #2
    TS Contributor
    Points: 11,244, Level: 69
    Level completed: 99%, Points required for next Level: 6

    Location
    Israel
    Posts
    376
    Thanks
    0
    Thanked 3 Times in 3 Posts
    I wouldn't use correlation calculation, it ain't appropriate, if you want to compare 2 means, you should think more in the way of the t-test, or the equivalent non parametric text, in case the assumptions of the t-test will not be valid.

  3. #3
    Points: 2,197, Level: 28
    Level completed: 32%, Points required for next Level: 103

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    HI

    Many thanks for your reply. But i didn't quite understand- when would the assumptions of the t test not be valid? And would you be able to suggest a non-parametric test or a website where i can find out more.

    Many thanks

  4. #4
    Super Moderator
    Points: 8,562, Level: 62
    Level completed: 38%, Points required for next Level: 188
    Dragan's Avatar
    Location
    Illinois, US
    Posts
    1,722
    Thanks
    0
    Thanked 127 Times in 113 Posts
    Quote Originally Posted by safig View Post
    Hi

    I have given questionnaires to 50 participants, and i want to see if there are any differences in the mean values between those participants with an even compared to an odd questionnaire number. So i have split the participants into 2 groups- group A(even nos) and group B(odd nos). I have the means for group A and group B.

    I was wondering if there is a correlation caclulation i can do on these two means, to see how different the means are from each other?

    Many thanks
    Well, yes, there is (sort of).

    First, you take your data and put it into a single column called Score.

    Second, you create a second column called Group. You assign 1’s to the scores from the first group and 2’s to the scores from the second group.

    Third you compute the (Pearson) correlation (r) between Score and Group.

    Fourth, compute t as:

    t = (r*Sqrt[N-2]) / Sqrt[1 – r^2]

    Compare your computed t to the critical value of t on N – 2 degrees of freedom.

    Note: This process is logically equivalent to conducting a two-independent samples t-test.

  5. #5
    Points: 2,197, Level: 28
    Level completed: 32%, Points required for next Level: 103

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    thank you for your reply. I was looking at the pearson calculation on excel help- does one set have to be independent values and the other dependent?

    Also, is N the number of values? I did the calculation and it returned t = 0.141756158, how do i compare this- didn't quite understand the N-2 degrees of freedom


    many thanks once again
    Last edited by safig; 11-07-2009 at 10:02 AM.

  6. #6
    TS Contributor
    Points: 11,244, Level: 69
    Level completed: 99%, Points required for next Level: 6

    Location
    Israel
    Posts
    376
    Thanks
    0
    Thanked 3 Times in 3 Posts
    before using the t-test, you must verify that the scores of both groups have the normal distribution ( or at least approximately normal ), and that their variances are equal. if this is not the case, I think it would be better to use the Wilcoxon-Mann Whitney test.

  7. #7
    Points: 2,197, Level: 28
    Level completed: 32%, Points required for next Level: 103

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    Thanks for your reply. How do i confirm they have a normal distribution? - is it just a case of plotting the data on a graph and looking to see if the distribution forms a bell-shaped curve?

    I've checked the variance for group A and group B. Group A is 4.3 and Group B is 4.01. So i guess this rules out using the t test?

    I've done a t-Test in Microsoft Excel 2007: Two-Sample Assuming Unequal Variances

    Variable 1 Variable 2
    Mean 3.295250896 3.337365591
    Variance 4.247571555 3.960977676
    Observations 93 93
    Hypothesized Mean Difference 0
    df 184
    t Stat -0.141756158
    P(T<=t) one-tail 0.443713852
    t Critical one-tail 1.653177088
    P(T<=t) two-tail 0.887427704
    t Critical two-tail 1.9729405

    I would be grateful if you could help me interpret what this means? Is it the right test?

    Many thanks
    Last edited by safig; 11-08-2009 at 03:24 AM.

  8. #8
    TS Contributor
    Points: 12,245, Level: 72
    Level completed: 49%, Points required for next Level: 205
    gianmarco's Avatar
    Location
    Italy
    Posts
    722
    Thanks
    43
    Thanked 93 Times in 71 Posts
    Hi,
    just few hints:

    1) attached article on Welch t (t-test for unequal variance)

    2) my Excel template for comparing two groups (see my previous post http://talkstats.com/showthread.php?p=25323#post25323)

    Hope this help,
    Regards

    Gm
    Attached Images

  9. #9
    Points: 2,197, Level: 28
    Level completed: 32%, Points required for next Level: 103

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Interpreting the t test assuming unequal variance

    Hi

    thanks for your reply. I've managed to do the unequal variance t test (which i understand is the same as the Welch test). Problem is, i'm not sure how to interpret the results. Would you be able to help at all? Results are below

    t-Test: Two-Sample Assuming Unequal Variances

    Variable 1 Variable 2
    Mean 3.295250896 3.337365591
    Variance 4.247571555 3.960977676
    Observations 93 93
    Hypothesized Mean Difference 0
    df 184
    t Stat -0.141756158
    P(T<=t) one-tail 0.443713852
    t Critical one-tail 1.653177088
    P(T<=t) two-tail 0.887427704
    t Critical two-tail 1.9729405



    Many thanks

  10. #10
    TS Contributor
    Points: 12,245, Level: 72
    Level completed: 49%, Points required for next Level: 205
    gianmarco's Avatar
    Location
    Italy
    Posts
    722
    Thanks
    43
    Thanked 93 Times in 71 Posts
    Hi,
    would you mind to let me inspect your data?

    You can attach them as a reply or as a private message to me.

    May be I can give you a better comment.

    Regards,
    Gm

  11. #11
    Points: 2,197, Level: 28
    Level completed: 32%, Points required for next Level: 103

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    I'm afraid i'm not allowed to send the data, sorry. Is there any chance you would be able to comment on the results as they are- or tell me what sort of values i should be looking at?

    thanks

  12. #12
    Super Moderator
    Points: 8,562, Level: 62
    Level completed: 38%, Points required for next Level: 188
    Dragan's Avatar
    Location
    Illinois, US
    Posts
    1,722
    Thanks
    0
    Thanked 127 Times in 113 Posts
    Quote Originally Posted by safig View Post
    Hi

    thanks for your reply. I've managed to do the unequal variance t test (which i understand is the same as the Welch test). Problem is, i'm not sure how to interpret the results. Would you be able to help at all? Results are below

    t-Test: Two-Sample Assuming Unequal Variances

    Variable 1 Variable 2
    Mean 3.295250896 3.337365591
    Variance 4.247571555 3.960977676
    Observations 93 93
    Hypothesized Mean Difference 0
    df 184
    t Stat -0.141756158
    P(T<=t) one-tail 0.443713852
    t Critical one-tail 1.653177088
    P(T<=t) two-tail 0.887427704
    t Critical two-tail 1.9729405



    Many thanks

    Safig: Quite frankly, by the looking at your observed Very Small t statistic (t=-0.141756), I really don't think that any alternative procedure is going to change the conclusion that you're means are not statistically different.

  13. #13
    Points: 2,197, Level: 28
    Level completed: 32%, Points required for next Level: 103

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    Great, so the means from the two groups are not statistically different- which is what i expected. What sort of t value would you need for the means to be statistically different.

    Many thanks for ur help everyone

  14. #14
    TS Contributor
    Points: 12,245, Level: 72
    Level completed: 49%, Points required for next Level: 205
    gianmarco's Avatar
    Location
    Italy
    Posts
    722
    Thanks
    43
    Thanked 93 Times in 71 Posts
    Hi,

    Please find attached a PDF file with the output of the t-test performed with Sigmaplot.

    The program is interesting since it explain the results.

    The test is performed twice: one for two groups with significant mean difference; one for groups similar in mean value.


    Hope this help,
    regards
    Gm
    Attached Images

  15. #15
    Points: 2,197, Level: 28
    Level completed: 32%, Points required for next Level: 103

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hi

    thanks for your reply. I will try and download sigmaplot, and hopefully that will help me to make sense of the results!

    thanks

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 07-14-2009, 06:09 AM
  2. Two groups & two
    By SML in forum Statistical Research
    Replies: 0
    Last Post: 12-18-2008, 01:00 PM
  3. Replies: 0
    Last Post: 04-01-2008, 07:41 AM
  4. Correlation in pooled groups
    By BogdanG in forum Statistics
    Replies: 0
    Last Post: 11-21-2007, 09:16 AM
  5. Correlation between groups
    By Nee in forum Statistics
    Replies: 3
    Last Post: 05-20-2006, 08:01 AM

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