What is a sampling density? Why is the sampling density proportional to $N^1/p$?

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











up vote
5
down vote

favorite












I'm reading a book named The Elements of Statistical Learning by Hastie, in section 2.5, Local Methods in High Dimensions, it says that the sampling density is proportional to $N^frac1p$, where $p$ is the dimension of the input space and $N$ is the sample size.



I'm confused, what does it mean by sampling density? I do know, intuitively, as the dimension becomes larger, the sample becomes more sparse. But I don't understand exactly where does $N^frac1p$ come from.







share|cite|improve this question


























    up vote
    5
    down vote

    favorite












    I'm reading a book named The Elements of Statistical Learning by Hastie, in section 2.5, Local Methods in High Dimensions, it says that the sampling density is proportional to $N^frac1p$, where $p$ is the dimension of the input space and $N$ is the sample size.



    I'm confused, what does it mean by sampling density? I do know, intuitively, as the dimension becomes larger, the sample becomes more sparse. But I don't understand exactly where does $N^frac1p$ come from.







    share|cite|improve this question
























      up vote
      5
      down vote

      favorite









      up vote
      5
      down vote

      favorite











      I'm reading a book named The Elements of Statistical Learning by Hastie, in section 2.5, Local Methods in High Dimensions, it says that the sampling density is proportional to $N^frac1p$, where $p$ is the dimension of the input space and $N$ is the sample size.



      I'm confused, what does it mean by sampling density? I do know, intuitively, as the dimension becomes larger, the sample becomes more sparse. But I don't understand exactly where does $N^frac1p$ come from.







      share|cite|improve this question














      I'm reading a book named The Elements of Statistical Learning by Hastie, in section 2.5, Local Methods in High Dimensions, it says that the sampling density is proportional to $N^frac1p$, where $p$ is the dimension of the input space and $N$ is the sample size.



      I'm confused, what does it mean by sampling density? I do know, intuitively, as the dimension becomes larger, the sample becomes more sparse. But I don't understand exactly where does $N^frac1p$ come from.









      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Aug 18 at 22:25









      Did

      242k23208443




      242k23208443










      asked Jan 20 '13 at 20:37









      Tina

      5929




      5929




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          Recall that the sampling density or sampling rate is the number of recorded samples per unit distance.



          Assume that a sample of size $N$ is taken from the unit cube $[0,1]^p$ in $mathbb R^p$ (but the argument applies to every domain of finite volume). Roughly speaking, each point in the sample takes a volume $1/N$ of the domain, hence the distance between this point and its neighbors scales as $1/N^1/p$.






          share|cite|improve this answer




















          • Thanks for your explanation! And yet I'm still a little confused by "per unit distance". What does "per unit distance" mean? Why do we define it in this way?
            – Tina
            Jan 22 '13 at 0:27










          • A density of 0.01 per meter means that your nearest neighbour is at roughly 100 meters from you.
            – Did
            Jan 22 '13 at 7:57










          • @JhonDoe Sorry but I fail to understand your point.
            – Did
            Aug 18 at 22:24

















          up vote
          2
          down vote













          An "engineering" explanation:
          say you have a sampling grid in 2D using $2$ samples per dimension, you will have a $2times 2$ grid with $4$ samples. $4^1/2=2$



          Now you do the "equivalent" for 3D, you will have $2times 2times 2$ grid with $8$ samples with the same sampling density $8^1/3=2$.



          A 3D grid of $3times 3times3=27$ samples would have a sample density of $27^1/3=3$.



          The relation between the number of samples $N$ of a $p$-dimensional grid with $k$ samples per direction is $N=k^p$.



          So this sampling density is some how the opposite: say you have $N$ samples in $p$ dimensions and you want to know the "average" number of samples per dimension. $(N^1/p)=k$.



          And it is also used when the samples are not on a grid, but "randomly" distributed such that $k$ is not limited to integers but can be rational numbers.






          share|cite|improve this answer






















            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: "69"
            ;
            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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f283006%2fwhat-is-a-sampling-density-why-is-the-sampling-density-proportional-to-n1-p%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote



            accepted










            Recall that the sampling density or sampling rate is the number of recorded samples per unit distance.



            Assume that a sample of size $N$ is taken from the unit cube $[0,1]^p$ in $mathbb R^p$ (but the argument applies to every domain of finite volume). Roughly speaking, each point in the sample takes a volume $1/N$ of the domain, hence the distance between this point and its neighbors scales as $1/N^1/p$.






            share|cite|improve this answer




















            • Thanks for your explanation! And yet I'm still a little confused by "per unit distance". What does "per unit distance" mean? Why do we define it in this way?
              – Tina
              Jan 22 '13 at 0:27










            • A density of 0.01 per meter means that your nearest neighbour is at roughly 100 meters from you.
              – Did
              Jan 22 '13 at 7:57










            • @JhonDoe Sorry but I fail to understand your point.
              – Did
              Aug 18 at 22:24














            up vote
            3
            down vote



            accepted










            Recall that the sampling density or sampling rate is the number of recorded samples per unit distance.



            Assume that a sample of size $N$ is taken from the unit cube $[0,1]^p$ in $mathbb R^p$ (but the argument applies to every domain of finite volume). Roughly speaking, each point in the sample takes a volume $1/N$ of the domain, hence the distance between this point and its neighbors scales as $1/N^1/p$.






            share|cite|improve this answer




















            • Thanks for your explanation! And yet I'm still a little confused by "per unit distance". What does "per unit distance" mean? Why do we define it in this way?
              – Tina
              Jan 22 '13 at 0:27










            • A density of 0.01 per meter means that your nearest neighbour is at roughly 100 meters from you.
              – Did
              Jan 22 '13 at 7:57










            • @JhonDoe Sorry but I fail to understand your point.
              – Did
              Aug 18 at 22:24












            up vote
            3
            down vote



            accepted







            up vote
            3
            down vote



            accepted






            Recall that the sampling density or sampling rate is the number of recorded samples per unit distance.



            Assume that a sample of size $N$ is taken from the unit cube $[0,1]^p$ in $mathbb R^p$ (but the argument applies to every domain of finite volume). Roughly speaking, each point in the sample takes a volume $1/N$ of the domain, hence the distance between this point and its neighbors scales as $1/N^1/p$.






            share|cite|improve this answer












            Recall that the sampling density or sampling rate is the number of recorded samples per unit distance.



            Assume that a sample of size $N$ is taken from the unit cube $[0,1]^p$ in $mathbb R^p$ (but the argument applies to every domain of finite volume). Roughly speaking, each point in the sample takes a volume $1/N$ of the domain, hence the distance between this point and its neighbors scales as $1/N^1/p$.







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Jan 21 '13 at 8:10









            Did

            242k23208443




            242k23208443











            • Thanks for your explanation! And yet I'm still a little confused by "per unit distance". What does "per unit distance" mean? Why do we define it in this way?
              – Tina
              Jan 22 '13 at 0:27










            • A density of 0.01 per meter means that your nearest neighbour is at roughly 100 meters from you.
              – Did
              Jan 22 '13 at 7:57










            • @JhonDoe Sorry but I fail to understand your point.
              – Did
              Aug 18 at 22:24
















            • Thanks for your explanation! And yet I'm still a little confused by "per unit distance". What does "per unit distance" mean? Why do we define it in this way?
              – Tina
              Jan 22 '13 at 0:27










            • A density of 0.01 per meter means that your nearest neighbour is at roughly 100 meters from you.
              – Did
              Jan 22 '13 at 7:57










            • @JhonDoe Sorry but I fail to understand your point.
              – Did
              Aug 18 at 22:24















            Thanks for your explanation! And yet I'm still a little confused by "per unit distance". What does "per unit distance" mean? Why do we define it in this way?
            – Tina
            Jan 22 '13 at 0:27




            Thanks for your explanation! And yet I'm still a little confused by "per unit distance". What does "per unit distance" mean? Why do we define it in this way?
            – Tina
            Jan 22 '13 at 0:27












            A density of 0.01 per meter means that your nearest neighbour is at roughly 100 meters from you.
            – Did
            Jan 22 '13 at 7:57




            A density of 0.01 per meter means that your nearest neighbour is at roughly 100 meters from you.
            – Did
            Jan 22 '13 at 7:57












            @JhonDoe Sorry but I fail to understand your point.
            – Did
            Aug 18 at 22:24




            @JhonDoe Sorry but I fail to understand your point.
            – Did
            Aug 18 at 22:24










            up vote
            2
            down vote













            An "engineering" explanation:
            say you have a sampling grid in 2D using $2$ samples per dimension, you will have a $2times 2$ grid with $4$ samples. $4^1/2=2$



            Now you do the "equivalent" for 3D, you will have $2times 2times 2$ grid with $8$ samples with the same sampling density $8^1/3=2$.



            A 3D grid of $3times 3times3=27$ samples would have a sample density of $27^1/3=3$.



            The relation between the number of samples $N$ of a $p$-dimensional grid with $k$ samples per direction is $N=k^p$.



            So this sampling density is some how the opposite: say you have $N$ samples in $p$ dimensions and you want to know the "average" number of samples per dimension. $(N^1/p)=k$.



            And it is also used when the samples are not on a grid, but "randomly" distributed such that $k$ is not limited to integers but can be rational numbers.






            share|cite|improve this answer


























              up vote
              2
              down vote













              An "engineering" explanation:
              say you have a sampling grid in 2D using $2$ samples per dimension, you will have a $2times 2$ grid with $4$ samples. $4^1/2=2$



              Now you do the "equivalent" for 3D, you will have $2times 2times 2$ grid with $8$ samples with the same sampling density $8^1/3=2$.



              A 3D grid of $3times 3times3=27$ samples would have a sample density of $27^1/3=3$.



              The relation between the number of samples $N$ of a $p$-dimensional grid with $k$ samples per direction is $N=k^p$.



              So this sampling density is some how the opposite: say you have $N$ samples in $p$ dimensions and you want to know the "average" number of samples per dimension. $(N^1/p)=k$.



              And it is also used when the samples are not on a grid, but "randomly" distributed such that $k$ is not limited to integers but can be rational numbers.






              share|cite|improve this answer
























                up vote
                2
                down vote










                up vote
                2
                down vote









                An "engineering" explanation:
                say you have a sampling grid in 2D using $2$ samples per dimension, you will have a $2times 2$ grid with $4$ samples. $4^1/2=2$



                Now you do the "equivalent" for 3D, you will have $2times 2times 2$ grid with $8$ samples with the same sampling density $8^1/3=2$.



                A 3D grid of $3times 3times3=27$ samples would have a sample density of $27^1/3=3$.



                The relation between the number of samples $N$ of a $p$-dimensional grid with $k$ samples per direction is $N=k^p$.



                So this sampling density is some how the opposite: say you have $N$ samples in $p$ dimensions and you want to know the "average" number of samples per dimension. $(N^1/p)=k$.



                And it is also used when the samples are not on a grid, but "randomly" distributed such that $k$ is not limited to integers but can be rational numbers.






                share|cite|improve this answer














                An "engineering" explanation:
                say you have a sampling grid in 2D using $2$ samples per dimension, you will have a $2times 2$ grid with $4$ samples. $4^1/2=2$



                Now you do the "equivalent" for 3D, you will have $2times 2times 2$ grid with $8$ samples with the same sampling density $8^1/3=2$.



                A 3D grid of $3times 3times3=27$ samples would have a sample density of $27^1/3=3$.



                The relation between the number of samples $N$ of a $p$-dimensional grid with $k$ samples per direction is $N=k^p$.



                So this sampling density is some how the opposite: say you have $N$ samples in $p$ dimensions and you want to know the "average" number of samples per dimension. $(N^1/p)=k$.



                And it is also used when the samples are not on a grid, but "randomly" distributed such that $k$ is not limited to integers but can be rational numbers.







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited Jan 23 '15 at 10:58









                Casteels

                9,91742134




                9,91742134










                answered Jan 23 '15 at 10:33









                Sarmes

                213




                213






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f283006%2fwhat-is-a-sampling-density-why-is-the-sampling-density-proportional-to-n1-p%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    這個網誌中的熱門文章

                    How to combine Bézier curves to a surface?

                    Mutual Information Always Non-negative

                    Why am i infinitely getting the same tweet with the Twitter Search API?