Why is the sum of probabilities in a continuous uniform distribution not infinity?










9












$begingroup$


Probability density function



The probability density function of a uniform distribution (continuous) is shown above. The area under the curve is 1 - which makes sense since the sum of all the probabilities in a probability distribution is 1.



Formally, the above probability function (f(x)) can be defined as




1/(b-a) for x in [a,b]



and 0 otherwise




Consider that I have to choose a real number between a (say, 2) and b (say, 6). This makes the uniform probability = 0.25. However, since there are an infinite number of numbers in that interval, shouldn't the sum of all the probabilities sum up to infinity? What am I overlooking?



Is f(x) not the probability of the number x occurring?










share|cite|improve this question









$endgroup$











  • $begingroup$
    also: math.stackexchange.com/questions/2885278/… ; stats.stackexchange.com/questions/199280/…
    $endgroup$
    – Ben Bolker
    Aug 28 '18 at 12:36






  • 1




    $begingroup$
    $f(x)$ is not a probability function—it is a probability density function. That is, it doesn't give you the probability for $x$ being a certain number, but the probability density, or the probability per unit length along the x-axis. You use integration to get the total probability for this type of function—not summation.
    $endgroup$
    – HelloGoodbye
    Aug 28 '18 at 16:29















9












$begingroup$


Probability density function



The probability density function of a uniform distribution (continuous) is shown above. The area under the curve is 1 - which makes sense since the sum of all the probabilities in a probability distribution is 1.



Formally, the above probability function (f(x)) can be defined as




1/(b-a) for x in [a,b]



and 0 otherwise




Consider that I have to choose a real number between a (say, 2) and b (say, 6). This makes the uniform probability = 0.25. However, since there are an infinite number of numbers in that interval, shouldn't the sum of all the probabilities sum up to infinity? What am I overlooking?



Is f(x) not the probability of the number x occurring?










share|cite|improve this question









$endgroup$











  • $begingroup$
    also: math.stackexchange.com/questions/2885278/… ; stats.stackexchange.com/questions/199280/…
    $endgroup$
    – Ben Bolker
    Aug 28 '18 at 12:36






  • 1




    $begingroup$
    $f(x)$ is not a probability function—it is a probability density function. That is, it doesn't give you the probability for $x$ being a certain number, but the probability density, or the probability per unit length along the x-axis. You use integration to get the total probability for this type of function—not summation.
    $endgroup$
    – HelloGoodbye
    Aug 28 '18 at 16:29













9












9








9


4



$begingroup$


Probability density function



The probability density function of a uniform distribution (continuous) is shown above. The area under the curve is 1 - which makes sense since the sum of all the probabilities in a probability distribution is 1.



Formally, the above probability function (f(x)) can be defined as




1/(b-a) for x in [a,b]



and 0 otherwise




Consider that I have to choose a real number between a (say, 2) and b (say, 6). This makes the uniform probability = 0.25. However, since there are an infinite number of numbers in that interval, shouldn't the sum of all the probabilities sum up to infinity? What am I overlooking?



Is f(x) not the probability of the number x occurring?










share|cite|improve this question









$endgroup$




Probability density function



The probability density function of a uniform distribution (continuous) is shown above. The area under the curve is 1 - which makes sense since the sum of all the probabilities in a probability distribution is 1.



Formally, the above probability function (f(x)) can be defined as




1/(b-a) for x in [a,b]



and 0 otherwise




Consider that I have to choose a real number between a (say, 2) and b (say, 6). This makes the uniform probability = 0.25. However, since there are an infinite number of numbers in that interval, shouldn't the sum of all the probabilities sum up to infinity? What am I overlooking?



Is f(x) not the probability of the number x occurring?







probability distributions uniform






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Aug 28 '18 at 3:18









Rahul SahaRahul Saha

311212




311212











  • $begingroup$
    also: math.stackexchange.com/questions/2885278/… ; stats.stackexchange.com/questions/199280/…
    $endgroup$
    – Ben Bolker
    Aug 28 '18 at 12:36






  • 1




    $begingroup$
    $f(x)$ is not a probability function—it is a probability density function. That is, it doesn't give you the probability for $x$ being a certain number, but the probability density, or the probability per unit length along the x-axis. You use integration to get the total probability for this type of function—not summation.
    $endgroup$
    – HelloGoodbye
    Aug 28 '18 at 16:29
















  • $begingroup$
    also: math.stackexchange.com/questions/2885278/… ; stats.stackexchange.com/questions/199280/…
    $endgroup$
    – Ben Bolker
    Aug 28 '18 at 12:36






  • 1




    $begingroup$
    $f(x)$ is not a probability function—it is a probability density function. That is, it doesn't give you the probability for $x$ being a certain number, but the probability density, or the probability per unit length along the x-axis. You use integration to get the total probability for this type of function—not summation.
    $endgroup$
    – HelloGoodbye
    Aug 28 '18 at 16:29















$begingroup$
also: math.stackexchange.com/questions/2885278/… ; stats.stackexchange.com/questions/199280/…
$endgroup$
– Ben Bolker
Aug 28 '18 at 12:36




