Finding the Expectation and Variance, given the distribution function and density function for a continuous...
For this density function of a continuous random variable, X:
$$f(x) = begin{cases}
c & mbox{for } -1 ≤ x ≤ 1\
tfrac{c}{x^4} & mbox{for } |x| > 1end{cases}$$
and calculating its distribution function:
$$F(x) = begin{cases} int_{1}^{infty} tfrac{3}{8x^4} dx & text{if } x>1 \ int_{-1}^{1} tfrac{3}{8} dx & text{if } -1 ≤ x ≤ 1 \ int_{-infty}^{-1} tfrac{3}{8x^4} & text{if } x < -1end{cases}$$
I am now unsure how to calculate the Expectation, Variance and Median.
Every time I try to using $int_{}^{} xf(x) dx$ for each of the intervals, I seem to get $EX = 0$
Any help will be greatly appreciated.
Thanks
probability-distributions
add a comment |
For this density function of a continuous random variable, X:
$$f(x) = begin{cases}
c & mbox{for } -1 ≤ x ≤ 1\
tfrac{c}{x^4} & mbox{for } |x| > 1end{cases}$$
and calculating its distribution function:
$$F(x) = begin{cases} int_{1}^{infty} tfrac{3}{8x^4} dx & text{if } x>1 \ int_{-1}^{1} tfrac{3}{8} dx & text{if } -1 ≤ x ≤ 1 \ int_{-infty}^{-1} tfrac{3}{8x^4} & text{if } x < -1end{cases}$$
I am now unsure how to calculate the Expectation, Variance and Median.
Every time I try to using $int_{}^{} xf(x) dx$ for each of the intervals, I seem to get $EX = 0$
Any help will be greatly appreciated.
Thanks
probability-distributions
add a comment |
For this density function of a continuous random variable, X:
$$f(x) = begin{cases}
c & mbox{for } -1 ≤ x ≤ 1\
tfrac{c}{x^4} & mbox{for } |x| > 1end{cases}$$
and calculating its distribution function:
$$F(x) = begin{cases} int_{1}^{infty} tfrac{3}{8x^4} dx & text{if } x>1 \ int_{-1}^{1} tfrac{3}{8} dx & text{if } -1 ≤ x ≤ 1 \ int_{-infty}^{-1} tfrac{3}{8x^4} & text{if } x < -1end{cases}$$
I am now unsure how to calculate the Expectation, Variance and Median.
Every time I try to using $int_{}^{} xf(x) dx$ for each of the intervals, I seem to get $EX = 0$
Any help will be greatly appreciated.
Thanks
probability-distributions
For this density function of a continuous random variable, X:
$$f(x) = begin{cases}
c & mbox{for } -1 ≤ x ≤ 1\
tfrac{c}{x^4} & mbox{for } |x| > 1end{cases}$$
and calculating its distribution function:
$$F(x) = begin{cases} int_{1}^{infty} tfrac{3}{8x^4} dx & text{if } x>1 \ int_{-1}^{1} tfrac{3}{8} dx & text{if } -1 ≤ x ≤ 1 \ int_{-infty}^{-1} tfrac{3}{8x^4} & text{if } x < -1end{cases}$$
I am now unsure how to calculate the Expectation, Variance and Median.
Every time I try to using $int_{}^{} xf(x) dx$ for each of the intervals, I seem to get $EX = 0$
Any help will be greatly appreciated.
Thanks
probability-distributions
probability-distributions
edited Nov 27 at 0:16
asked Nov 27 at 0:03
Mike Campbell
62
62
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Lets be more precise about things here.
Firstly, the integrals you have written down for the distribution function $F(x)$ (which I assume you mean the Cumulative Distribution Function) are simply numbers. For example, $$int_1^infty frac{3}{8x^4} dx = frac 18$$
is not something that depends on $x$. Instead, recall that the function $F(x)$ is defined as
$$F(x) = int_{-infty}^x f(s)ds tag{1}$$
whereas the function $f(x)$ satisfies
$$int_{-infty}^infty f(s)ds = 1 tag{2}$$
I assume you have already used $(2)$ and found the constant $c = frac 38$
Thus when $x<-1$, using $(1)$, we have
$$F(x) = int_{-infty}^x frac{3}{8s^4}ds = -frac{1}{8x^3}$$
I will leave you to do the other two cases, but you should find that
$$F(x) = begin{cases} -frac{1}{8x^3} & x leq -1 \ frac 38 x + frac 12 & -1<x<1 \ 1-frac{1}{8x^3} & x>1 end{cases}$$
Next, as you have noted, we calculate the expectation using the formula
$$Bbb E (X) = int_{-infty}^infty xf(x)dx$$
But of course, for our function $f(x)$ we will have to split the domains of integration:
begin{align}
Bbb E (X) & = int_{-infty}^infty xf(x)dx \
& = int_{-infty}^{-1} x cdot frac{3}{8x^4} dx + int_{-1}^1 x cdot frac 38 dx + int_1^infty x cdot frac{3}{8x^4} dx \
& = int_{-infty}^{-1} frac{3}{8x^3} dx + int_{-1}^1 frac {3x}{8} dx + int_1^infty frac{3}{8x^3} dx \
& = -frac{3}{16} + 0 + frac{3}{16} \
& = 0
end{align}
Indeed we find that the expected value is $0$, which is not surprising due to the fact that $f(x)$ is an even function.
Next, the formula for the variance is
$$text{Var}(X) = Bbb E(X^2) - big[Bbb E(X)big]^2$$
We already know that $Bbb E(X)=0$, so all that is left is to calculate $Bbb E(X^2)$. This is done in a similar fashion as before:
begin{align}
Bbb E (X^2) & = int_{-infty}^infty x^2f(x)dx \
& = int_{-infty}^{-1} x^2 cdot frac{3}{8x^4} dx + int_{-1}^1 x^2 cdot frac 38 dx + int_1^infty x^2 cdot frac{3}{8x^4} dx \
& = int_{-infty}^{-1} frac{3}{8x^2} dx + int_{-1}^1 frac {3x^2}{8} dx + int_1^infty frac{3}{8x^2} dx \
& = frac{3}{8} + frac 14 + frac{3}{8} \
& = 1
end{align}
It follows that the variance is
$$text{Var}(X) = Bbb E(X^2) - big[Bbb E(X)big]^2 = 1 - (0)^2 = 1$$
Finally, the Median amounts to finding the value of $x$ such that $F(x)=frac 12$. This is easily found to be $x = 0$.
Thank you so much for this. For some reason, I thought I was going wrong when I calculated the EX to be 0. But at least this confirms I was doing it correctly. Thank you
– Mike Campbell
Nov 27 at 11:23
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%2f3015128%2ffinding-the-expectation-and-variance-given-the-distribution-function-and-densit%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
Lets be more precise about things here.
Firstly, the integrals you have written down for the distribution function $F(x)$ (which I assume you mean the Cumulative Distribution Function) are simply numbers. For example, $$int_1^infty frac{3}{8x^4} dx = frac 18$$
is not something that depends on $x$. Instead, recall that the function $F(x)$ is defined as
$$F(x) = int_{-infty}^x f(s)ds tag{1}$$
whereas the function $f(x)$ satisfies
$$int_{-infty}^infty f(s)ds = 1 tag{2}$$
I assume you have already used $(2)$ and found the constant $c = frac 38$
Thus when $x<-1$, using $(1)$, we have
$$F(x) = int_{-infty}^x frac{3}{8s^4}ds = -frac{1}{8x^3}$$
I will leave you to do the other two cases, but you should find that
$$F(x) = begin{cases} -frac{1}{8x^3} & x leq -1 \ frac 38 x + frac 12 & -1<x<1 \ 1-frac{1}{8x^3} & x>1 end{cases}$$
Next, as you have noted, we calculate the expectation using the formula
$$Bbb E (X) = int_{-infty}^infty xf(x)dx$$
But of course, for our function $f(x)$ we will have to split the domains of integration:
begin{align}
Bbb E (X) & = int_{-infty}^infty xf(x)dx \
& = int_{-infty}^{-1} x cdot frac{3}{8x^4} dx + int_{-1}^1 x cdot frac 38 dx + int_1^infty x cdot frac{3}{8x^4} dx \
& = int_{-infty}^{-1} frac{3}{8x^3} dx + int_{-1}^1 frac {3x}{8} dx + int_1^infty frac{3}{8x^3} dx \
& = -frac{3}{16} + 0 + frac{3}{16} \
& = 0
end{align}
Indeed we find that the expected value is $0$, which is not surprising due to the fact that $f(x)$ is an even function.
Next, the formula for the variance is
$$text{Var}(X) = Bbb E(X^2) - big[Bbb E(X)big]^2$$
We already know that $Bbb E(X)=0$, so all that is left is to calculate $Bbb E(X^2)$. This is done in a similar fashion as before:
begin{align}
Bbb E (X^2) & = int_{-infty}^infty x^2f(x)dx \
& = int_{-infty}^{-1} x^2 cdot frac{3}{8x^4} dx + int_{-1}^1 x^2 cdot frac 38 dx + int_1^infty x^2 cdot frac{3}{8x^4} dx \
& = int_{-infty}^{-1} frac{3}{8x^2} dx + int_{-1}^1 frac {3x^2}{8} dx + int_1^infty frac{3}{8x^2} dx \
& = frac{3}{8} + frac 14 + frac{3}{8} \
& = 1
end{align}
It follows that the variance is
$$text{Var}(X) = Bbb E(X^2) - big[Bbb E(X)big]^2 = 1 - (0)^2 = 1$$
Finally, the Median amounts to finding the value of $x$ such that $F(x)=frac 12$. This is easily found to be $x = 0$.
Thank you so much for this. For some reason, I thought I was going wrong when I calculated the EX to be 0. But at least this confirms I was doing it correctly. Thank you
– Mike Campbell
Nov 27 at 11:23
add a comment |
Lets be more precise about things here.
Firstly, the integrals you have written down for the distribution function $F(x)$ (which I assume you mean the Cumulative Distribution Function) are simply numbers. For example, $$int_1^infty frac{3}{8x^4} dx = frac 18$$
is not something that depends on $x$. Instead, recall that the function $F(x)$ is defined as
$$F(x) = int_{-infty}^x f(s)ds tag{1}$$
whereas the function $f(x)$ satisfies
$$int_{-infty}^infty f(s)ds = 1 tag{2}$$
I assume you have already used $(2)$ and found the constant $c = frac 38$
Thus when $x<-1$, using $(1)$, we have
$$F(x) = int_{-infty}^x frac{3}{8s^4}ds = -frac{1}{8x^3}$$
I will leave you to do the other two cases, but you should find that
$$F(x) = begin{cases} -frac{1}{8x^3} & x leq -1 \ frac 38 x + frac 12 & -1<x<1 \ 1-frac{1}{8x^3} & x>1 end{cases}$$
Next, as you have noted, we calculate the expectation using the formula
$$Bbb E (X) = int_{-infty}^infty xf(x)dx$$
But of course, for our function $f(x)$ we will have to split the domains of integration:
begin{align}
Bbb E (X) & = int_{-infty}^infty xf(x)dx \
& = int_{-infty}^{-1} x cdot frac{3}{8x^4} dx + int_{-1}^1 x cdot frac 38 dx + int_1^infty x cdot frac{3}{8x^4} dx \
& = int_{-infty}^{-1} frac{3}{8x^3} dx + int_{-1}^1 frac {3x}{8} dx + int_1^infty frac{3}{8x^3} dx \
& = -frac{3}{16} + 0 + frac{3}{16} \
& = 0
end{align}
Indeed we find that the expected value is $0$, which is not surprising due to the fact that $f(x)$ is an even function.
Next, the formula for the variance is
$$text{Var}(X) = Bbb E(X^2) - big[Bbb E(X)big]^2$$
We already know that $Bbb E(X)=0$, so all that is left is to calculate $Bbb E(X^2)$. This is done in a similar fashion as before:
begin{align}
Bbb E (X^2) & = int_{-infty}^infty x^2f(x)dx \
& = int_{-infty}^{-1} x^2 cdot frac{3}{8x^4} dx + int_{-1}^1 x^2 cdot frac 38 dx + int_1^infty x^2 cdot frac{3}{8x^4} dx \
& = int_{-infty}^{-1} frac{3}{8x^2} dx + int_{-1}^1 frac {3x^2}{8} dx + int_1^infty frac{3}{8x^2} dx \
& = frac{3}{8} + frac 14 + frac{3}{8} \
& = 1
end{align}
It follows that the variance is
$$text{Var}(X) = Bbb E(X^2) - big[Bbb E(X)big]^2 = 1 - (0)^2 = 1$$
Finally, the Median amounts to finding the value of $x$ such that $F(x)=frac 12$. This is easily found to be $x = 0$.
Thank you so much for this. For some reason, I thought I was going wrong when I calculated the EX to be 0. But at least this confirms I was doing it correctly. Thank you
– Mike Campbell
Nov 27 at 11:23
add a comment |
Lets be more precise about things here.
Firstly, the integrals you have written down for the distribution function $F(x)$ (which I assume you mean the Cumulative Distribution Function) are simply numbers. For example, $$int_1^infty frac{3}{8x^4} dx = frac 18$$
is not something that depends on $x$. Instead, recall that the function $F(x)$ is defined as
$$F(x) = int_{-infty}^x f(s)ds tag{1}$$
whereas the function $f(x)$ satisfies
$$int_{-infty}^infty f(s)ds = 1 tag{2}$$
I assume you have already used $(2)$ and found the constant $c = frac 38$
Thus when $x<-1$, using $(1)$, we have
$$F(x) = int_{-infty}^x frac{3}{8s^4}ds = -frac{1}{8x^3}$$
I will leave you to do the other two cases, but you should find that
$$F(x) = begin{cases} -frac{1}{8x^3} & x leq -1 \ frac 38 x + frac 12 & -1<x<1 \ 1-frac{1}{8x^3} & x>1 end{cases}$$
Next, as you have noted, we calculate the expectation using the formula
$$Bbb E (X) = int_{-infty}^infty xf(x)dx$$
But of course, for our function $f(x)$ we will have to split the domains of integration:
begin{align}
Bbb E (X) & = int_{-infty}^infty xf(x)dx \
& = int_{-infty}^{-1} x cdot frac{3}{8x^4} dx + int_{-1}^1 x cdot frac 38 dx + int_1^infty x cdot frac{3}{8x^4} dx \
& = int_{-infty}^{-1} frac{3}{8x^3} dx + int_{-1}^1 frac {3x}{8} dx + int_1^infty frac{3}{8x^3} dx \
& = -frac{3}{16} + 0 + frac{3}{16} \
& = 0
end{align}
Indeed we find that the expected value is $0$, which is not surprising due to the fact that $f(x)$ is an even function.
Next, the formula for the variance is
$$text{Var}(X) = Bbb E(X^2) - big[Bbb E(X)big]^2$$
We already know that $Bbb E(X)=0$, so all that is left is to calculate $Bbb E(X^2)$. This is done in a similar fashion as before:
begin{align}
Bbb E (X^2) & = int_{-infty}^infty x^2f(x)dx \
& = int_{-infty}^{-1} x^2 cdot frac{3}{8x^4} dx + int_{-1}^1 x^2 cdot frac 38 dx + int_1^infty x^2 cdot frac{3}{8x^4} dx \
& = int_{-infty}^{-1} frac{3}{8x^2} dx + int_{-1}^1 frac {3x^2}{8} dx + int_1^infty frac{3}{8x^2} dx \
& = frac{3}{8} + frac 14 + frac{3}{8} \
& = 1
end{align}
It follows that the variance is
$$text{Var}(X) = Bbb E(X^2) - big[Bbb E(X)big]^2 = 1 - (0)^2 = 1$$
Finally, the Median amounts to finding the value of $x$ such that $F(x)=frac 12$. This is easily found to be $x = 0$.
Lets be more precise about things here.
Firstly, the integrals you have written down for the distribution function $F(x)$ (which I assume you mean the Cumulative Distribution Function) are simply numbers. For example, $$int_1^infty frac{3}{8x^4} dx = frac 18$$
is not something that depends on $x$. Instead, recall that the function $F(x)$ is defined as
$$F(x) = int_{-infty}^x f(s)ds tag{1}$$
whereas the function $f(x)$ satisfies
$$int_{-infty}^infty f(s)ds = 1 tag{2}$$
I assume you have already used $(2)$ and found the constant $c = frac 38$
Thus when $x<-1$, using $(1)$, we have
$$F(x) = int_{-infty}^x frac{3}{8s^4}ds = -frac{1}{8x^3}$$
I will leave you to do the other two cases, but you should find that
$$F(x) = begin{cases} -frac{1}{8x^3} & x leq -1 \ frac 38 x + frac 12 & -1<x<1 \ 1-frac{1}{8x^3} & x>1 end{cases}$$
Next, as you have noted, we calculate the expectation using the formula
$$Bbb E (X) = int_{-infty}^infty xf(x)dx$$
But of course, for our function $f(x)$ we will have to split the domains of integration:
begin{align}
Bbb E (X) & = int_{-infty}^infty xf(x)dx \
& = int_{-infty}^{-1} x cdot frac{3}{8x^4} dx + int_{-1}^1 x cdot frac 38 dx + int_1^infty x cdot frac{3}{8x^4} dx \
& = int_{-infty}^{-1} frac{3}{8x^3} dx + int_{-1}^1 frac {3x}{8} dx + int_1^infty frac{3}{8x^3} dx \
& = -frac{3}{16} + 0 + frac{3}{16} \
& = 0
end{align}
Indeed we find that the expected value is $0$, which is not surprising due to the fact that $f(x)$ is an even function.
Next, the formula for the variance is
$$text{Var}(X) = Bbb E(X^2) - big[Bbb E(X)big]^2$$
We already know that $Bbb E(X)=0$, so all that is left is to calculate $Bbb E(X^2)$. This is done in a similar fashion as before:
begin{align}
Bbb E (X^2) & = int_{-infty}^infty x^2f(x)dx \
& = int_{-infty}^{-1} x^2 cdot frac{3}{8x^4} dx + int_{-1}^1 x^2 cdot frac 38 dx + int_1^infty x^2 cdot frac{3}{8x^4} dx \
& = int_{-infty}^{-1} frac{3}{8x^2} dx + int_{-1}^1 frac {3x^2}{8} dx + int_1^infty frac{3}{8x^2} dx \
& = frac{3}{8} + frac 14 + frac{3}{8} \
& = 1
end{align}
It follows that the variance is
$$text{Var}(X) = Bbb E(X^2) - big[Bbb E(X)big]^2 = 1 - (0)^2 = 1$$
Finally, the Median amounts to finding the value of $x$ such that $F(x)=frac 12$. This is easily found to be $x = 0$.
edited Nov 27 at 0:43
answered Nov 27 at 0:35
glowstonetrees
2,285317
2,285317
Thank you so much for this. For some reason, I thought I was going wrong when I calculated the EX to be 0. But at least this confirms I was doing it correctly. Thank you
– Mike Campbell
Nov 27 at 11:23
add a comment |
Thank you so much for this. For some reason, I thought I was going wrong when I calculated the EX to be 0. But at least this confirms I was doing it correctly. Thank you
– Mike Campbell
Nov 27 at 11:23
Thank you so much for this. For some reason, I thought I was going wrong when I calculated the EX to be 0. But at least this confirms I was doing it correctly. Thank you
– Mike Campbell
Nov 27 at 11:23
Thank you so much for this. For some reason, I thought I was going wrong when I calculated the EX to be 0. But at least this confirms I was doing it correctly. Thank you
– Mike Campbell
Nov 27 at 11:23
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
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%2f3015128%2ffinding-the-expectation-and-variance-given-the-distribution-function-and-densit%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