Finding expectation using cumulative distribution function.
$begingroup$
$ F(x) = begin{cases} 0 & x < -2\ .2& -2 le x< 0 \ .5 & 0
le x <2.2 &\ .6 & 2.2 le x <3 \.9&3 le x<4 \ 1 &
xge4end{cases}$
Find $E(X)$
I am trying to use this formula $E(X)=sum_{x>0}(1-F(x))-sum_{x<0}(F(x))$
$bigg((1-.5)+(1-.6)+(1-.9)+(1-1)bigg)-bigg(.2bigg)=.5+.4+.1-.2=.8$
But this is wrong, answer given is different. Can anyone point out my mistake?
statistics expected-value
$endgroup$
add a comment |
$begingroup$
$ F(x) = begin{cases} 0 & x < -2\ .2& -2 le x< 0 \ .5 & 0
le x <2.2 &\ .6 & 2.2 le x <3 \.9&3 le x<4 \ 1 &
xge4end{cases}$
Find $E(X)$
I am trying to use this formula $E(X)=sum_{x>0}(1-F(x))-sum_{x<0}(F(x))$
$bigg((1-.5)+(1-.6)+(1-.9)+(1-1)bigg)-bigg(.2bigg)=.5+.4+.1-.2=.8$
But this is wrong, answer given is different. Can anyone point out my mistake?
statistics expected-value
$endgroup$
add a comment |
$begingroup$
$ F(x) = begin{cases} 0 & x < -2\ .2& -2 le x< 0 \ .5 & 0
le x <2.2 &\ .6 & 2.2 le x <3 \.9&3 le x<4 \ 1 &
xge4end{cases}$
Find $E(X)$
I am trying to use this formula $E(X)=sum_{x>0}(1-F(x))-sum_{x<0}(F(x))$
$bigg((1-.5)+(1-.6)+(1-.9)+(1-1)bigg)-bigg(.2bigg)=.5+.4+.1-.2=.8$
But this is wrong, answer given is different. Can anyone point out my mistake?
statistics expected-value
$endgroup$
$ F(x) = begin{cases} 0 & x < -2\ .2& -2 le x< 0 \ .5 & 0
le x <2.2 &\ .6 & 2.2 le x <3 \.9&3 le x<4 \ 1 &
xge4end{cases}$
Find $E(X)$
I am trying to use this formula $E(X)=sum_{x>0}(1-F(x))-sum_{x<0}(F(x))$
$bigg((1-.5)+(1-.6)+(1-.9)+(1-1)bigg)-bigg(.2bigg)=.5+.4+.1-.2=.8$
But this is wrong, answer given is different. Can anyone point out my mistake?
statistics expected-value
statistics expected-value
edited Jan 26 at 15:43
Daman deep
asked Jan 26 at 15:26
Daman deepDaman deep
756419
756419
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
That formula only works when your random variable is confined to the integers, which yours is not (since it can be $2.2$ with positive probability). Instead you can use the formula $E[X]=int_0^infty (1-F(x)) dx - int_{-infty}^0 F(x) dx$. This formula holds for general $X$ provided that the subtraction makes sense (i.e. you don't have $infty-infty$). The formula you wrote is obtained if you split the integrals into the intervals $[n,n+1)$ for integers $n$, provided that $F$ is always constant on such intervals (which again is not the case here).
You can also just write down the PMF and use the usual sum over all possible values. The PMF will be $p(x)=lim_{y to x^+} F(x)-lim_{y to x^-} F(x)$ for all $x$ where $F$ has a jump.
$endgroup$
$begingroup$
Could you let us know the PMF method? I will delete mine.
$endgroup$
– Satish Ramanathan
Jan 26 at 16:19
$begingroup$
Converting into PMF then the calculating $E(X)$ method I know I wanted to know what is the issue in the formula I wrote. Thanks for clearing my doubt.
$endgroup$
– Daman deep
Jan 26 at 16:20
$begingroup$
I just posted a question regarding same concept can you take a look ?
$endgroup$
– Daman deep
Feb 8 at 4:28
add a comment |
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',
autoActivateHeartbeat: false,
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3088372%2ffinding-expectation-using-cumulative-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
$begingroup$
That formula only works when your random variable is confined to the integers, which yours is not (since it can be $2.2$ with positive probability). Instead you can use the formula $E[X]=int_0^infty (1-F(x)) dx - int_{-infty}^0 F(x) dx$. This formula holds for general $X$ provided that the subtraction makes sense (i.e. you don't have $infty-infty$). The formula you wrote is obtained if you split the integrals into the intervals $[n,n+1)$ for integers $n$, provided that $F$ is always constant on such intervals (which again is not the case here).
You can also just write down the PMF and use the usual sum over all possible values. The PMF will be $p(x)=lim_{y to x^+} F(x)-lim_{y to x^-} F(x)$ for all $x$ where $F$ has a jump.
$endgroup$
$begingroup$
Could you let us know the PMF method? I will delete mine.
$endgroup$
– Satish Ramanathan
Jan 26 at 16:19
$begingroup$
Converting into PMF then the calculating $E(X)$ method I know I wanted to know what is the issue in the formula I wrote. Thanks for clearing my doubt.
$endgroup$
– Daman deep
Jan 26 at 16:20
$begingroup$
I just posted a question regarding same concept can you take a look ?
$endgroup$
– Daman deep
Feb 8 at 4:28
add a comment |
$begingroup$
That formula only works when your random variable is confined to the integers, which yours is not (since it can be $2.2$ with positive probability). Instead you can use the formula $E[X]=int_0^infty (1-F(x)) dx - int_{-infty}^0 F(x) dx$. This formula holds for general $X$ provided that the subtraction makes sense (i.e. you don't have $infty-infty$). The formula you wrote is obtained if you split the integrals into the intervals $[n,n+1)$ for integers $n$, provided that $F$ is always constant on such intervals (which again is not the case here).
You can also just write down the PMF and use the usual sum over all possible values. The PMF will be $p(x)=lim_{y to x^+} F(x)-lim_{y to x^-} F(x)$ for all $x$ where $F$ has a jump.
$endgroup$
$begingroup$
Could you let us know the PMF method? I will delete mine.
$endgroup$
– Satish Ramanathan
Jan 26 at 16:19
$begingroup$
Converting into PMF then the calculating $E(X)$ method I know I wanted to know what is the issue in the formula I wrote. Thanks for clearing my doubt.
$endgroup$
– Daman deep
Jan 26 at 16:20
$begingroup$
I just posted a question regarding same concept can you take a look ?
$endgroup$
– Daman deep
Feb 8 at 4:28
add a comment |
$begingroup$
That formula only works when your random variable is confined to the integers, which yours is not (since it can be $2.2$ with positive probability). Instead you can use the formula $E[X]=int_0^infty (1-F(x)) dx - int_{-infty}^0 F(x) dx$. This formula holds for general $X$ provided that the subtraction makes sense (i.e. you don't have $infty-infty$). The formula you wrote is obtained if you split the integrals into the intervals $[n,n+1)$ for integers $n$, provided that $F$ is always constant on such intervals (which again is not the case here).
You can also just write down the PMF and use the usual sum over all possible values. The PMF will be $p(x)=lim_{y to x^+} F(x)-lim_{y to x^-} F(x)$ for all $x$ where $F$ has a jump.
$endgroup$
That formula only works when your random variable is confined to the integers, which yours is not (since it can be $2.2$ with positive probability). Instead you can use the formula $E[X]=int_0^infty (1-F(x)) dx - int_{-infty}^0 F(x) dx$. This formula holds for general $X$ provided that the subtraction makes sense (i.e. you don't have $infty-infty$). The formula you wrote is obtained if you split the integrals into the intervals $[n,n+1)$ for integers $n$, provided that $F$ is always constant on such intervals (which again is not the case here).
You can also just write down the PMF and use the usual sum over all possible values. The PMF will be $p(x)=lim_{y to x^+} F(x)-lim_{y to x^-} F(x)$ for all $x$ where $F$ has a jump.
edited Jan 26 at 16:21
answered Jan 26 at 16:12
IanIan
68.8k25392
68.8k25392
$begingroup$
Could you let us know the PMF method? I will delete mine.
$endgroup$
– Satish Ramanathan
Jan 26 at 16:19
$begingroup$
Converting into PMF then the calculating $E(X)$ method I know I wanted to know what is the issue in the formula I wrote. Thanks for clearing my doubt.
$endgroup$
– Daman deep
Jan 26 at 16:20
$begingroup$
I just posted a question regarding same concept can you take a look ?
$endgroup$
– Daman deep
Feb 8 at 4:28
add a comment |
$begingroup$
Could you let us know the PMF method? I will delete mine.
$endgroup$
– Satish Ramanathan
Jan 26 at 16:19
$begingroup$
Converting into PMF then the calculating $E(X)$ method I know I wanted to know what is the issue in the formula I wrote. Thanks for clearing my doubt.
$endgroup$
– Daman deep
Jan 26 at 16:20
$begingroup$
I just posted a question regarding same concept can you take a look ?
$endgroup$
– Daman deep
Feb 8 at 4:28
$begingroup$
Could you let us know the PMF method? I will delete mine.
$endgroup$
– Satish Ramanathan
Jan 26 at 16:19
$begingroup$
Could you let us know the PMF method? I will delete mine.
$endgroup$
– Satish Ramanathan
Jan 26 at 16:19
$begingroup$
Converting into PMF then the calculating $E(X)$ method I know I wanted to know what is the issue in the formula I wrote. Thanks for clearing my doubt.
$endgroup$
– Daman deep
Jan 26 at 16:20
$begingroup$
Converting into PMF then the calculating $E(X)$ method I know I wanted to know what is the issue in the formula I wrote. Thanks for clearing my doubt.
$endgroup$
– Daman deep
Jan 26 at 16:20
$begingroup$
I just posted a question regarding same concept can you take a look ?
$endgroup$
– Daman deep
Feb 8 at 4:28
$begingroup$
I just posted a question regarding same concept can you take a look ?
$endgroup$
– Daman deep
Feb 8 at 4:28
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3088372%2ffinding-expectation-using-cumulative-distribution-function%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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