Where do chi squared p-value lookup tables come from?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2












$begingroup$


I'm doing a lot of labs in science and my teacher always wants us to find the chi-squared values of our data and find the probability of that occurring from a lookup table. Where do these probabilities come from in the lookup table? Is there a function or functions that output these numbers?










share|cite|improve this question









$endgroup$











  • $begingroup$
    the lookup tables your teacher mentions are the distribution tables. For example, you can get your p value for z score from normal distribution table while chi squared p-values would come from corresponding chi squared distribution. There are lots of online websites that replaced the traditional tables. for example see here
    $endgroup$
    – V. Aslanyan
    Jan 24 at 5:19















2












$begingroup$


I'm doing a lot of labs in science and my teacher always wants us to find the chi-squared values of our data and find the probability of that occurring from a lookup table. Where do these probabilities come from in the lookup table? Is there a function or functions that output these numbers?










share|cite|improve this question









$endgroup$











  • $begingroup$
    the lookup tables your teacher mentions are the distribution tables. For example, you can get your p value for z score from normal distribution table while chi squared p-values would come from corresponding chi squared distribution. There are lots of online websites that replaced the traditional tables. for example see here
    $endgroup$
    – V. Aslanyan
    Jan 24 at 5:19













2












2








2





$begingroup$


I'm doing a lot of labs in science and my teacher always wants us to find the chi-squared values of our data and find the probability of that occurring from a lookup table. Where do these probabilities come from in the lookup table? Is there a function or functions that output these numbers?










share|cite|improve this question









$endgroup$




I'm doing a lot of labs in science and my teacher always wants us to find the chi-squared values of our data and find the probability of that occurring from a lookup table. Where do these probabilities come from in the lookup table? Is there a function or functions that output these numbers?







chi-squared






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 24 at 5:10









whackamadoodle3000whackamadoodle3000

1133




1133











  • $begingroup$
    the lookup tables your teacher mentions are the distribution tables. For example, you can get your p value for z score from normal distribution table while chi squared p-values would come from corresponding chi squared distribution. There are lots of online websites that replaced the traditional tables. for example see here
    $endgroup$
    – V. Aslanyan
    Jan 24 at 5:19
















  • $begingroup$
    the lookup tables your teacher mentions are the distribution tables. For example, you can get your p value for z score from normal distribution table while chi squared p-values would come from corresponding chi squared distribution. There are lots of online websites that replaced the traditional tables. for example see here
    $endgroup$
    – V. Aslanyan
    Jan 24 at 5:19















$begingroup$
the lookup tables your teacher mentions are the distribution tables. For example, you can get your p value for z score from normal distribution table while chi squared p-values would come from corresponding chi squared distribution. There are lots of online websites that replaced the traditional tables. for example see here
$endgroup$
– V. Aslanyan
Jan 24 at 5:19




$begingroup$
the lookup tables your teacher mentions are the distribution tables. For example, you can get your p value for z score from normal distribution table while chi squared p-values would come from corresponding chi squared distribution. There are lots of online websites that replaced the traditional tables. for example see here
$endgroup$
– V. Aslanyan
Jan 24 at 5:19










1 Answer
1






active

oldest

votes


















5












$begingroup$

A little about statistics and statistical tests.



When you use the data to compute these chi-square values, we idealize whatever you compute as coming from a probability distribution. The distribution is called the chi-square distribution.



The chi-square distribution depends on a parameter called "the degrees of freedom". Since probability distributions are just functions (you know about functions), I can plot them. I've plotted the chi-square under a couple of degrees of freedom below.



[]



Now, onto p-values. Let's say you conduct your experiment and get a chi-square value. You go to your table and find the corresponding p-value. Those p-values in those tables are what we call "tail probabilities". So for example, let's say your experiment has 2 degrees of freedom (corresponding to the top left picture). You get a chi-square value of 2. Then, your p-value is the area under the curve to the right of 2 (the shaded region).



What those tables do is tell you the area under the curve for a variety of chi-square values. We obtain the values in the table by computing the area under the curve. It is easier to compute the areas under the curves once and put them in a table rather than have you compute the areas yourself, hence why you look up values in tables.



Math, if you are interested...



The function for the chi-square distribution is



$$f(x) = begincases dfracx^k/2 - 1e^-x/22^k/2 Gamma(k/2) quad x>0 \
0 qquadqquad textelse endcases$$



Here, $k$ is the degrees of freedom. Suppose you get a chi-square value of $chi$. Then the p-value is



$$ lim_srightarrow infty int_chi^s f(x) , dx$$



We know this integral converges, and that it is less than 1 unless $chi=0$. The table is created by computing this integral for various $k$ and $chi$.






share|cite|improve this answer









