+ Reply to Thread
Results 1 to 6 of 6

a question on data arrangement (general) and chi-sq test (specific)

  1. #1
    Forum Contributor
    Join Date
    02-28-2013
    Location
    NY, USA
    MS-Off Ver
    Excel 2019
    Posts
    101

    a question on data arrangement (general) and chi-sq test (specific)

    a general question about data arrangement in Excel for calculation -

    I have a huge list that I need to do a chi-square analysis on the data in the list (see attachment or below)
    As chi-sq test runs as chi-sq (actual data, expected data), data is required (?) to be arranged in a certain way.
    example 1
    actual range expected range
    row1 10 150 55.65217391 104.3478261
    row2 150 150 104.3478261 195.6521739

    chi square is calculated as chi-sq test(b2:c3, f2:g3)

    However, my list is arranged as follows

    example 2
    actual expected
    10 150 150 150 55.65217391 104.3478261 104.3478261 195.6521739
    48 112 33 267 28.17391304 131.826087 52.82608696 247.173913
    130 30 78 222 72.34782609 87.65217391 135.6521739 164.3478261
    3 157 234 66 82.43478261 77.56521739 154.5652174 145.4347826




    where I need to do chi-sq test for each row (data in the first row of example 2 is identical to the data in example 1)

    While I was able to generate a list of the "expected ranges" for all rows (see example 2), chi-sq does not seem to support calculated data to be arranged this way (#VALUE!)

    Is there a way to (a) re-arrange the data to conform to chi-square data arrangement or (b) to calculate chi-square without re-arranging the data?

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: a question on data arrangement (general) and chi-sq test (specific)

    An example workbook might help sort that spaghetti out.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    02-28-2013
    Location
    NY, USA
    MS-Off Ver
    Excel 2019
    Posts
    101

    Re: a question on data arrangement (general) and chi-sq test (specific)

    An example had been attached in the original posting. Not sure how to put up a workbook inside the question itself. please advise. thank you.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: a question on data arrangement (general) and chi-sq test (specific)

    You could do

    =CHISQ.TEST(CHOOSE({1;2}, B10:C10, E10:F10), CHOOSE({1;2}, H10:I10, K10:L10))

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    2
    row1
    10
    150
    160
    55.7
    104.3
    3
    row2
    150
    150
    300
    104.3
    195.7
    4
    160
    300
    460
    5
    6
    6.39E-21
    B6: =CHISQ.TEST(B2:C3,F2:G3)
    7
    8
    actual
    expected
    9
    actual list col1 col2 col4 col5
    10
    10
    150
    150
    150
    55.7
    104.3
    104.3
    195.7
    11
    48
    112
    33
    267
    28.2
    131.8
    52.8
    247.2
    12
    130
    30
    78
    222
    72.3
    87.7
    135.7
    164.3
    13
    3
    157
    234
    66
    82.4
    77.6
    154.6
    145.4
    14
    15
    16
    6.39E-21
    B16: =CHISQ.TEST(CHOOSE({1;2}, B10:C10, E10:F10), CHOOSE({1;2}, H10:I10, K10:L10))

  5. #5
    Forum Contributor
    Join Date
    02-28-2013
    Location
    NY, USA
    MS-Off Ver
    Excel 2019
    Posts
    101

    Re: a question on data arrangement (general) and chi-sq test (specific)

    Thanks a lot !!

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: a question on data arrangement (general) and chi-sq test (specific)

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pull a row of data for a specific test and student into new sheet
    By kgunes in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-20-2014, 12:13 PM
  2. Sorting data from one general column to multiple specific columns
    By abuchan in forum Excel Programming / VBA / Macros
    Replies: 37
    Last Post: 04-02-2011, 04:15 AM
  3. Excel sport test point arrangement
    By HelpHelp23 in forum Excel General
    Replies: 1
    Last Post: 02-10-2009, 10:26 AM
  4. different:General Question
    By mtaystl11 in forum Excel General
    Replies: 5
    Last Post: 06-24-2006, 10:55 AM
  5. [SOLVED] General Question
    By Me in forum Excel General
    Replies: 3
    Last Post: 01-12-2006, 09:00 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1