Mean and Variance of Continuous Random VariableMean and variance of call center dataPoisson random variable- varianceHow to obtain variance of a random variable that depends on a hypergeometric variable?Variance reduction technique in Monte Carlo integrationVariance of a continuous uniformly distributed random variableWeighted sample mean and variance - asking for references and detailsCan the variance of a continuous random variable with known distribution be impossible to find?Mean and variance of the maximum of a random number of Uniform variablesApproximating the expected value and variance of the function of a (continuous univariate) random variableMean of maximum of exponential random variables (independent but not identical)

A Journey Through Space and Time

Simulate Bitwise Cyclic Tag

How can I fix this gap between bookcases I made?

Why is an old chain unsafe?

Can a German sentence have two subjects?

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Why was the small council so happy for Tyrion to become the Master of Coin?

Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?

How old can references or sources in a thesis be?

Are white and non-white police officers equally likely to kill black suspects?

DOS, create pipe for stdin/stdout of command.com(or 4dos.com) in C or Batch?

Draw simple lines in Inkscape

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?

least quadratic residue under GRH: an EXPLICIT bound

How do I create uniquely male characters?

Do airline pilots ever risk not hearing communication directed to them specifically, from traffic controllers?

Shell script can be run only with sh command

Why has Russell's definition of numbers using equivalence classes been finally abandoned? ( If it has actually been abandoned).

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

How to use Pandas to get the count of every combination inclusive

Extreme, but not acceptable situation and I can't start the work tomorrow morning

A function which translates a sentence to title-case



Mean and Variance of Continuous Random Variable


Mean and variance of call center dataPoisson random variable- varianceHow to obtain variance of a random variable that depends on a hypergeometric variable?Variance reduction technique in Monte Carlo integrationVariance of a continuous uniformly distributed random variableWeighted sample mean and variance - asking for references and detailsCan the variance of a continuous random variable with known distribution be impossible to find?Mean and variance of the maximum of a random number of Uniform variablesApproximating the expected value and variance of the function of a (continuous univariate) random variableMean of maximum of exponential random variables (independent but not identical)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2












$begingroup$


I have a problem on my homework about the continuous random variable $y$ where the cdf is $F(y)=frac1(1+e^-y)$.



Part a is asking for the pdf which I found to be $frace^y(e^y+1)^2$.



Part b asks for the mean and variance of $y$ but when I tried to find the $E(y)$, I got zero with the integral from $-infty$ to $infty$ of $fracye^y(e^y+1)^2$. I'm not sure where I'm going wrong with this problem?










share|cite|improve this question









New contributor