$endgroup$












    Your Answer





    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "65"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f388864%2fwhere-do-chi-squared-p-value-lookup-tables-come-from%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5












    $begingroup$

    A little about statistics and statistical tests.



    When you use the data to compute these chi-square values, we idealize whatever you compute as coming from a probability distribution. The distribution is called the chi-square distribution.



    The chi-square distribution depends on a parameter called "the degrees of freedom". Since probability distributions are just functions (you know about functions), I can plot them. I've plotted the chi-square under a couple of degrees of freedom below.



    []



    Now, onto p-values. Let's say you conduct your experiment and get a chi-square value. You go to your table and find the corresponding p-value. Those p-values in those tables are what we call "tail probabilities". So for example, let's say your experiment has 2 degrees of freedom (corresponding to the top left picture). You get a chi-square value of 2. Then, your p-value is the area under the curve to the right of 2 (the shaded region).



    What those tables do is tell you the area under the curve for a variety of chi-square values. We obtain the values in the table by computing the area under the curve. It is easier to compute the areas under the curves once and put them in a table rather than have you compute the areas yourself, hence why you look up values in tables.



    Math, if you are interested...



    The function for the chi-square distribution is



    $$f(x) = begincases dfracx^k/2 - 1e^-x/22^k/2 Gamma(k/2) quad x>0 \
    0 qquadqquad textelse endcases$$



    Here, $k$ is the degrees of freedom. Suppose you get a chi-square value of $chi$. Then the p-value is



    $$ lim_srightarrow infty int_chi^s f(x) , dx$$



    We know this integral converges, and that it is less than 1 unless $chi=0$. The table is created by computing this integral for various $k$ and $chi$.






    share|cite|improve this answer









    $endgroup$

















      5












      $begingroup$

      A little about statistics and statistical tests.



      When you use the data to compute these chi-square values, we idealize whatever you compute as coming from a probability distribution. The distribution is called the chi-square distribution.



      The chi-square distribution depends on a parameter called "the degrees of freedom". Since probability distributions are just functions (you know about functions), I can plot them. I've plotted the chi-square under a couple of degrees of freedom below.



      []



      Now, onto p-values. Let's say you conduct your experiment and get a chi-square value. You go to your table and find the corresponding p-value. Those p-values in those tables are what we call "tail probabilities". So for example, let's say your experiment has 2 degrees of freedom (corresponding to the top left picture). You get a chi-square value of 2. Then, your p-value is the area under the curve to the right of 2 (the shaded region).



      What those tables do is tell you the area under the curve for a variety of chi-square values. We obtain the values in the table by computing the area under the curve. It is easier to compute the areas under the curves once and put them in a table rather than have you compute the areas yourself, hence why you look up values in tables.



      Math, if you are interested...



      The function for the chi-square distribution is



      $$f(x) = begincases dfracx^k/2 - 1e^-x/22^k/2 Gamma(k/2) quad x>0 \
      0 qquadqquad textelse endcases$$



      Here, $k$ is the degrees of freedom. Suppose you get a chi-square value of $chi$. Then the p-value is



      $$ lim_srightarrow infty int_chi^s f(x) , dx$$



      We know this integral converges, and that it is less than 1 unless $chi=0$. The table is created by computing this integral for various $k$ and $chi$.






      share|cite|improve this answer









      $endgroup$















        5












        5








        5





        $begingroup$

        A little about statistics and statistical tests.



        When you use the data to compute these chi-square values, we idealize whatever you compute as coming from a probability distribution. The distribution is called the chi-square distribution.



        The chi-square distribution depends on a parameter called "the degrees of freedom". Since probability distributions are just functions (you know about functions), I can plot them. I've plotted the chi-square under a couple of degrees of freedom below.



        []



        Now, onto p-values. Let's say you conduct your experiment and get a chi-square value. You go to your table and find the corresponding p-value. Those p-values in those tables are what we call "tail probabilities". So for example, let's say your experiment has 2 degrees of freedom (corresponding to the top left picture). You get a chi-square value of 2. Then, your p-value is the area under the curve to the right of 2 (the shaded region).



        What those tables do is tell you the area under the curve for a variety of chi-square values. We obtain the values in the table by computing the area under the curve. It is easier to compute the areas under the curves once and put them in a table rather than have you compute the areas yourself, hence why you look up values in tables.



        Math, if you are interested...



        The function for the chi-square distribution is



        $$f(x) = begincases dfracx^k/2 - 1e^-x/22^k/2 Gamma(k/2) quad x>0 \
        0 qquadqquad textelse endcases$$



        Here, $k$ is the degrees of freedom. Suppose you get a chi-square value of $chi$. Then the p-value is



        $$ lim_srightarrow infty int_chi^s f(x) , dx$$



        We know this integral converges, and that it is less than 1 unless $chi=0$. The table is created by computing this integral for various $k$ and $chi$.






        share|cite|improve this answer









        $endgroup$



        A little about statistics and statistical tests.



        When you use the data to compute these chi-square values, we idealize whatever you compute as coming from a probability distribution. The distribution is called the chi-square distribution.



        The chi-square distribution depends on a parameter called "the degrees of freedom". Since probability distributions are just functions (you know about functions), I can plot them. I've plotted the chi-square under a couple of degrees of freedom below.



        []



        Now, onto p-values. Let's say you conduct your experiment and get a chi-square value. You go to your table and find the corresponding p-value. Those p-values in those tables are what we call "tail probabilities". So for example, let's say your experiment has 2 degrees of freedom (corresponding to the top left picture). You get a chi-square value of 2. Then, your p-value is the area under the curve to the right of 2 (the shaded region).



        What those tables do is tell you the area under the curve for a variety of chi-square values. We obtain the values in the table by computing the area under the curve. It is easier to compute the areas under the curves once and put them in a table rather than have you compute the areas yourself, hence why you look up values in tables.



        Math, if you are interested...



        The function for the chi-square distribution is



        $$f(x) = begincases dfracx^k/2 - 1e^-x/22^k/2 Gamma(k/2) quad x>0 \
        0 qquadqquad textelse endcases$$



        Here, $k$ is the degrees of freedom. Suppose you get a chi-square value of $chi$. Then the p-value is



        $$ lim_srightarrow infty int_chi^s f(x) , dx$$



        We know this integral converges, and that it is less than 1 unless $chi=0$. The table is created by computing this integral for various $k$ and $chi$.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 24 at 6:00









        Demetri PananosDemetri Pananos

        1,533418




        1,533418



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Cross Validated!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f388864%2fwhere-do-chi-squared-p-value-lookup-tables-come-from%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay