From pdf to distribution function











up vote
0
down vote

favorite












I have the following probability density function (pdf):



$f(x)={0$ if $x<= 11$



$x-11$ if $11leq x leq 12$



$13-x$ if $12leq x leq 13 }$



My aim is to find the distribution function $F(x)$ where the integral from $-infty$ to $+infty$ of the pdf $f(x)$ equals one. I know I have to integrate the pdf over the various sub-intervals indicated above, however, I get something that is not correct. Could somebody please explain me step by step how to do it?
I apologize for my bad typing of the problem, I hope you can understand.
Thank you in advance










share|cite|improve this question


















  • 1




    The $F(x)$ in your 5th line, is it a cumulative distribution function ?
    – Sauhard Sharma
    Nov 16 at 11:55










  • Yes it is also a cdf
    – Matteo
    Nov 16 at 13:04















up vote
0
down vote

favorite












I have the following probability density function (pdf):



$f(x)={0$ if $x<= 11$



$x-11$ if $11leq x leq 12$



$13-x$ if $12leq x leq 13 }$



My aim is to find the distribution function $F(x)$ where the integral from $-infty$ to $+infty$ of the pdf $f(x)$ equals one. I know I have to integrate the pdf over the various sub-intervals indicated above, however, I get something that is not correct. Could somebody please explain me step by step how to do it?
I apologize for my bad typing of the problem, I hope you can understand.
Thank you in advance










share|cite|improve this question


















  • 1




    The $F(x)$ in your 5th line, is it a cumulative distribution function ?
    – Sauhard Sharma
    Nov 16 at 11:55










  • Yes it is also a cdf
    – Matteo
    Nov 16 at 13:04













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have the following probability density function (pdf):



$f(x)={0$ if $x<= 11$



$x-11$ if $11leq x leq 12$



$13-x$ if $12leq x leq 13 }$



My aim is to find the distribution function $F(x)$ where the integral from $-infty$ to $+infty$ of the pdf $f(x)$ equals one. I know I have to integrate the pdf over the various sub-intervals indicated above, however, I get something that is not correct. Could somebody please explain me step by step how to do it?
I apologize for my bad typing of the problem, I hope you can understand.
Thank you in advance










share|cite|improve this question













I have the following probability density function (pdf):



$f(x)={0$ if $x<= 11$



$x-11$ if $11leq x leq 12$



$13-x$ if $12leq x leq 13 }$



My aim is to find the distribution function $F(x)$ where the integral from $-infty$ to $+infty$ of the pdf $f(x)$ equals one. I know I have to integrate the pdf over the various sub-intervals indicated above, however, I get something that is not correct. Could somebody please explain me step by step how to do it?
I apologize for my bad typing of the problem, I hope you can understand.
Thank you in advance







probability-theory






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 16 at 11:47









Matteo

1




1








  • 1




    The $F(x)$ in your 5th line, is it a cumulative distribution function ?
    – Sauhard Sharma
    Nov 16 at 11:55










  • Yes it is also a cdf
    – Matteo
    Nov 16 at 13:04














  • 1




    The $F(x)$ in your 5th line, is it a cumulative distribution function ?
    – Sauhard Sharma
    Nov 16 at 11:55










  • Yes it is also a cdf
    – Matteo
    Nov 16 at 13:04








1




1




The $F(x)$ in your 5th line, is it a cumulative distribution function ?
– Sauhard Sharma
Nov 16 at 11:55




The $F(x)$ in your 5th line, is it a cumulative distribution function ?
– Sauhard Sharma
Nov 16 at 11:55












Yes it is also a cdf
– Matteo
Nov 16 at 13:04




Yes it is also a cdf
– Matteo
Nov 16 at 13:04










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Since the value of the pdf before $11$ is $0$, $F(x)$ will also be $0$ before $11$. After $11$, we integrate pdf from $11$ to $12$ separately, and $12$ to $13$ separately as they have different pdfs.



From $11$ to $12$ ($11leq yleq 12$)



$$F(y) = int_{11}^{y}(x - 11)dx = frac{y^2}{2} - 11y + frac{121}{2} $$



For $12$ to $13$ ($12leq yleq 13$), we'll need the value of $F(12)$ as this will be added to the integral. So putting $y = 12$ in the above integral, we get $F(12) = 0.5$



Now for $12$ to $13$ ($12leq yleq 13$)



$$F(y) = 0.5 + int_{12}^{y}(13 - x)dx = 13y - frac{y^2}{2} - 83.5$$



After $13$, i.e. $ygeq 13$



$$F(y) = 1$$



as can be seen by putting $y = 13$ in the second equation.






share|cite|improve this answer





















  • Thank you Sauhard! However, the solution that I have reads: $0$ for $xleq 11$; $frac{1}{2}(x-11)^2$ for $11 leq x leq 12$; $1-frac{1}{2}(13-x)^2$ for $12 leq x leq 13$ and $1$ for $x geq 12$
    – Matteo
    Nov 16 at 13:05












  • You can factorise my equations so that they fit your way of solution. For $11leq y leq 12$ , rewrite my equation of $F(y) = frac{y^2}{2} - 11y + frac{121}{2} = frac{1}{2}(y^2 - 22y + 121) = frac{1}{2}(y-11)^2$. For $12 leq y leq 13$, rewrite $F(y) = 13y - frac{y^2}{2} - 83.5 = 1 +13y - frac{y^2}{2} - 84.5 = 1 - frac{1}{2}(y^2 - 26y + 169) = 1 - frac{1}{2}(13 - y)^2$
    – Sauhard Sharma
    Nov 16 at 13:21










  • Thank you very much!
    – Matteo
    Nov 16 at 14:18










  • If you don't mind, could you please accept the answer
    – Sauhard Sharma
    20 hours ago











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: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
},
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%2f3001047%2ffrom-pdf-to-distribution-function%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Since the value of the pdf before $11$ is $0$, $F(x)$ will also be $0$ before $11$. After $11$, we integrate pdf from $11$ to $12$ separately, and $12$ to $13$ separately as they have different pdfs.



From $11$ to $12$ ($11leq yleq 12$)



$$F(y) = int_{11}^{y}(x - 11)dx = frac{y^2}{2} - 11y + frac{121}{2} $$



For $12$ to $13$ ($12leq yleq 13$), we'll need the value of $F(12)$ as this will be added to the integral. So putting $y = 12$ in the above integral, we get $F(12) = 0.5$



Now for $12$ to $13$ ($12leq yleq 13$)



$$F(y) = 0.5 + int_{12}^{y}(13 - x)dx = 13y - frac{y^2}{2} - 83.5$$



After $13$, i.e. $ygeq 13$



$$F(y) = 1$$



as can be seen by putting $y = 13$ in the second equation.






share|cite|improve this answer





















  • Thank you Sauhard! However, the solution that I have reads: $0$ for $xleq 11$; $frac{1}{2}(x-11)^2$ for $11 leq x leq 12$; $1-frac{1}{2}(13-x)^2$ for $12 leq x leq 13$ and $1$ for $x geq 12$
    – Matteo
    Nov 16 at 13:05












  • You can factorise my equations so that they fit your way of solution. For $11leq y leq 12$ , rewrite my equation of $F(y) = frac{y^2}{2} - 11y + frac{121}{2} = frac{1}{2}(y^2 - 22y + 121) = frac{1}{2}(y-11)^2$. For $12 leq y leq 13$, rewrite $F(y) = 13y - frac{y^2}{2} - 83.5 = 1 +13y - frac{y^2}{2} - 84.5 = 1 - frac{1}{2}(y^2 - 26y + 169) = 1 - frac{1}{2}(13 - y)^2$
    – Sauhard Sharma
    Nov 16 at 13:21










  • Thank you very much!
    – Matteo
    Nov 16 at 14:18










  • If you don't mind, could you please accept the answer
    – Sauhard Sharma
    20 hours ago















up vote
0
down vote













Since the value of the pdf before $11$ is $0$, $F(x)$ will also be $0$ before $11$. After $11$, we integrate pdf from $11$ to $12$ separately, and $12$ to $13$ separately as they have different pdfs.



From $11$ to $12$ ($11leq yleq 12$)



$$F(y) = int_{11}^{y}(x - 11)dx = frac{y^2}{2} - 11y + frac{121}{2} $$



For $12$ to $13$ ($12leq yleq 13$), we'll need the value of $F(12)$ as this will be added to the integral. So putting $y = 12$ in the above integral, we get $F(12) = 0.5$



Now for $12$ to $13$ ($12leq yleq 13$)



$$F(y) = 0.5 + int_{12}^{y}(13 - x)dx = 13y - frac{y^2}{2} - 83.5$$



After $13$, i.e. $ygeq 13$



$$F(y) = 1$$



as can be seen by putting $y = 13$ in the second equation.






share|cite|improve this answer





















  • Thank you Sauhard! However, the solution that I have reads: $0$ for $xleq 11$; $frac{1}{2}(x-11)^2$ for $11 leq x leq 12$; $1-frac{1}{2}(13-x)^2$ for $12 leq x leq 13$ and $1$ for $x geq 12$
    – Matteo
    Nov 16 at 13:05












  • You can factorise my equations so that they fit your way of solution. For $11leq y leq 12$ , rewrite my equation of $F(y) = frac{y^2}{2} - 11y + frac{121}{2} = frac{1}{2}(y^2 - 22y + 121) = frac{1}{2}(y-11)^2$. For $12 leq y leq 13$, rewrite $F(y) = 13y - frac{y^2}{2} - 83.5 = 1 +13y - frac{y^2}{2} - 84.5 = 1 - frac{1}{2}(y^2 - 26y + 169) = 1 - frac{1}{2}(13 - y)^2$
    – Sauhard Sharma
    Nov 16 at 13:21










  • Thank you very much!
    – Matteo
    Nov 16 at 14:18










  • If you don't mind, could you please accept the answer
    – Sauhard Sharma
    20 hours ago













up vote
0
down vote










up vote
0
down vote









Since the value of the pdf before $11$ is $0$, $F(x)$ will also be $0$ before $11$. After $11$, we integrate pdf from $11$ to $12$ separately, and $12$ to $13$ separately as they have different pdfs.



From $11$ to $12$ ($11leq yleq 12$)



$$F(y) = int_{11}^{y}(x - 11)dx = frac{y^2}{2} - 11y + frac{121}{2} $$



For $12$ to $13$ ($12leq yleq 13$), we'll need the value of $F(12)$ as this will be added to the integral. So putting $y = 12$ in the above integral, we get $F(12) = 0.5$



Now for $12$ to $13$ ($12leq yleq 13$)



$$F(y) = 0.5 + int_{12}^{y}(13 - x)dx = 13y - frac{y^2}{2} - 83.5$$



After $13$, i.e. $ygeq 13$



$$F(y) = 1$$



as can be seen by putting $y = 13$ in the second equation.






share|cite|improve this answer












Since the value of the pdf before $11$ is $0$, $F(x)$ will also be $0$ before $11$. After $11$, we integrate pdf from $11$ to $12$ separately, and $12$ to $13$ separately as they have different pdfs.



From $11$ to $12$ ($11leq yleq 12$)



$$F(y) = int_{11}^{y}(x - 11)dx = frac{y^2}{2} - 11y + frac{121}{2} $$



For $12$ to $13$ ($12leq yleq 13$), we'll need the value of $F(12)$ as this will be added to the integral. So putting $y = 12$ in the above integral, we get $F(12) = 0.5$



Now for $12$ to $13$ ($12leq yleq 13$)



$$F(y) = 0.5 + int_{12}^{y}(13 - x)dx = 13y - frac{y^2}{2} - 83.5$$



After $13$, i.e. $ygeq 13$



$$F(y) = 1$$



as can be seen by putting $y = 13$ in the second equation.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Nov 16 at 12:17









Sauhard Sharma

3108