EBusch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$


















    2












    $begingroup$


    I have a problem on my homework about the continuous random variable $y$ where the cdf is $F(y)=frac1(1+e^-y)$.



    Part a is asking for the pdf which I found to be $frace^y(e^y+1)^2$.



    Part b asks for the mean and variance of $y$ but when I tried to find the $E(y)$, I got zero with the integral from $-infty$ to $infty$ of $fracye^y(e^y+1)^2$. I'm not sure where I'm going wrong with this problem?










    share|cite|improve this question









    New contributor




    EBusch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$














      2












      2








      2





      $begingroup$


      I have a problem on my homework about the continuous random variable $y$ where the cdf is $F(y)=frac1(1+e^-y)$.



      Part a is asking for the pdf which I found to be $frace^y(e^y+1)^2$.



      Part b asks for the mean and variance of $y$ but when I tried to find the $E(y)$, I got zero with the integral from $-infty$ to $infty$ of $fracye^y(e^y+1)^2$. I'm not sure where I'm going wrong with this problem?










      share|cite|improve this question









      New contributor




      EBusch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      I have a problem on my homework about the continuous random variable $y$ where the cdf is $F(y)=frac1(1+e^-y)$.



      Part a is asking for the pdf which I found to be $frace^y(e^y+1)^2$.



      Part b asks for the mean and variance of $y$ but when I tried to find the $E(y)$, I got zero with the integral from $-infty$ to $infty$ of $fracye^y(e^y+1)^2$. I'm not sure where I'm going wrong with this problem?







      variance mean






      share|cite|improve this question









      New contributor




      EBusch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|cite|improve this question









      New contributor




      EBusch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|cite|improve this question




      share|cite|improve this question








      edited 3 hours ago









      Noah

      3,6011417




      3,6011417






      New contributor




      EBusch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 6 hours ago









      EBuschEBusch

      112




      112




      New contributor




      EBusch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      EBusch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      EBusch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          2 Answers
          2






          active

          oldest

          votes


















          1












          $begingroup$

          What makes you think you did something wrong?



          beginalign
          & Pr(Yle y) = F(y) = frac 1 1+e^-y \[10pt]
          textand & Pr(Yge -y) = 1-F(-y) = 1- frac 1 1+e^y \[8pt]
          = & frace^y1+e^y = frace^ycdot e^-y(1+e^y)cdot e^-y = frac 1 e^-y+1,
          endalign

          and therefore
          $$
          Pr(Yle y) = Pr(Y ge -y).
          $$

          So this distribution is symmetric about $0.$



          Therefore, if the expected value exists, it is $0.$



          You can also show that the density function is an even function:
          beginalign
          f(y) & = frace^y(1+e^y)^2. \[12pt]
          f(-y) & = frace^-y(1+e^-y)^2 = frace^-ycdotleft( e^y right)^2Big((1+e^-y) cdot e^y Big)^2 = frace^y(e^y+1)^2 = f(y).
          endalign

          Since the density is an even function, the expected value must be $0$ if it exists.



          The expected value $operatorname E(Y)$ exists if $operatorname E(|Y|) < +infty.$






          share|cite|improve this answer









          $endgroup$




















            0












            $begingroup$

            Comment:



            Setting what I take to be your CDF equal to $U sim mathsfUnif(0,1),$ and solving for the quantile function (inverse CDF) in terms of $U,$ I simulate a sample of a million
            observations as shown below.



            Then, when I plot one possible interpretation of your PDF through the histogram of the large sample, that density function
            seems to fit pretty well.



            set.seed(1019) # for reproducibility
            u = runif(10^6); x = -log(1/u - 1)

            hist(x, prob=T, br=100, col="skyblue2")
            curve(exp(x)/(exp(x)+1)^2, -10, 10, add=T, lwd=2, col="red")


            enter image description here



            I don't pretend that this is a 'worked answer' to your problem, but
            I hope it may give you enough clues to improve the version of the problem you posted and to finish the problem on your own.






            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
              );



              );






              EBusch is a new contributor. Be nice, and check out our Code of Conduct.









              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f401726%2fmean-and-variance-of-continuous-random-variable%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1












              $begingroup$

              What makes you think you did something wrong?



              beginalign
              & Pr(Yle y) = F(y) = frac 1 1+e^-y \[10pt]
              textand & Pr(Yge -y) = 1-F(-y) = 1- frac 1 1+e^y \[8pt]
              = & frace^y1+e^y = frace^ycdot e^-y(1+e^y)cdot e^-y = frac 1 e^-y+1,
              endalign

              and therefore
              $$
              Pr(Yle y) = Pr(Y ge -y).
              $$

              So this distribution is symmetric about $0.$



              Therefore, if the expected value exists, it is $0.$



              You can also show that the density function is an even function:
              beginalign
              f(y) & = frace^y(1+e^y)^2. \[12pt]
              f(-y) & = frace^-y(1+e^-y)^2 = frace^-ycdotleft( e^y right)^2Big((1+e^-y) cdot e^y Big)^2 = frace^y(e^y+1)^2 = f(y).
              endalign

              Since the density is an even function, the expected value must be $0$ if it exists.



              The expected value $operatorname E(Y)$ exists if $operatorname E(|Y|) < +infty.$






              share|cite|improve this answer









              $endgroup$

















                1












                $begingroup$

                What makes you think you did something wrong?



                beginalign
                & Pr(Yle y) = F(y) = frac 1 1+e^-y \[10pt]
                textand & Pr(Yge -y) = 1-F(-y) = 1- frac 1 1+e^y \[8pt]
                = & frace^y1+e^y = frace^ycdot e^-y(1+e^y)cdot e^-y = frac 1 e^-y+1,
                endalign

                and therefore
                $$
                Pr(Yle y) = Pr(Y ge -y).
                $$

                So this distribution is symmetric about $0.$



                Therefore, if the expected value exists, it is $0.$



                You can also show that the density function is an even function:
                beginalign
                f(y) & = frace^y(1+e^y)^2. \[12pt]
                f(-y) & = frace^-y(1+e^-y)^2 = frace^-ycdotleft( e^y right)^2Big((1+e^-y) cdot e^y Big)^2 = frace^y(e^y+1)^2 = f(y).
                endalign

                Since the density is an even function, the expected value must be $0$ if it exists.



                The expected value $operatorname E(Y)$ exists if $operatorname E(|Y|) < +infty.$






                share|cite|improve this answer









                $endgroup$















                  1












                  1








                  1





                  $begingroup$

                  What makes you think you did something wrong?



                  beginalign
                  & Pr(Yle y) = F(y) = frac 1 1+e^-y \[10pt]
                  textand & Pr(Yge -y) = 1-F(-y) = 1- frac 1 1+e^y \[8pt]
                  = & frace^y1+e^y = frace^ycdot e^-y(1+e^y)cdot e^-y = frac 1 e^-y+1,
                  endalign

                  and therefore
                  $$
                  Pr(Yle y) = Pr(Y ge -y).
                  $$

                  So this distribution is symmetric about $0.$



                  Therefore, if the expected value exists, it is $0.$



                  You can also show that the density function is an even function:
                  beginalign
                  f(y) & = frace^y(1+e^y)^2. \[12pt]
                  f(-y) & = frace^-y(1+e^-y)^2 = frace^-ycdotleft( e^y right)^2Big((1+e^-y) cdot e^y Big)^2 = frace^y(e^y+1)^2 = f(y).
                  endalign

                  Since the density is an even function, the expected value must be $0$ if it exists.



                  The expected value $operatorname E(Y)$ exists if $operatorname E(|Y|) < +infty.$






                  share|cite|improve this answer









                  $endgroup$



                  What makes you think you did something wrong?



                  beginalign
                  & Pr(Yle y) = F(y) = frac 1 1+e^-y \[10pt]
                  textand & Pr(Yge -y) = 1-F(-y) = 1- frac 1 1+e^y \[8pt]
                  = & frace^y1+e^y = frace^ycdot e^-y(1+e^y)cdot e^-y = frac 1 e^-y+1,
                  endalign

                  and therefore
                  $$
                  Pr(Yle y) = Pr(Y ge -y).
                  $$

                  So this distribution is symmetric about $0.$



                  Therefore, if the expected value exists, it is $0.$



                  You can also show that the density function is an even function:
                  beginalign
                  f(y) & = frace^y(1+e^y)^2. \[12pt]
                  f(-y) & = frace^-y(1+e^-y)^2 = frace^-ycdotleft( e^y right)^2Big((1+e^-y) cdot e^y Big)^2 = frace^y(e^y+1)^2 = f(y).
                  endalign

                  Since the density is an even function, the expected value must be $0$ if it exists.



                  The expected value $operatorname E(Y)$ exists if $operatorname E(|Y|) < +infty.$







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered 3 hours ago









                  Michael HardyMichael Hardy

                  3,9951430




                  3,9951430























                      0












                      $begingroup$

                      Comment:



                      Setting what I take to be your CDF equal to $U sim mathsfUnif(0,1),$ and solving for the quantile function (inverse CDF) in terms of $U,$ I simulate a sample of a million
                      observations as shown below.



                      Then, when I plot one possible interpretation of your PDF through the histogram of the large sample, that density function
                      seems to fit pretty well.



                      set.seed(1019) # for reproducibility
                      u = runif(10^6); x = -log(1/u - 1)

                      hist(x, prob=T, br=100, col="skyblue2")
                      curve(exp(x)/(exp(x)+1)^2, -10, 10, add=T, lwd=2, col="red")


                      enter image description here



                      I don't pretend that this is a 'worked answer' to your problem, but
                      I hope it may give you enough clues to improve the version of the problem you posted and to finish the problem on your own.






                      share|cite|improve this answer











                      $endgroup$

















                        0












                        $begingroup$

                        Comment:



                        Setting what I take to be your CDF equal to $U sim mathsfUnif(0,1),$ and solving for the quantile function (inverse CDF) in terms of $U,$ I simulate a sample of a million
                        observations as shown below.



                        Then, when I plot one possible interpretation of your PDF through the histogram of the large sample, that density function
                        seems to fit pretty well.



                        set.seed(1019) # for reproducibility
                        u = runif(10^6); x = -log(1/u - 1)

                        hist(x, prob=T, br=100, col="skyblue2")
                        curve(exp(x)/(exp(x)+1)^2, -10, 10, add=T, lwd=2, col="red")


                        enter image description here



                        I don't pretend that this is a 'worked answer' to your problem, but
                        I hope it may give you enough clues to improve the version of the problem you posted and to finish the problem on your own.






                        share|cite|improve this answer











                        $endgroup$















                          0












                          0








                          0





                          $begingroup$

                          Comment:



                          Setting what I take to be your CDF equal to $U sim mathsfUnif(0,1),$ and solving for the quantile function (inverse CDF) in terms of $U,$ I simulate a sample of a million
                          observations as shown below.



                          Then, when I plot one possible interpretation of your PDF through the histogram of the large sample, that density function
                          seems to fit pretty well.



                          set.seed(1019) # for reproducibility
                          u = runif(10^6); x = -log(1/u - 1)

                          hist(x, prob=T, br=100, col="skyblue2")
                          curve(exp(x)/(exp(x)+1)^2, -10, 10, add=T, lwd=2, col="red")


                          enter image description here



                          I don't pretend that this is a 'worked answer' to your problem, but
                          I hope it may give you enough clues to improve the version of the problem you posted and to finish the problem on your own.






                          share|cite|improve this answer











                          $endgroup$



                          Comment:



                          Setting what I take to be your CDF equal to $U sim mathsfUnif(0,1),$ and solving for the quantile function (inverse CDF) in terms of $U,$ I simulate a sample of a million
                          observations as shown below.



                          Then, when I plot one possible interpretation of your PDF through the histogram of the large sample, that density function
                          seems to fit pretty well.



                          set.seed(1019) # for reproducibility
                          u = runif(10^6); x = -log(1/u - 1)

                          hist(x, prob=T, br=100, col="skyblue2")
                          curve(exp(x)/(exp(x)+1)^2, -10, 10, add=T, lwd=2, col="red")


                          enter image description here



                          I don't pretend that this is a 'worked answer' to your problem, but
                          I hope it may give you enough clues to improve the version of the problem you posted and to finish the problem on your own.







                          share|cite|improve this answer














                          share|cite|improve this answer



                          share|cite|improve this answer








                          edited 1 hour ago

























                          answered 5 hours ago









                          BruceETBruceET

                          6,3531721




                          6,3531721




















                              EBusch is a new contributor. Be nice, and check out our Code of Conduct.









                              draft saved

                              draft discarded


















                              EBusch is a new contributor. Be nice, and check out our Code of Conduct.












                              EBusch is a new contributor. Be nice, and check out our Code of Conduct.











                              EBusch is a new contributor. Be nice, and check out our Code of Conduct.














                              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%2f401726%2fmean-and-variance-of-continuous-random-variable%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

                              Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

                              Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                              How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2