$begingroup$
also: math.stackexchange.com/questions/2885278/… ; stats.stackexchange.com/questions/199280/…
$endgroup$
– Ben Bolker
Aug 28 '18 at 12:36




1




1




$begingroup$
$f(x)$ is not a probability function—it is a probability density function. That is, it doesn't give you the probability for $x$ being a certain number, but the probability density, or the probability per unit length along the x-axis. You use integration to get the total probability for this type of function—not summation.
$endgroup$
– HelloGoodbye
Aug 28 '18 at 16:29




$begingroup$
$f(x)$ is not a probability function—it is a probability density function. That is, it doesn't give you the probability for $x$ being a certain number, but the probability density, or the probability per unit length along the x-axis. You use integration to get the total probability for this type of function—not summation.
$endgroup$
– HelloGoodbye
Aug 28 '18 at 16:29










5 Answers
5






active

oldest

votes


















18












$begingroup$

$f(x)$ describes the probability density rather than a probability mass in your example. In general, for continuous distributions the events—the things we get probabilities for—are ranges of values, such as for the area under the curve from $a$ to $a+.1$, or from $a$ to $b$ (although such ranges need not be contiguous). For continuous distributions, the probability of any single value occurring is generally 0.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    Is there a more technically accurate way to say what you're trying to say? I'm worried the "range" thing will throw people off, considering continuous distributions can have Dirac deltas...
    $endgroup$
    – Mehrdad
    Aug 28 '18 at 9:03






  • 3




    $begingroup$
    @Mehrdad: The dirac delta does not have a continuous distribution. The proper way of assigning probabilities would be via $P(A) = int_A 1dF$.
    $endgroup$
    – Alex R.
    Aug 28 '18 at 10:39







  • 1




    $begingroup$
    @AlexR.: Oof, I assumed by "continuous distribution" you just meant a distribution over a continuous domain, since that's what people refer to when they say the Dirac delta is the continuous analog of the Kronecker delta. Thanks for clarifying.
    $endgroup$
    – Mehrdad
    Aug 28 '18 at 11:24










  • $begingroup$
    @Mehrdad I was thinking precisely of Dirac's delta, but I hope you will notice the term "in general", and also the apparent level of statistical literacy of the OP.
    $endgroup$
    – Alexis
    Aug 28 '18 at 13:57











  • $begingroup$
    @Mehrdad The technical formulation of a random variable is in terms of a measure: there is a function from the power set of the event space to the interval [0,1]. A probability density function can be used as a measure (the measure of a set is simply the integral of the PDF over that set), but there are measures, such as the Dirac delta (a set has measure 1 if it contains $x_0$, and is zero otherwise) that are, strictly speaking, not function in the traditional sense.
    $endgroup$
    – Acccumulation
    Aug 29 '18 at 14:51


















11












$begingroup$

Because each term in the summation is weighted by the infinitesimal d$x$. The importance of this is probably most easily understood by carefully walking through a very basic example.



Consider using Riemann summation to compute the area under the following rectangular region (a rectangle was chosen to remove the approximation aspect of Riemann summation, which is not the focus here):
rectangular region]
We can compute the area using 2 subregions, or by using 4 subregions. In the case of the 2 subregions (denoted $A_i$), the areas are given by $$A_1=A_2=5times 2 = 10$$ whereas in the case of 4 subregions (denoted $B_i$), the areas are given by $$B_1=B_2=B_3=B_4=5times 1 = 5$$ The total area in both cases correspond to $$sum_i=1^2 A_i = sum_i=1^4B_i = 20$$
Now, this is all fairly obvious, but it raises a subtly important question which is: why do these two answers agree? Intuitively it should be clear that it works because we've reduced the width of the second set of subregions. We could consider doing the same thing with 8 subregions each with a width of $0.5$, and again with 16... and we could continue this process until we have an infinite number of subregions, each with a tiny width of d$x$. As long as everything is always correctly weighted, the answers should always agree. Without the correct weighting, the summation would indeed simply be $infty$.



This is why I always make sure to point out to students that an integral is not simply the symbol $int$, but the pair of symbols $int text dx$.






share|cite|improve this answer