3108












  • Thank you Sauhard! However, the solution that I have reads: $0$ for $xleq 11$; $frac{1}{2}(x-11)^2$ for $11 leq x leq 12$; $1-frac{1}{2}(13-x)^2$ for $12 leq x leq 13$ and $1$ for $x geq 12$
    – Matteo
    Nov 16 at 13:05












  • You can factorise my equations so that they fit your way of solution. For $11leq y leq 12$ , rewrite my equation of $F(y) = frac{y^2}{2} - 11y + frac{121}{2} = frac{1}{2}(y^2 - 22y + 121) = frac{1}{2}(y-11)^2$. For $12 leq y leq 13$, rewrite $F(y) = 13y - frac{y^2}{2} - 83.5 = 1 +13y - frac{y^2}{2} - 84.5 = 1 - frac{1}{2}(y^2 - 26y + 169) = 1 - frac{1}{2}(13 - y)^2$
    – Sauhard Sharma
    Nov 16 at 13:21










  • Thank you very much!
    – Matteo
    Nov 16 at 14:18










  • If you don't mind, could you please accept the answer
    – Sauhard Sharma
    20 hours ago


















  • Thank you Sauhard! However, the solution that I have reads: $0$ for $xleq 11$; $frac{1}{2}(x-11)^2$ for $11 leq x leq 12$; $1-frac{1}{2}(13-x)^2$ for $12 leq x leq 13$ and $1$ for $x geq 12$
    – Matteo
    Nov 16 at 13:05












  • You can factorise my equations so that they fit your way of solution. For $11leq y leq 12$ , rewrite my equation of $F(y) = frac{y^2}{2} - 11y + frac{121}{2} = frac{1}{2}(y^2 - 22y + 121) = frac{1}{2}(y-11)^2$. For $12 leq y leq 13$, rewrite $F(y) = 13y - frac{y^2}{2} - 83.5 = 1 +13y - frac{y^2}{2} - 84.5 = 1 - frac{1}{2}(y^2 - 26y + 169) = 1 - frac{1}{2}(13 - y)^2$
    – Sauhard Sharma
    Nov 16 at 13:21










  • Thank you very much!
    – Matteo
    Nov 16 at 14:18










  • If you don't mind, could you please accept the answer
    – Sauhard Sharma
    20 hours ago
















Thank you Sauhard! However, the solution that I have reads: $0$ for $xleq 11$; $frac{1}{2}(x-11)^2$ for $11 leq x leq 12$; $1-frac{1}{2}(13-x)^2$ for $12 leq x leq 13$ and $1$ for $x geq 12$
– Matteo
Nov 16 at 13:05






Thank you Sauhard! However, the solution that I have reads: $0$ for $xleq 11$; $frac{1}{2}(x-11)^2$ for $11 leq x leq 12$; $1-frac{1}{2}(13-x)^2$ for $12 leq x leq 13$ and $1$ for $x geq 12$
– Matteo
Nov 16 at 13:05














You can factorise my equations so that they fit your way of solution. For $11leq y leq 12$ , rewrite my equation of $F(y) = frac{y^2}{2} - 11y + frac{121}{2} = frac{1}{2}(y^2 - 22y + 121) = frac{1}{2}(y-11)^2$. For $12 leq y leq 13$, rewrite $F(y) = 13y - frac{y^2}{2} - 83.5 = 1 +13y - frac{y^2}{2} - 84.5 = 1 - frac{1}{2}(y^2 - 26y + 169) = 1 - frac{1}{2}(13 - y)^2$
– Sauhard Sharma
Nov 16 at 13:21




You can factorise my equations so that they fit your way of solution. For $11leq y leq 12$ , rewrite my equation of $F(y) = frac{y^2}{2} - 11y + frac{121}{2} = frac{1}{2}(y^2 - 22y + 121) = frac{1}{2}(y-11)^2$. For $12 leq y leq 13$, rewrite $F(y) = 13y - frac{y^2}{2} - 83.5 = 1 +13y - frac{y^2}{2} - 84.5 = 1 - frac{1}{2}(y^2 - 26y + 169) = 1 - frac{1}{2}(13 - y)^2$
– Sauhard Sharma
Nov 16 at 13:21












Thank you very much!
– Matteo
Nov 16 at 14:18




Thank you very much!
– Matteo
Nov 16 at 14:18












If you don't mind, could you please accept the answer
– Sauhard Sharma
20 hours ago




If you don't mind, could you please accept the answer
– Sauhard Sharma
20 hours ago


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3001047%2ffrom-pdf-to-distribution-function%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

AnyDesk - Fatal Program Failure

How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

QoS: MAC-Priority for clients behind a repeater