Finding covariance for the joint density function $f(y_1, y_2) = 3 y_1$ with $0 leq y_2 leq y_1 leq 1$ and $0$ otherwise

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











up vote
3
down vote

favorite












The problem asks to find the covariance. The joint density function is defined as,
$$
f(y_1,y_2)=
begincases
3y_1, & textfor $0 leq y_2 leq y_1 leq 1$, \
0, & textelsewhere. \
endcases
$$
My text defines
$$
operatornameCov(Y_1,Y_2)
= mathbbE(Y_1 Y_2) - mathbbE(Y_1)mathbbE(Y_2).
$$
I'm having problems finding $mathbbE(Y_2)$. My attempt is
begingather*
mathbbE(Y_2) = int_-infty^infty y_2 f_2(y_2) ,mathrmdy_2,
\
f_2(y_2) = int_-infty^infty f(y_1,y_2) ,mathrmdy_1
= int_0^1 3y_1 ,mathrmdy_1 = frac32,
\
mathbbE(Y_2) = int_0^1 y_2 frac32 ,mathrmdy_2
= frac34.
endgather*
But my book says $mathbbE(Y_2)= 3/8$. Where did I go wrong?







share|cite|improve this question


























    up vote
    3
    down vote

    favorite












    The problem asks to find the covariance. The joint density function is defined as,
    $$
    f(y_1,y_2)=
    begincases
    3y_1, & textfor $0 leq y_2 leq y_1 leq 1$, \
    0, & textelsewhere. \
    endcases
    $$
    My text defines
    $$
    operatornameCov(Y_1,Y_2)
    = mathbbE(Y_1 Y_2) - mathbbE(Y_1)mathbbE(Y_2).
    $$
    I'm having problems finding $mathbbE(Y_2)$. My attempt is
    begingather*
    mathbbE(Y_2) = int_-infty^infty y_2 f_2(y_2) ,mathrmdy_2,
    \
    f_2(y_2) = int_-infty^infty f(y_1,y_2) ,mathrmdy_1
    = int_0^1 3y_1 ,mathrmdy_1 = frac32,
    \
    mathbbE(Y_2) = int_0^1 y_2 frac32 ,mathrmdy_2
    = frac34.
    endgather*
    But my book says $mathbbE(Y_2)= 3/8$. Where did I go wrong?







    share|cite|improve this question
























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      The problem asks to find the covariance. The joint density function is defined as,
      $$
      f(y_1,y_2)=
      begincases
      3y_1, & textfor $0 leq y_2 leq y_1 leq 1$, \
      0, & textelsewhere. \
      endcases
      $$
      My text defines
      $$
      operatornameCov(Y_1,Y_2)
      = mathbbE(Y_1 Y_2) - mathbbE(Y_1)mathbbE(Y_2).
      $$
      I'm having problems finding $mathbbE(Y_2)$. My attempt is
      begingather*
      mathbbE(Y_2) = int_-infty^infty y_2 f_2(y_2) ,mathrmdy_2,
      \
      f_2(y_2) = int_-infty^infty f(y_1,y_2) ,mathrmdy_1
      = int_0^1 3y_1 ,mathrmdy_1 = frac32,
      \
      mathbbE(Y_2) = int_0^1 y_2 frac32 ,mathrmdy_2
      = frac34.
      endgather*
      But my book says $mathbbE(Y_2)= 3/8$. Where did I go wrong?







      share|cite|improve this question














      The problem asks to find the covariance. The joint density function is defined as,
      $$
      f(y_1,y_2)=
      begincases
      3y_1, & textfor $0 leq y_2 leq y_1 leq 1$, \
      0, & textelsewhere. \
      endcases
      $$
      My text defines
      $$
      operatornameCov(Y_1,Y_2)
      = mathbbE(Y_1 Y_2) - mathbbE(Y_1)mathbbE(Y_2).
      $$
      I'm having problems finding $mathbbE(Y_2)$. My attempt is
      begingather*
      mathbbE(Y_2) = int_-infty^infty y_2 f_2(y_2) ,mathrmdy_2,
      \
      f_2(y_2) = int_-infty^infty f(y_1,y_2) ,mathrmdy_1
      = int_0^1 3y_1 ,mathrmdy_1 = frac32,
      \
      mathbbE(Y_2) = int_0^1 y_2 frac32 ,mathrmdy_2
      = frac34.
      endgather*
      But my book says $mathbbE(Y_2)= 3/8$. Where did I go wrong?









      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Aug 26 at 21:07









      Jendrik Stelzner

      7,63121037




      7,63121037










      asked Aug 26 at 20:35









      1337

      284




      284




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Pay attention when you evaluate the marginal distribution of $Y_2$. Observe that



          $$0 leq y_2 leq y_1 leq 1.$$



          Therefore, since you are integrating $y_1$ to get the marginal of $Y_2$, then the integration must be done on the set $y_2 leq y_1 leq 1$, not on $0 leq y_1 leq 1.$ In this case:



          $$f_2(y_2)=int_-infty^infty f(y_1,y_2) dy_1
          =int_y_2^13y_1dy_1=frac32(1-y_2^2),$$



          valid for $0 leq y_2 leq 1.$



          Then, the expected value of $Y_2$ is:
          .
          $$mathbbE(Y_2)=int_0^1 y_2 frac32(1-y_2^2)dy_2=dfrac38.$$



          Same reasonings hold for the marginal of $Y_1$. In this case, you should consider $0 leq y_2 leq y_1.$






          share|cite|improve this answer




















          • We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
            – Bob
            Aug 26 at 20:51










          • I understand this way. Why is @Bob 's answer also correct?
            – 1337
            Aug 26 at 21:05











          • Why do think my answer is wrong?
            – Bob
            Aug 26 at 21:49










          • @Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
            – the_candyman
            Aug 26 at 22:22

















          up vote
          1
          down vote













          $$
          f_Y_2(y_2) = int_y_2^1 3y_1, dy_1. text This should not be int_0^1.
          $$
          The main error here appears to be trying to solve math problems by proceeding algorithmically rather than by understanding. The educational system in effect encourages that, and professors have their heads buried deep in the sand about that issue.






          share|cite|improve this answer






















          • Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
            – 1337
            Aug 26 at 21:09











          • @1337 : Sorry --- I mistook one variable for the other. I've fixed it.
            – Michael Hardy
            Aug 26 at 21:13










          • Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
            – Michael Hardy
            Aug 26 at 21:13


















          up vote
          0
          down vote













          To find $E(Y_2)$ you should use a double integral since the density function has two variables.
          begineqnarray*
          E(Y_2) &=& int_0^1 int_0^y_1 3 y_1 y_2 ,, dy_2 dy_1 \
          E(Y_2) &=& int_0^1 frac 3 y_1 y_2^22 Bigg|_y_2=0^y_2=y_1 ,, dy_1 =
          int_0^1 frac3y_1^32 ,, dy_1 \
          E(Y_2) &=& frac3y_1^48 Big|_0^1 \
          E(Y_2) &=& frac38
          endeqnarray*



          I hope this helps. Feel free to ask a follow up question.
          Bob






          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%2f2895488%2ffinding-covariance-for-the-joint-density-function-fy-1-y-2-3-y-1-with-0%23new-answer', 'question_page');

            );

            Post as a guest






























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            Pay attention when you evaluate the marginal distribution of $Y_2$. Observe that



            $$0 leq y_2 leq y_1 leq 1.$$



            Therefore, since you are integrating $y_1$ to get the marginal of $Y_2$, then the integration must be done on the set $y_2 leq y_1 leq 1$, not on $0 leq y_1 leq 1.$ In this case:



            $$f_2(y_2)=int_-infty^infty f(y_1,y_2) dy_1
            =int_y_2^13y_1dy_1=frac32(1-y_2^2),$$



            valid for $0 leq y_2 leq 1.$



            Then, the expected value of $Y_2$ is:
            .
            $$mathbbE(Y_2)=int_0^1 y_2 frac32(1-y_2^2)dy_2=dfrac38.$$



            Same reasonings hold for the marginal of $Y_1$. In this case, you should consider $0 leq y_2 leq y_1.$






            share|cite|improve this answer




















            • We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
              – Bob
              Aug 26 at 20:51










            • I understand this way. Why is @Bob 's answer also correct?
              – 1337
              Aug 26 at 21:05











            • Why do think my answer is wrong?
              – Bob
              Aug 26 at 21:49










            • @Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
              – the_candyman
              Aug 26 at 22:22














            up vote
            1
            down vote



            accepted










            Pay attention when you evaluate the marginal distribution of $Y_2$. Observe that



            $$0 leq y_2 leq y_1 leq 1.$$



            Therefore, since you are integrating $y_1$ to get the marginal of $Y_2$, then the integration must be done on the set $y_2 leq y_1 leq 1$, not on $0 leq y_1 leq 1.$ In this case:



            $$f_2(y_2)=int_-infty^infty f(y_1,y_2) dy_1
            =int_y_2^13y_1dy_1=frac32(1-y_2^2),$$



            valid for $0 leq y_2 leq 1.$



            Then, the expected value of $Y_2$ is:
            .
            $$mathbbE(Y_2)=int_0^1 y_2 frac32(1-y_2^2)dy_2=dfrac38.$$



            Same reasonings hold for the marginal of $Y_1$. In this case, you should consider $0 leq y_2 leq y_1.$






            share|cite|improve this answer




















            • We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
              – Bob
              Aug 26 at 20:51










            • I understand this way. Why is @Bob 's answer also correct?
              – 1337
              Aug 26 at 21:05











            • Why do think my answer is wrong?
              – Bob
              Aug 26 at 21:49










            • @Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
              – the_candyman
              Aug 26 at 22:22












            up vote
            1
            down vote



            accepted







            up vote
            1
            down vote



            accepted






            Pay attention when you evaluate the marginal distribution of $Y_2$. Observe that



            $$0 leq y_2 leq y_1 leq 1.$$



            Therefore, since you are integrating $y_1$ to get the marginal of $Y_2$, then the integration must be done on the set $y_2 leq y_1 leq 1$, not on $0 leq y_1 leq 1.$ In this case:



            $$f_2(y_2)=int_-infty^infty f(y_1,y_2) dy_1
            =int_y_2^13y_1dy_1=frac32(1-y_2^2),$$



            valid for $0 leq y_2 leq 1.$



            Then, the expected value of $Y_2$ is:
            .
            $$mathbbE(Y_2)=int_0^1 y_2 frac32(1-y_2^2)dy_2=dfrac38.$$



            Same reasonings hold for the marginal of $Y_1$. In this case, you should consider $0 leq y_2 leq y_1.$






            share|cite|improve this answer












            Pay attention when you evaluate the marginal distribution of $Y_2$. Observe that



            $$0 leq y_2 leq y_1 leq 1.$$



            Therefore, since you are integrating $y_1$ to get the marginal of $Y_2$, then the integration must be done on the set $y_2 leq y_1 leq 1$, not on $0 leq y_1 leq 1.$ In this case:



            $$f_2(y_2)=int_-infty^infty f(y_1,y_2) dy_1
            =int_y_2^13y_1dy_1=frac32(1-y_2^2),$$



            valid for $0 leq y_2 leq 1.$



            Then, the expected value of $Y_2$ is:
            .
            $$mathbbE(Y_2)=int_0^1 y_2 frac32(1-y_2^2)dy_2=dfrac38.$$



            Same reasonings hold for the marginal of $Y_1$. In this case, you should consider $0 leq y_2 leq y_1.$







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Aug 26 at 20:42









            the_candyman

            8,15721942




            8,15721942











            • We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
              – Bob
              Aug 26 at 20:51










            • I understand this way. Why is @Bob 's answer also correct?
              – 1337
              Aug 26 at 21:05











            • Why do think my answer is wrong?
              – Bob
              Aug 26 at 21:49










            • @Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
              – the_candyman
              Aug 26 at 22:22
















            • We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
              – Bob
              Aug 26 at 20:51










            • I understand this way. Why is @Bob 's answer also correct?
              – 1337
              Aug 26 at 21:05











            • Why do think my answer is wrong?
              – Bob
              Aug 26 at 21:49










            • @Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
              – the_candyman
              Aug 26 at 22:22















            We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
            – Bob
            Aug 26 at 20:51




            We both posted answers to the question. However, we used different limits for our integral. I am wondering why that is. Is it because you integrated $y_1$ first and I integrated $y_2$ first?
            – Bob
            Aug 26 at 20:51












            I understand this way. Why is @Bob 's answer also correct?
            – 1337
            Aug 26 at 21:05





            I understand this way. Why is @Bob 's answer also correct?
            – 1337
            Aug 26 at 21:05













            Why do think my answer is wrong?
            – Bob
            Aug 26 at 21:49




            Why do think my answer is wrong?
            – Bob
            Aug 26 at 21:49












            @Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
            – the_candyman
            Aug 26 at 22:22




            @Bob There is no theory behind your calculation. I think that the result is the same for a coincidence. That's all.
            – the_candyman
            Aug 26 at 22:22










            up vote
            1
            down vote













            $$
            f_Y_2(y_2) = int_y_2^1 3y_1, dy_1. text This should not be int_0^1.
            $$
            The main error here appears to be trying to solve math problems by proceeding algorithmically rather than by understanding. The educational system in effect encourages that, and professors have their heads buried deep in the sand about that issue.






            share|cite|improve this answer






















            • Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
              – 1337
              Aug 26 at 21:09











            • @1337 : Sorry --- I mistook one variable for the other. I've fixed it.
              – Michael Hardy
              Aug 26 at 21:13










            • Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
              – Michael Hardy
              Aug 26 at 21:13















            up vote
            1
            down vote













            $$
            f_Y_2(y_2) = int_y_2^1 3y_1, dy_1. text This should not be int_0^1.
            $$
            The main error here appears to be trying to solve math problems by proceeding algorithmically rather than by understanding. The educational system in effect encourages that, and professors have their heads buried deep in the sand about that issue.






            share|cite|improve this answer






















            • Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
              – 1337
              Aug 26 at 21:09











            • @1337 : Sorry --- I mistook one variable for the other. I've fixed it.
              – Michael Hardy
              Aug 26 at 21:13










            • Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
              – Michael Hardy
              Aug 26 at 21:13













            up vote
            1
            down vote










            up vote
            1
            down vote









            $$
            f_Y_2(y_2) = int_y_2^1 3y_1, dy_1. text This should not be int_0^1.
            $$
            The main error here appears to be trying to solve math problems by proceeding algorithmically rather than by understanding. The educational system in effect encourages that, and professors have their heads buried deep in the sand about that issue.






            share|cite|improve this answer














            $$
            f_Y_2(y_2) = int_y_2^1 3y_1, dy_1. text This should not be int_0^1.
            $$
            The main error here appears to be trying to solve math problems by proceeding algorithmically rather than by understanding. The educational system in effect encourages that, and professors have their heads buried deep in the sand about that issue.







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Aug 26 at 21:12

























            answered Aug 26 at 21:06









            Michael Hardy

            205k23187464




            205k23187464











            • Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
              – 1337
              Aug 26 at 21:09











            • @1337 : Sorry --- I mistook one variable for the other. I've fixed it.
              – Michael Hardy
              Aug 26 at 21:13










            • Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
              – Michael Hardy
              Aug 26 at 21:13

















            • Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
              – 1337
              Aug 26 at 21:09











            • @1337 : Sorry --- I mistook one variable for the other. I've fixed it.
              – Michael Hardy
              Aug 26 at 21:13










            • Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
              – Michael Hardy
              Aug 26 at 21:13
















            Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
            – 1337
            Aug 26 at 21:09





            Could you explain why this works? I thought to get the marginal probability of $Y_2$ we have to integrate over all $Y_1$. What is the difference between this way and the way @the_candyman did it with $dy_1$?
            – 1337
            Aug 26 at 21:09













            @1337 : Sorry --- I mistook one variable for the other. I've fixed it.
            – Michael Hardy
            Aug 26 at 21:13




            @1337 : Sorry --- I mistook one variable for the other. I've fixed it.
            – Michael Hardy
            Aug 26 at 21:13












            Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
            – Michael Hardy
            Aug 26 at 21:13





            Here you're using the fact that $y_2 le y_1le 1$ $vphantomdfrac1int$except in regions where the density is zero. @1337
            – Michael Hardy
            Aug 26 at 21:13











            up vote
            0
            down vote













            To find $E(Y_2)$ you should use a double integral since the density function has two variables.
            begineqnarray*
            E(Y_2) &=& int_0^1 int_0^y_1 3 y_1 y_2 ,, dy_2 dy_1 \
            E(Y_2) &=& int_0^1 frac 3 y_1 y_2^22 Bigg|_y_2=0^y_2=y_1 ,, dy_1 =
            int_0^1 frac3y_1^32 ,, dy_1 \
            E(Y_2) &=& frac3y_1^48 Big|_0^1 \
            E(Y_2) &=& frac38
            endeqnarray*



            I hope this helps. Feel free to ask a follow up question.
            Bob






            share|cite|improve this answer
























              up vote
              0
              down vote













              To find $E(Y_2)$ you should use a double integral since the density function has two variables.
              begineqnarray*
              E(Y_2) &=& int_0^1 int_0^y_1 3 y_1 y_2 ,, dy_2 dy_1 \
              E(Y_2) &=& int_0^1 frac 3 y_1 y_2^22 Bigg|_y_2=0^y_2=y_1 ,, dy_1 =
              int_0^1 frac3y_1^32 ,, dy_1 \
              E(Y_2) &=& frac3y_1^48 Big|_0^1 \
              E(Y_2) &=& frac38
              endeqnarray*



              I hope this helps. Feel free to ask a follow up question.
              Bob






              share|cite|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                To find $E(Y_2)$ you should use a double integral since the density function has two variables.
                begineqnarray*
                E(Y_2) &=& int_0^1 int_0^y_1 3 y_1 y_2 ,, dy_2 dy_1 \
                E(Y_2) &=& int_0^1 frac 3 y_1 y_2^22 Bigg|_y_2=0^y_2=y_1 ,, dy_1 =
                int_0^1 frac3y_1^32 ,, dy_1 \
                E(Y_2) &=& frac3y_1^48 Big|_0^1 \
                E(Y_2) &=& frac38
                endeqnarray*



                I hope this helps. Feel free to ask a follow up question.
                Bob






                share|cite|improve this answer












                To find $E(Y_2)$ you should use a double integral since the density function has two variables.
                begineqnarray*
                E(Y_2) &=& int_0^1 int_0^y_1 3 y_1 y_2 ,, dy_2 dy_1 \
                E(Y_2) &=& int_0^1 frac 3 y_1 y_2^22 Bigg|_y_2=0^y_2=y_1 ,, dy_1 =
                int_0^1 frac3y_1^32 ,, dy_1 \
                E(Y_2) &=& frac3y_1^48 Big|_0^1 \
                E(Y_2) &=& frac38
                endeqnarray*



                I hope this helps. Feel free to ask a follow up question.
                Bob







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Aug 26 at 20:47









                Bob

                778411




                778411



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2895488%2ffinding-covariance-for-the-joint-density-function-fy-1-y-2-3-y-1-with-0%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    這個網誌中的熱門文章

                    Is there any way to eliminate the singular point to solve this integral by hand or by approximations?

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

                    Carbon dioxide