$endgroup$




















    5












    $begingroup$

    You're interpreting the probability distribution the wrong way - it is an infinite number of infinitely divided probabilities, so you can't say that "the probability of drawing the value 0.5 from a (0, 1) uniform distribution" because that probability is zero - there are an infinite number of possible values you could get, and all of them are equally likely, so clearly the probability of any individual outcome is $frac1infty = 0$[1].



    Instead, you can look at the probability for a range of outcomes, and measure that using areas (and hence integrals). For example, if you draw from the (0, 1) uniform distribution (with pdf $f(x) = 1$ for $x in left[0, 1right]$ and $f(x) = 0$ otherwise), then the probability that your result lies between $0.2$ and $0.3$ is



    $int_0.2^0.3 f(x) dx = int_0.2^0.3 1 dx = left[x right]_0.2^0.3 = 0.3 - 0.2 = 0.1$



    i.e. you have a 10% chance of getting a result in that range.



    [1]Sorry for all the people having heart attacks at my over-simplification of the calculation.






    share|cite|improve this answer









    $endgroup$




















      0












      $begingroup$

      In general your reasoning fails in this assumption:




      However, since there are an infinite number of numbers in that interval, shouldn't the sum of all the probabilities sum up to infinity?




      It's a mathematical problem, known since the Zeno of Elea Paradoxes.



      Two of his claims were that



      1. An arrow can never reach its target

      2. Achilles will never overtake a turtle

      Both of them were based on the claim that you can build an infinite sequence of positive numbers (in the former case by saying that an arrow has to fly infinitely times half of the remaining way to the target, in the latter by saying that Achilles has to reach position where the turtle was previously, and in the meantime the turtle moves to a new position that becomes our next reference base point).



      Fast forward, this led to a discovery of infinite sums.



      So in general sum of infinite many positive numbers does not necessarily have to be infinite; however, it may not be infinite only if (an extreme oversimplification, sorry about that) almost all of the numbers in the sequence are very close to 0, regardless how close to zero you request them to be.



      Infinity plays even more tricks. The order in which you add elements of the sequence is important too and might lead to a situation that reordering gives different results!



      Explore a bit more about paradoxes of infinity. You might be astonished.






      share|cite|improve this answer











      $endgroup$












      • $begingroup$
        I don't see a way to interpret the question such that OP thinks of countable sums.
        $endgroup$
        – JiK
        Aug 28 '18 at 15:13


















      0












      $begingroup$

      $f(x)$ describes the probability density, and has the unit $fracpx$. Hence for a given x you get $f(x) = frac1b-a$ in $fracpx$ units, and not p, as you are looking for. If you want p, you need the distribution function for a given range, that is the probability p of x being within a and b.



      Hope this makes sense.






      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%2f364278%2fwhy-is-the-sum-of-probabilities-in-a-continuous-uniform-distribution-not-infinit%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        18












        $begingroup$

        $f(x)$ describes the probability density rather than a probability mass in your example. In general, for continuous distributions the events—the things we get probabilities for—are ranges of values, such as for the area under the curve from $a$ to $a+.1$, or from $a$ to $b$ (although such ranges need not be contiguous). For continuous distributions, the probability of any single value occurring is generally 0.






        share|cite|improve this answer











        $endgroup$












        • $begingroup$
          Is there a more technically accurate way to say what you're trying to say? I'm worried the "range" thing will throw people off, considering continuous distributions can have Dirac deltas...
          $endgroup$
          – Mehrdad
          Aug 28 '18 at 9:03






        • 3




          $begingroup$
          @Mehrdad: The dirac delta does not have a continuous distribution. The proper way of assigning probabilities would be via $P(A) = int_A 1dF$.
          $endgroup$
          – Alex R.
          Aug 28 '18 at 10:39







        • 1




          $begingroup$
          @AlexR.: Oof, I assumed by "continuous distribution" you just meant a distribution over a continuous domain, since that's what people refer to when they say the Dirac delta is the continuous analog of the Kronecker delta. Thanks for clarifying.
          $endgroup$
          – Mehrdad
          Aug 28 '18 at 11:24










        • $begingroup$
          @Mehrdad I was thinking precisely of Dirac's delta, but I hope you will notice the term "in general", and also the apparent level of statistical literacy of the OP.
          $endgroup$
          – Alexis
          Aug 28 '18 at 13:57











        • $begingroup$
          @Mehrdad The technical formulation of a random variable is in terms of a measure: there is a function from the power set of the event space to the interval [0,1]. A probability density function can be used as a measure (the measure of a set is simply the integral of the PDF over that set), but there are measures, such as the Dirac delta (a set has measure 1 if it contains $x_0$, and is zero otherwise) that are, strictly speaking, not function in the traditional sense.
          $endgroup$
          – Acccumulation
          Aug 29 '18 at 14:51















        18












        $begingroup$

        $f(x)$ describes the probability density rather than a probability mass in your example. In general, for continuous distributions the events—the things we get probabilities for—are ranges of values, such as for the area under the curve from $a$ to $a+.1$, or from $a$ to $b$ (although such ranges need not be contiguous). For continuous distributions, the probability of any single value occurring is generally 0.






        share|cite|improve this answer











        $endgroup$












        • $begingroup$
          Is there a more technically accurate way to say what you're trying to say? I'm worried the "range" thing will throw people off, considering continuous distributions can have Dirac deltas...
          $endgroup$
          – Mehrdad
          Aug 28 '18 at 9:03






        • 3




          $begingroup$
          @Mehrdad: The dirac delta does not have a continuous distribution. The proper way of assigning probabilities would be via $P(A) = int_A 1dF$.
          $endgroup$
          – Alex R.
          Aug 28 '18 at 10:39







        • 1




          $begingroup$
          @AlexR.: Oof, I assumed by "continuous distribution" you just meant a distribution over a continuous domain, since that's what people refer to when they say the Dirac delta is the continuous analog of the Kronecker delta. Thanks for clarifying.
          $endgroup$
          – Mehrdad
          Aug 28 '18 at 11:24










        • $begingroup$
          @Mehrdad I was thinking precisely of Dirac's delta, but I hope you will notice the term "in general", and also the apparent level of statistical literacy of the OP.
          $endgroup$
          – Alexis
          Aug 28 '18 at 13:57











        • $begingroup$
          @Mehrdad The technical formulation of a random variable is in terms of a measure: there is a function from the power set of the event space to the interval [0,1]. A probability density function can be used as a measure (the measure of a set is simply the integral of the PDF over that set), but there are measures, such as the Dirac delta (a set has measure 1 if it contains $x_0$, and is zero otherwise) that are, strictly speaking, not function in the traditional sense.
          $endgroup$
          – Acccumulation
          Aug 29 '18 at 14:51













        18












        18








        18





        $begingroup$

        $f(x)$ describes the probability density rather than a probability mass in your example. In general, for continuous distributions the events—the things we get probabilities for—are ranges of values, such as for the area under the curve from $a$ to $a+.1$, or from $a$ to $b$ (although such ranges need not be contiguous). For continuous distributions, the probability of any single value occurring is generally 0.






        share|cite|improve this answer











        $endgroup$



        $f(x)$ describes the probability density rather than a probability mass in your example. In general, for continuous distributions the events—the things we get probabilities for—are ranges of values, such as for the area under the curve from $a$ to $a+.1$, or from $a$ to $b$ (although such ranges need not be contiguous). For continuous distributions, the probability of any single value occurring is generally 0.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Aug 28 '18 at 14:21

























        answered Aug 28 '18 at 3:32









        AlexisAlexis

        16.5k34699




        16.5k34699











        • $begingroup$
          Is there a more technically accurate way to say what you're trying to say? I'm worried the "range" thing will throw people off, considering continuous distributions can have Dirac deltas...
          $endgroup$
          – Mehrdad
          Aug 28 '18 at 9:03






        • 3




          $begingroup$
          @Mehrdad: The dirac delta does not have a continuous distribution. The proper way of assigning probabilities would be via $P(A) = int_A 1dF$.
          $endgroup$
          – Alex R.
          Aug 28 '18 at 10:39







        • 1




          $begingroup$
          @AlexR.: Oof, I assumed by "continuous distribution" you just meant a distribution over a continuous domain, since that's what people refer to when they say the Dirac delta is the continuous analog of the Kronecker delta. Thanks for clarifying.
          $endgroup$
          – Mehrdad
          Aug 28 '18 at 11:24










        • $begingroup$
          @Mehrdad I was thinking precisely of Dirac's delta, but I hope you will notice the term "in general", and also the apparent level of statistical literacy of the OP.
          $endgroup$
          – Alexis
          Aug 28 '18 at 13:57











        • $begingroup$
          @Mehrdad The technical formulation of a random variable is in terms of a measure: there is a function from the power set of the event space to the interval [0,1]. A probability density function can be used as a measure (the measure of a set is simply the integral of the PDF over that set), but there are measures, such as the Dirac delta (a set has measure 1 if it contains $x_0$, and is zero otherwise) that are, strictly speaking, not function in the traditional sense.
          $endgroup$
          – Acccumulation
          Aug 29 '18 at 14:51
















        • $begingroup$
          Is there a more technically accurate way to say what you're trying to say? I'm worried the "range" thing will throw people off, considering continuous distributions can have Dirac deltas...
          $endgroup$
          – Mehrdad
          Aug 28 '18 at 9:03






        • 3




          $begingroup$
          @Mehrdad: The dirac delta does not have a continuous distribution. The proper way of assigning probabilities would be via $P(A) = int_A 1dF$.
          $endgroup$
          – Alex R.
          Aug 28 '18 at 10:39







        • 1




          $begingroup$
          @AlexR.: Oof, I assumed by "continuous distribution" you just meant a distribution over a continuous domain, since that's what people refer to when they say the Dirac delta is the continuous analog of the Kronecker delta. Thanks for clarifying.
          $endgroup$
          – Mehrdad
          Aug 28 '18 at 11:24










        • $begingroup$
          @Mehrdad I was thinking precisely of Dirac's delta, but I hope you will notice the term "in general", and also the apparent level of statistical literacy of the OP.
          $endgroup$
          – Alexis
          Aug 28 '18 at 13:57











        • $begingroup$
          @Mehrdad The technical formulation of a random variable is in terms of a measure: there is a function from the power set of the event space to the interval [0,1]. A probability density function can be used as a measure (the measure of a set is simply the integral of the PDF over that set), but there are measures, such as the Dirac delta (a set has measure 1 if it contains $x_0$, and is zero otherwise) that are, strictly speaking, not function in the traditional sense.
          $endgroup$
          – Acccumulation
          Aug 29 '18 at 14:51















        $begingroup$
        Is there a more technically accurate way to say what you're trying to say? I'm worried the "range" thing will throw people off, considering continuous distributions can have Dirac deltas...
        $endgroup$
        – Mehrdad
        Aug 28 '18 at 9:03




        $begingroup$
        Is there a more technically accurate way to say what you're trying to say? I'm worried the "range" thing will throw people off, considering continuous distributions can have Dirac deltas...
        $endgroup$
        – Mehrdad
        Aug 28 '18 at 9:03




        3




        3




        $begingroup$
        @Mehrdad: The dirac delta does not have a continuous distribution. The proper way of assigning probabilities would be via $P(A) = int_A 1dF$.
        $endgroup$
        – Alex R.
        Aug 28 '18 at 10:39





        $begingroup$
        @Mehrdad: The dirac delta does not have a continuous distribution. The proper way of assigning probabilities would be via $P(A) = int_A 1dF$.
        $endgroup$
        – Alex R.
        Aug 28 '18 at 10:39





        1




        1




        $begingroup$
        @AlexR.: Oof, I assumed by "continuous distribution" you just meant a distribution over a continuous domain, since that's what people refer to when they say the Dirac delta is the continuous analog of the Kronecker delta. Thanks for clarifying.
        $endgroup$
        – Mehrdad
        Aug 28 '18 at 11:24




        $begingroup$
        @AlexR.: Oof, I assumed by "continuous distribution" you just meant a distribution over a continuous domain, since that's what people refer to when they say the Dirac delta is the continuous analog of the Kronecker delta. Thanks for clarifying.
        $endgroup$
        – Mehrdad
        Aug 28 '18 at 11:24












        $begingroup$
        @Mehrdad I was thinking precisely of Dirac's delta, but I hope you will notice the term "in general", and also the apparent level of statistical literacy of the OP.
        $endgroup$
        – Alexis
        Aug 28 '18 at 13:57





        $begingroup$
        @Mehrdad I was thinking precisely of Dirac's delta, but I hope you will notice the term "in general", and also the apparent level of statistical literacy of the OP.
        $endgroup$
        – Alexis
        Aug 28 '18 at 13:57













        $begingroup$
        @Mehrdad The technical formulation of a random variable is in terms of a measure: there is a function from the power set of the event space to the interval [0,1]. A probability density function can be used as a measure (the measure of a set is simply the integral of the PDF over that set), but there are measures, such as the Dirac delta (a set has measure 1 if it contains $x_0$, and is zero otherwise) that are, strictly speaking, not function in the traditional sense.
        $endgroup$
        – Acccumulation
        Aug 29 '18 at 14:51




        $begingroup$
        @Mehrdad The technical formulation of a random variable is in terms of a measure: there is a function from the power set of the event space to the interval [0,1]. A probability density function can be used as a measure (the measure of a set is simply the integral of the PDF over that set), but there are measures, such as the Dirac delta (a set has measure 1 if it contains $x_0$, and is zero otherwise) that are, strictly speaking, not function in the traditional sense.
        $endgroup$
        – Acccumulation
        Aug 29 '18 at 14:51













        11












        $begingroup$

        Because each term in the summation is weighted by the infinitesimal d$x$. The importance of this is probably most easily understood by carefully walking through a very basic example.



        Consider using Riemann summation to compute the area under the following rectangular region (a rectangle was chosen to remove the approximation aspect of Riemann summation, which is not the focus here):
        rectangular region]
        We can compute the area using 2 subregions, or by using 4 subregions. In the case of the 2 subregions (denoted $A_i$), the areas are given by $$A_1=A_2=5times 2 = 10$$ whereas in the case of 4 subregions (denoted $B_i$), the areas are given by $$B_1=B_2=B_3=B_4=5times 1 = 5$$ The total area in both cases correspond to $$sum_i=1^2 A_i = sum_i=1^4B_i = 20$$
        Now, this is all fairly obvious, but it raises a subtly important question which is: why do these two answers agree? Intuitively it should be clear that it works because we've reduced the width of the second set of subregions. We could consider doing the same thing with 8 subregions each with a width of $0.5$, and again with 16... and we could continue this process until we have an infinite number of subregions, each with a tiny width of d$x$. As long as everything is always correctly weighted, the answers should always agree. Without the correct weighting, the summation would indeed simply be $infty$.



        This is why I always make sure to point out to students that an integral is not simply the symbol $int$, but the pair of symbols $int text dx$.






        share|cite|improve this answer











        $endgroup$

















          11












          $begingroup$

          Because each term in the summation is weighted by the infinitesimal d$x$. The importance of this is probably most easily understood by carefully walking through a very basic example.



          Consider using Riemann summation to compute the area under the following rectangular region (a rectangle was chosen to remove the approximation aspect of Riemann summation, which is not the focus here):
          rectangular region]
          We can compute the area using 2 subregions, or by using 4 subregions. In the case of the 2 subregions (denoted $A_i$), the areas are given by $$A_1=A_2=5times 2 = 10$$ whereas in the case of 4 subregions (denoted $B_i$), the areas are given by $$B_1=B_2=B_3=B_4=5times 1 = 5$$ The total area in both cases correspond to $$sum_i=1^2 A_i = sum_i=1^4B_i = 20$$
          Now, this is all fairly obvious, but it raises a subtly important question which is: why do these two answers agree? Intuitively it should be clear that it works because we've reduced the width of the second set of subregions. We could consider doing the same thing with 8 subregions each with a width of $0.5$, and again with 16... and we could continue this process until we have an infinite number of subregions, each with a tiny width of d$x$. As long as everything is always correctly weighted, the answers should always agree. Without the correct weighting, the summation would indeed simply be $infty$.



          This is why I always make sure to point out to students that an integral is not simply the symbol $int$, but the pair of symbols $int text dx$.






          share|cite|improve this answer











          $endgroup$















            11












            11








            11





            $begingroup$

            Because each term in the summation is weighted by the infinitesimal d$x$. The importance of this is probably most easily understood by carefully walking through a very basic example.



            Consider using Riemann summation to compute the area under the following rectangular region (a rectangle was chosen to remove the approximation aspect of Riemann summation, which is not the focus here):
            rectangular region]
            We can compute the area using 2 subregions, or by using 4 subregions. In the case of the 2 subregions (denoted $A_i$), the areas are given by $$A_1=A_2=5times 2 = 10$$ whereas in the case of 4 subregions (denoted $B_i$), the areas are given by $$B_1=B_2=B_3=B_4=5times 1 = 5$$ The total area in both cases correspond to $$sum_i=1^2 A_i = sum_i=1^4B_i = 20$$
            Now, this is all fairly obvious, but it raises a subtly important question which is: why do these two answers agree? Intuitively it should be clear that it works because we've reduced the width of the second set of subregions. We could consider doing the same thing with 8 subregions each with a width of $0.5$, and again with 16... and we could continue this process until we have an infinite number of subregions, each with a tiny width of d$x$. As long as everything is always correctly weighted, the answers should always agree. Without the correct weighting, the summation would indeed simply be $infty$.



            This is why I always make sure to point out to students that an integral is not simply the symbol $int$, but the pair of symbols $int text dx$.






            share|cite|improve this answer











            $endgroup$



            Because each term in the summation is weighted by the infinitesimal d$x$. The importance of this is probably most easily understood by carefully walking through a very basic example.



            Consider using Riemann summation to compute the area under the following rectangular region (a rectangle was chosen to remove the approximation aspect of Riemann summation, which is not the focus here):
            rectangular region]
            We can compute the area using 2 subregions, or by using 4 subregions. In the case of the 2 subregions (denoted $A_i$), the areas are given by $$A_1=A_2=5times 2 = 10$$ whereas in the case of 4 subregions (denoted $B_i$), the areas are given by $$B_1=B_2=B_3=B_4=5times 1 = 5$$ The total area in both cases correspond to $$sum_i=1^2 A_i = sum_i=1^4B_i = 20$$
            Now, this is all fairly obvious, but it raises a subtly important question which is: why do these two answers agree? Intuitively it should be clear that it works because we've reduced the width of the second set of subregions. We could consider doing the same thing with 8 subregions each with a width of $0.5$, and again with 16... and we could continue this process until we have an infinite number of subregions, each with a tiny width of d$x$. As long as everything is always correctly weighted, the answers should always agree. Without the correct weighting, the summation would indeed simply be $infty$.



            This is why I always make sure to point out to students that an integral is not simply the symbol $int$, but the pair of symbols $int text dx$.







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Aug 28 '18 at 6:11

























            answered Aug 28 '18 at 6:02









            ZxvZxv

            1113




            1113





















                5












                $begingroup$

                You're interpreting the probability distribution the wrong way - it is an infinite number of infinitely divided probabilities, so you can't say that "the probability of drawing the value 0.5 from a (0, 1) uniform distribution" because that probability is zero - there are an infinite number of possible values you could get, and all of them are equally likely, so clearly the probability of any individual outcome is $frac1infty = 0$[1].



                Instead, you can look at the probability for a range of outcomes, and measure that using areas (and hence integrals). For example, if you draw from the (0, 1) uniform distribution (with pdf $f(x) = 1$ for $x in left[0, 1right]$ and $f(x) = 0$ otherwise), then the probability that your result lies between $0.2$ and $0.3$ is



                $int_0.2^0.3 f(x) dx = int_0.2^0.3 1 dx = left[x right]_0.2^0.3 = 0.3 - 0.2 = 0.1$



                i.e. you have a 10% chance of getting a result in that range.



                [1]Sorry for all the people having heart attacks at my over-simplification of the calculation.






                share|cite|improve this answer









                $endgroup$

















                  5












                  $begingroup$

                  You're interpreting the probability distribution the wrong way - it is an infinite number of infinitely divided probabilities, so you can't say that "the probability of drawing the value 0.5 from a (0, 1) uniform distribution" because that probability is zero - there are an infinite number of possible values you could get, and all of them are equally likely, so clearly the probability of any individual outcome is $frac1infty = 0$[1].



                  Instead, you can look at the probability for a range of outcomes, and measure that using areas (and hence integrals). For example, if you draw from the (0, 1) uniform distribution (with pdf $f(x) = 1$ for $x in left[0, 1right]$ and $f(x) = 0$ otherwise), then the probability that your result lies between $0.2$ and $0.3$ is



                  $int_0.2^0.3 f(x) dx = int_0.2^0.3 1 dx = left[x right]_0.2^0.3 = 0.3 - 0.2 = 0.1$



                  i.e. you have a 10% chance of getting a result in that range.



                  [1]Sorry for all the people having heart attacks at my over-simplification of the calculation.






                  share|cite|improve this answer









                  $endgroup$















                    5












                    5








                    5





                    $begingroup$

                    You're interpreting the probability distribution the wrong way - it is an infinite number of infinitely divided probabilities, so you can't say that "the probability of drawing the value 0.5 from a (0, 1) uniform distribution" because that probability is zero - there are an infinite number of possible values you could get, and all of them are equally likely, so clearly the probability of any individual outcome is $frac1infty = 0$[1].



                    Instead, you can look at the probability for a range of outcomes, and measure that using areas (and hence integrals). For example, if you draw from the (0, 1) uniform distribution (with pdf $f(x) = 1$ for $x in left[0, 1right]$ and $f(x) = 0$ otherwise), then the probability that your result lies between $0.2$ and $0.3$ is



                    $int_0.2^0.3 f(x) dx = int_0.2^0.3 1 dx = left[x right]_0.2^0.3 = 0.3 - 0.2 = 0.1$



                    i.e. you have a 10% chance of getting a result in that range.



                    [1]Sorry for all the people having heart attacks at my over-simplification of the calculation.






                    share|cite|improve this answer









                    $endgroup$



                    You're interpreting the probability distribution the wrong way - it is an infinite number of infinitely divided probabilities, so you can't say that "the probability of drawing the value 0.5 from a (0, 1) uniform distribution" because that probability is zero - there are an infinite number of possible values you could get, and all of them are equally likely, so clearly the probability of any individual outcome is $frac1infty = 0$[1].



                    Instead, you can look at the probability for a range of outcomes, and measure that using areas (and hence integrals). For example, if you draw from the (0, 1) uniform distribution (with pdf $f(x) = 1$ for $x in left[0, 1right]$ and $f(x) = 0$ otherwise), then the probability that your result lies between $0.2$ and $0.3$ is



                    $int_0.2^0.3 f(x) dx = int_0.2^0.3 1 dx = left[x right]_0.2^0.3 = 0.3 - 0.2 = 0.1$



                    i.e. you have a 10% chance of getting a result in that range.



                    [1]Sorry for all the people having heart attacks at my over-simplification of the calculation.







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Aug 28 '18 at 5:55









                    ConManConMan

                    1813




                    1813





















                        0












                        $begingroup$

                        In general your reasoning fails in this assumption:




                        However, since there are an infinite number of numbers in that interval, shouldn't the sum of all the probabilities sum up to infinity?




                        It's a mathematical problem, known since the Zeno of Elea Paradoxes.



                        Two of his claims were that



                        1. An arrow can never reach its target

                        2. Achilles will never overtake a turtle

                        Both of them were based on the claim that you can build an infinite sequence of positive numbers (in the former case by saying that an arrow has to fly infinitely times half of the remaining way to the target, in the latter by saying that Achilles has to reach position where the turtle was previously, and in the meantime the turtle moves to a new position that becomes our next reference base point).



                        Fast forward, this led to a discovery of infinite sums.



                        So in general sum of infinite many positive numbers does not necessarily have to be infinite; however, it may not be infinite only if (an extreme oversimplification, sorry about that) almost all of the numbers in the sequence are very close to 0, regardless how close to zero you request them to be.



                        Infinity plays even more tricks. The order in which you add elements of the sequence is important too and might lead to a situation that reordering gives different results!



                        Explore a bit more about paradoxes of infinity. You might be astonished.






                        share|cite|improve this answer











                        $endgroup$












                        • $begingroup$
                          I don't see a way to interpret the question such that OP thinks of countable sums.
                          $endgroup$
                          – JiK
                          Aug 28 '18 at 15:13















                        0












                        $begingroup$

                        In general your reasoning fails in this assumption:




                        However, since there are an infinite number of numbers in that interval, shouldn't the sum of all the probabilities sum up to infinity?




                        It's a mathematical problem, known since the Zeno of Elea Paradoxes.



                        Two of his claims were that



                        1. An arrow can never reach its target

                        2. Achilles will never overtake a turtle

                        Both of them were based on the claim that you can build an infinite sequence of positive numbers (in the former case by saying that an arrow has to fly infinitely times half of the remaining way to the target, in the latter by saying that Achilles has to reach position where the turtle was previously, and in the meantime the turtle moves to a new position that becomes our next reference base point).



                        Fast forward, this led to a discovery of infinite sums.



                        So in general sum of infinite many positive numbers does not necessarily have to be infinite; however, it may not be infinite only if (an extreme oversimplification, sorry about that) almost all of the numbers in the sequence are very close to 0, regardless how close to zero you request them to be.



                        Infinity plays even more tricks. The order in which you add elements of the sequence is important too and might lead to a situation that reordering gives different results!



                        Explore a bit more about paradoxes of infinity. You might be astonished.






                        share|cite|improve this answer











                        $endgroup$












                        • $begingroup$
                          I don't see a way to interpret the question such that OP thinks of countable sums.
                          $endgroup$
                          – JiK
                          Aug 28 '18 at 15:13













                        0












                        0








                        0





                        $begingroup$

                        In general your reasoning fails in this assumption:




                        However, since there are an infinite number of numbers in that interval, shouldn't the sum of all the probabilities sum up to infinity?




                        It's a mathematical problem, known since the Zeno of Elea Paradoxes.



                        Two of his claims were that



                        1. An arrow can never reach its target

                        2. Achilles will never overtake a turtle

                        Both of them were based on the claim that you can build an infinite sequence of positive numbers (in the former case by saying that an arrow has to fly infinitely times half of the remaining way to the target, in the latter by saying that Achilles has to reach position where the turtle was previously, and in the meantime the turtle moves to a new position that becomes our next reference base point).



                        Fast forward, this led to a discovery of infinite sums.



                        So in general sum of infinite many positive numbers does not necessarily have to be infinite; however, it may not be infinite only if (an extreme oversimplification, sorry about that) almost all of the numbers in the sequence are very close to 0, regardless how close to zero you request them to be.



                        Infinity plays even more tricks. The order in which you add elements of the sequence is important too and might lead to a situation that reordering gives different results!



                        Explore a bit more about paradoxes of infinity. You might be astonished.






                        share|cite|improve this answer











                        $endgroup$



                        In general your reasoning fails in this assumption:




                        However, since there are an infinite number of numbers in that interval, shouldn't the sum of all the probabilities sum up to infinity?




                        It's a mathematical problem, known since the Zeno of Elea Paradoxes.



                        Two of his claims were that



                        1. An arrow can never reach its target

                        2. Achilles will never overtake a turtle

                        Both of them were based on the claim that you can build an infinite sequence of positive numbers (in the former case by saying that an arrow has to fly infinitely times half of the remaining way to the target, in the latter by saying that Achilles has to reach position where the turtle was previously, and in the meantime the turtle moves to a new position that becomes our next reference base point).



                        Fast forward, this led to a discovery of infinite sums.



                        So in general sum of infinite many positive numbers does not necessarily have to be infinite; however, it may not be infinite only if (an extreme oversimplification, sorry about that) almost all of the numbers in the sequence are very close to 0, regardless how close to zero you request them to be.



                        Infinity plays even more tricks. The order in which you add elements of the sequence is important too and might lead to a situation that reordering gives different results!



                        Explore a bit more about paradoxes of infinity. You might be astonished.







                        share|cite|improve this answer














                        share|cite|improve this answer



                        share|cite|improve this answer








                        edited Aug 28 '18 at 12:03









                        Nick Cox

                        39k587130




                        39k587130










                        answered Aug 28 '18 at 9:12









                        IsterIster

                        1012




                        1012











                        • $begingroup$
                          I don't see a way to interpret the question such that OP thinks of countable sums.
                          $endgroup$
                          – JiK
                          Aug 28 '18 at 15:13
















                        • $begingroup$
                          I don't see a way to interpret the question such that OP thinks of countable sums.
                          $endgroup$
                          – JiK
                          Aug 28 '18 at 15:13















                        $begingroup$
                        I don't see a way to interpret the question such that OP thinks of countable sums.
                        $endgroup$
                        – JiK
                        Aug 28 '18 at 15:13




                        $begingroup$
                        I don't see a way to interpret the question such that OP thinks of countable sums.
                        $endgroup$
                        – JiK
                        Aug 28 '18 at 15:13











                        0












                        $begingroup$

                        $f(x)$ describes the probability density, and has the unit $fracpx$. Hence for a given x you get $f(x) = frac1b-a$ in $fracpx$ units, and not p, as you are looking for. If you want p, you need the distribution function for a given range, that is the probability p of x being within a and b.



                        Hope this makes sense.






                        share|cite|improve this answer











                        $endgroup$

















                          0












                          $begingroup$

                          $f(x)$ describes the probability density, and has the unit $fracpx$. Hence for a given x you get $f(x) = frac1b-a$ in $fracpx$ units, and not p, as you are looking for. If you want p, you need the distribution function for a given range, that is the probability p of x being within a and b.



                          Hope this makes sense.






                          share|cite|improve this answer











                          $endgroup$















                            0












                            0








                            0





                            $begingroup$

                            $f(x)$ describes the probability density, and has the unit $fracpx$. Hence for a given x you get $f(x) = frac1b-a$ in $fracpx$ units, and not p, as you are looking for. If you want p, you need the distribution function for a given range, that is the probability p of x being within a and b.



                            Hope this makes sense.






                            share|cite|improve this answer











                            $endgroup$



                            $f(x)$ describes the probability density, and has the unit $fracpx$. Hence for a given x you get $f(x) = frac1b-a$ in $fracpx$ units, and not p, as you are looking for. If you want p, you need the distribution function for a given range, that is the probability p of x being within a and b.



                            Hope this makes sense.







                            share|cite|improve this answer














                            share|cite|improve this answer



                            share|cite|improve this answer








                            edited Aug 28 '18 at 14:04









                            Nick Cox

                            39k587130




                            39k587130










                            answered Aug 28 '18 at 12:37









                            user3719750user3719750

                            11




                            11



























                                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%2f364278%2fwhy-is-the-sum-of-probabilities-in-a-continuous-uniform-distribution-not-infinit%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 do I collapse sections of code in Visual Studio Code for Windows?

                                ャフサォクコ ケウ,コ,ワ メ,ロスョノ゙,クネ,フムカヤヲニ,エコ゚ツ ウイオン゙ケワサネォキモュキォウイノンコチ゚メヌナイゥフュ,カヒウネェ ネ,ホノケ,ムュキ ッボーミュハ,チ ツス ィ メウイマヤ,゙ウチ ヅ ロ,ォジヌェ ャヌット ェ,マャ,チナエヒネソキツテ トホヲヲミーァ