Expected value for $f(x)= frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}...
$begingroup$
$$f(x)= frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}} frac{x^{alpha-1}}{sqrt{1-beta x}}$$
where $0<x<beta$.
So these are three terms all multiplied to give you an ugly distribution function where $alpha>0$ is some parameter, $beta>0$ is a parameter. $Gamma$ refers to the Gamma function.
This very closely resembles the Gamma Distribution function but not quite and I don't know how to find the expectation and variance for $X$ with the given distribution function.
I tried to go the route of finding the moment generating function to make the distribution resemble a gamma and use the fact that the density would integrate to one but the $(1-beta x)$ term really complicates things. Not sure what to do.
Help.
statistics probability-theory probability-distributions
$endgroup$
add a comment |
$begingroup$
$$f(x)= frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}} frac{x^{alpha-1}}{sqrt{1-beta x}}$$
where $0<x<beta$.
So these are three terms all multiplied to give you an ugly distribution function where $alpha>0$ is some parameter, $beta>0$ is a parameter. $Gamma$ refers to the Gamma function.
This very closely resembles the Gamma Distribution function but not quite and I don't know how to find the expectation and variance for $X$ with the given distribution function.
I tried to go the route of finding the moment generating function to make the distribution resemble a gamma and use the fact that the density would integrate to one but the $(1-beta x)$ term really complicates things. Not sure what to do.
Help.
statistics probability-theory probability-distributions
$endgroup$
add a comment |
$begingroup$
$$f(x)= frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}} frac{x^{alpha-1}}{sqrt{1-beta x}}$$
where $0<x<beta$.
So these are three terms all multiplied to give you an ugly distribution function where $alpha>0$ is some parameter, $beta>0$ is a parameter. $Gamma$ refers to the Gamma function.
This very closely resembles the Gamma Distribution function but not quite and I don't know how to find the expectation and variance for $X$ with the given distribution function.
I tried to go the route of finding the moment generating function to make the distribution resemble a gamma and use the fact that the density would integrate to one but the $(1-beta x)$ term really complicates things. Not sure what to do.
Help.
statistics probability-theory probability-distributions
$endgroup$
$$f(x)= frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}} frac{x^{alpha-1}}{sqrt{1-beta x}}$$
where $0<x<beta$.
So these are three terms all multiplied to give you an ugly distribution function where $alpha>0$ is some parameter, $beta>0$ is a parameter. $Gamma$ refers to the Gamma function.
This very closely resembles the Gamma Distribution function but not quite and I don't know how to find the expectation and variance for $X$ with the given distribution function.
I tried to go the route of finding the moment generating function to make the distribution resemble a gamma and use the fact that the density would integrate to one but the $(1-beta x)$ term really complicates things. Not sure what to do.
Help.
statistics probability-theory probability-distributions
statistics probability-theory probability-distributions
edited Dec 2 '12 at 9:51
Julian Kuelshammer
7,53232666
7,53232666
asked Dec 2 '12 at 9:26
TheRealIssacNewtonTheRealIssacNewton
311
311
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
$begingroup$
The expected value of a probability density function $f(x)$ is given by
$$ operatorname{E}[X] = int_{-infty}^infty x f(x), operatorname{d}x .$$
Applying this to your problem, we have
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^beta frac{x^{alpha}}{sqrt{1-beta x}}, operatorname{d}x $$
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^beta x^{alpha}(1-beta x)^{-frac{1}{2}}, operatorname{d}x . $$
Make the change of variables $y=beta x$ yields
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^1 frac{y^{alpha}}{{beta}^{alpha}}(1- y)^{-frac{1}{2}}, frac{dx}{beta}$$
$$=frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^1 frac{y^{alpha}}{{beta}^{alpha}}(1- y)^{-frac{1}{2}}, frac{dx}{beta} $$
$$ = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{1}{betasqrt{pi}} int_{0}^1 y^{alpha}(1- y)^{-frac{1}{2}}, frac{dx}{beta}$$
$$ = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{1}{betasqrt{pi}} frac{Gamma(alpha+1)Gamma(frac{1}{2})}{Gamma(alpha + frac{3}{2})}=frac{alpha}{beta(alpha+frac{1}{2})}. $$
Note that, the last integral is known as the beta function
$$ int_{0}^1 t^{u-1}(1- t)^{v-1}, dt=frac{Gamma(u)Gamma(v)}{Gamma(u+v)}. $$
$endgroup$
add a comment |
$begingroup$
Let us take for granted that the function $f$ in the question, which we rewrite as $f_{alpha,beta}$, is a density function. In particular, $displaystyleint f_{alpha,beta}=1$ for every $alpha$ and $beta$. Now, for every $gamma$,
$$
x^gamma f_{alpha,beta}(x)=frac{Gamma(alpha+tfrac12)}{Gamma(alpha)},frac{Gamma(alpha+gamma)}{Gamma(alpha+gamma+tfrac12)},frac1{beta^gamma},f_{alpha+gamma,beta}(x).
$$
Since $displaystyleint f_{alpha+gamma,beta}=1$, this yields without any further computations that
$$
mathbb E(X^gamma)=int x^gamma f_{alpha,beta}(x)mathrm dx=frac{Gamma(alpha+tfrac12)}{Gamma(alpha)},frac{Gamma(alpha+gamma)}{Gamma(alpha+gamma+tfrac12)},frac1{beta^gamma}.
$$
Using this for $gamma=1$ and $gamma=2$, one gets
$$
mathbb E(X)=frac{alpha}{(alpha+tfrac12)},frac1beta,qquadmathbb E(X^2)=frac{alpha(alpha+1)}{(alpha+tfrac12)(alpha+tfrac32)},frac1{beta^2},
$$
from which the variance follows as
$$
mathrm{var}(X)=frac{alpha}{2(alpha+tfrac12)^2(alpha+tfrac32)},frac1{beta^2}.
$$
Note that $X=Y/beta$ where the distribution of $Y$ is Beta with parameters $(alpha,frac12)$, and an extended list of its properties is here.
$endgroup$
add a comment |
$begingroup$
With a change of variables and the integral for the Beta function, we get
$$
begin{align}
int_0^{1/beta}frac{x^{alpha-1}}{sqrt{1-beta x}},mathrm{d}x
&=beta^{-alpha}int_0^1u^{alpha-1}(1-u)^{-1/2},mathrm{d}u\
&=beta^{-alpha}frac{Gamma(alpha)sqrtpi}{Gamma(alpha+1/2)}tag{1}
end{align}
$$
Thus,
$$
f(x)=frac{beta^alpha}{sqrtpi}frac{Gamma(alpha+1/2)}{Gamma(alpha)}frac{x^{alpha-1}}{sqrt{1-beta x}}tag{2}
$$
has integral $1$. Using $(1)$, the expected value of $f(x)$ is
$$
begin{align}
&left.int_0^{1/beta}x,f(x),mathrm{d}x middle/int_0^{1/beta}f(x),mathrm{d}xright.\
&=left.int_0^{1/beta}frac{x^{alpha}}{sqrt{1-beta x}},mathrm{d}x middle/int_0^{1/beta}frac{x^{alpha-1}}{sqrt{1-beta x}},mathrm{d}xright.\
&=frac{alpha/beta}{alpha+1/2}tag{3}
end{align}
$$
$endgroup$
$begingroup$
Isn't all of this strictly included in answers posted 5 months ago?
$endgroup$
– Did
May 4 '13 at 8:36
1
$begingroup$
@Did: When I looked, it appeared that neither answer (nor the ad for mathStatica) showed that $f$ was a probability distribution. When I showed that, it was simple to extend to the complete answer, so I wrote the whole thing up. Now that I read your answer carefully, since you compute $left.int xf(x),mathrm{d}xmiddle/int f(x),mathrm{d}xright.$, it doesn't matter whether $f$ is a probability distribution. I think that this answer might be easier to follow, but if you think it is too close, I will remove it. It is not as if I think any of these answers is going to get any more votes.
$endgroup$
– robjohn♦
May 4 '13 at 10:56
add a comment |
$begingroup$
Given: $X$ has pdf $f(x)$:
Notwithstanding lots of elaborate calculations by others on this page, unfortunately, the pdf itself is not well-defined. The easiest way to see this is to simply calculate the cdf $P(X<x)$ for some arbitrary parameter values ... I am using the mathStatica / Mathematica combo here:
which does not integrate to unity for parameter $beta < 1$. For $beta > 1$, it appears complex.
A quick play suggests that it may be only well-defined for $beta = 1$ ... in which case the distribution is just a special case of the Beta distribution, namely: $X$ ~ $Beta(alpha, frac 12)$.
Addendum
In a commment below, 'Did' kindly confirms the above error ... and notes that the flaw is obvious (which is perhaps why it has taken 5 months for anyone to notice it, user 'Did' included). With the suggested change, all is now well:
The desired mean and variance are now simply obtained as:
$endgroup$
$begingroup$
This is quite off the mark! As "others on this page" saw readily, everything is correct in the OP, except the misprint on the range $0lt xltbeta$ which should (obviously!) read $0lt xlt1/beta$. As explained in an answer, $Y=beta X$ is a standard beta random variable, whether $betalt1$ or $beta=1$ or $betagt1$. Let me suggest that, from now on, you lead your advertisement campaign formathStatica
in more honest ways.
$endgroup$
– Did
May 3 '13 at 19:10
$begingroup$
"In a commment below, 'Did' kindly confirms the above error"... This is becoming rather pathetic. Say, I am not an expert in advertisement techniques but your stealth approach to promotemathStatica
on this site (your obvious motivation) might turn to be counter productive, in the end.
$endgroup$
– Did
May 3 '13 at 19:40
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%2f249103%2fexpected-value-for-fx-frac-gamma-alpha-frac12-gamma-alpha-f%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
The expected value of a probability density function $f(x)$ is given by
$$ operatorname{E}[X] = int_{-infty}^infty x f(x), operatorname{d}x .$$
Applying this to your problem, we have
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^beta frac{x^{alpha}}{sqrt{1-beta x}}, operatorname{d}x $$
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^beta x^{alpha}(1-beta x)^{-frac{1}{2}}, operatorname{d}x . $$
Make the change of variables $y=beta x$ yields
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^1 frac{y^{alpha}}{{beta}^{alpha}}(1- y)^{-frac{1}{2}}, frac{dx}{beta}$$
$$=frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^1 frac{y^{alpha}}{{beta}^{alpha}}(1- y)^{-frac{1}{2}}, frac{dx}{beta} $$
$$ = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{1}{betasqrt{pi}} int_{0}^1 y^{alpha}(1- y)^{-frac{1}{2}}, frac{dx}{beta}$$
$$ = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{1}{betasqrt{pi}} frac{Gamma(alpha+1)Gamma(frac{1}{2})}{Gamma(alpha + frac{3}{2})}=frac{alpha}{beta(alpha+frac{1}{2})}. $$
Note that, the last integral is known as the beta function
$$ int_{0}^1 t^{u-1}(1- t)^{v-1}, dt=frac{Gamma(u)Gamma(v)}{Gamma(u+v)}. $$
$endgroup$
add a comment |
$begingroup$
The expected value of a probability density function $f(x)$ is given by
$$ operatorname{E}[X] = int_{-infty}^infty x f(x), operatorname{d}x .$$
Applying this to your problem, we have
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^beta frac{x^{alpha}}{sqrt{1-beta x}}, operatorname{d}x $$
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^beta x^{alpha}(1-beta x)^{-frac{1}{2}}, operatorname{d}x . $$
Make the change of variables $y=beta x$ yields
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^1 frac{y^{alpha}}{{beta}^{alpha}}(1- y)^{-frac{1}{2}}, frac{dx}{beta}$$
$$=frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^1 frac{y^{alpha}}{{beta}^{alpha}}(1- y)^{-frac{1}{2}}, frac{dx}{beta} $$
$$ = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{1}{betasqrt{pi}} int_{0}^1 y^{alpha}(1- y)^{-frac{1}{2}}, frac{dx}{beta}$$
$$ = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{1}{betasqrt{pi}} frac{Gamma(alpha+1)Gamma(frac{1}{2})}{Gamma(alpha + frac{3}{2})}=frac{alpha}{beta(alpha+frac{1}{2})}. $$
Note that, the last integral is known as the beta function
$$ int_{0}^1 t^{u-1}(1- t)^{v-1}, dt=frac{Gamma(u)Gamma(v)}{Gamma(u+v)}. $$
$endgroup$
add a comment |
$begingroup$
The expected value of a probability density function $f(x)$ is given by
$$ operatorname{E}[X] = int_{-infty}^infty x f(x), operatorname{d}x .$$
Applying this to your problem, we have
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^beta frac{x^{alpha}}{sqrt{1-beta x}}, operatorname{d}x $$
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^beta x^{alpha}(1-beta x)^{-frac{1}{2}}, operatorname{d}x . $$
Make the change of variables $y=beta x$ yields
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^1 frac{y^{alpha}}{{beta}^{alpha}}(1- y)^{-frac{1}{2}}, frac{dx}{beta}$$
$$=frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^1 frac{y^{alpha}}{{beta}^{alpha}}(1- y)^{-frac{1}{2}}, frac{dx}{beta} $$
$$ = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{1}{betasqrt{pi}} int_{0}^1 y^{alpha}(1- y)^{-frac{1}{2}}, frac{dx}{beta}$$
$$ = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{1}{betasqrt{pi}} frac{Gamma(alpha+1)Gamma(frac{1}{2})}{Gamma(alpha + frac{3}{2})}=frac{alpha}{beta(alpha+frac{1}{2})}. $$
Note that, the last integral is known as the beta function
$$ int_{0}^1 t^{u-1}(1- t)^{v-1}, dt=frac{Gamma(u)Gamma(v)}{Gamma(u+v)}. $$
$endgroup$
The expected value of a probability density function $f(x)$ is given by
$$ operatorname{E}[X] = int_{-infty}^infty x f(x), operatorname{d}x .$$
Applying this to your problem, we have
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^beta frac{x^{alpha}}{sqrt{1-beta x}}, operatorname{d}x $$
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^beta x^{alpha}(1-beta x)^{-frac{1}{2}}, operatorname{d}x . $$
Make the change of variables $y=beta x$ yields
$$ E[X] = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^1 frac{y^{alpha}}{{beta}^{alpha}}(1- y)^{-frac{1}{2}}, frac{dx}{beta}$$
$$=frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{beta^alpha}{sqrt{pi}}int_{0}^1 frac{y^{alpha}}{{beta}^{alpha}}(1- y)^{-frac{1}{2}}, frac{dx}{beta} $$
$$ = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{1}{betasqrt{pi}} int_{0}^1 y^{alpha}(1- y)^{-frac{1}{2}}, frac{dx}{beta}$$
$$ = frac{Gamma (alpha+frac{1}{2})}{Gamma (alpha)} frac{1}{betasqrt{pi}} frac{Gamma(alpha+1)Gamma(frac{1}{2})}{Gamma(alpha + frac{3}{2})}=frac{alpha}{beta(alpha+frac{1}{2})}. $$
Note that, the last integral is known as the beta function
$$ int_{0}^1 t^{u-1}(1- t)^{v-1}, dt=frac{Gamma(u)Gamma(v)}{Gamma(u+v)}. $$
answered Dec 2 '12 at 10:43
Mhenni BenghorbalMhenni Benghorbal
43.1k63574
43.1k63574
add a comment |
add a comment |
$begingroup$
Let us take for granted that the function $f$ in the question, which we rewrite as $f_{alpha,beta}$, is a density function. In particular, $displaystyleint f_{alpha,beta}=1$ for every $alpha$ and $beta$. Now, for every $gamma$,
$$
x^gamma f_{alpha,beta}(x)=frac{Gamma(alpha+tfrac12)}{Gamma(alpha)},frac{Gamma(alpha+gamma)}{Gamma(alpha+gamma+tfrac12)},frac1{beta^gamma},f_{alpha+gamma,beta}(x).
$$
Since $displaystyleint f_{alpha+gamma,beta}=1$, this yields without any further computations that
$$
mathbb E(X^gamma)=int x^gamma f_{alpha,beta}(x)mathrm dx=frac{Gamma(alpha+tfrac12)}{Gamma(alpha)},frac{Gamma(alpha+gamma)}{Gamma(alpha+gamma+tfrac12)},frac1{beta^gamma}.
$$
Using this for $gamma=1$ and $gamma=2$, one gets
$$
mathbb E(X)=frac{alpha}{(alpha+tfrac12)},frac1beta,qquadmathbb E(X^2)=frac{alpha(alpha+1)}{(alpha+tfrac12)(alpha+tfrac32)},frac1{beta^2},
$$
from which the variance follows as
$$
mathrm{var}(X)=frac{alpha}{2(alpha+tfrac12)^2(alpha+tfrac32)},frac1{beta^2}.
$$
Note that $X=Y/beta$ where the distribution of $Y$ is Beta with parameters $(alpha,frac12)$, and an extended list of its properties is here.
$endgroup$
add a comment |
$begingroup$
Let us take for granted that the function $f$ in the question, which we rewrite as $f_{alpha,beta}$, is a density function. In particular, $displaystyleint f_{alpha,beta}=1$ for every $alpha$ and $beta$. Now, for every $gamma$,
$$
x^gamma f_{alpha,beta}(x)=frac{Gamma(alpha+tfrac12)}{Gamma(alpha)},frac{Gamma(alpha+gamma)}{Gamma(alpha+gamma+tfrac12)},frac1{beta^gamma},f_{alpha+gamma,beta}(x).
$$
Since $displaystyleint f_{alpha+gamma,beta}=1$, this yields without any further computations that
$$
mathbb E(X^gamma)=int x^gamma f_{alpha,beta}(x)mathrm dx=frac{Gamma(alpha+tfrac12)}{Gamma(alpha)},frac{Gamma(alpha+gamma)}{Gamma(alpha+gamma+tfrac12)},frac1{beta^gamma}.
$$
Using this for $gamma=1$ and $gamma=2$, one gets
$$
mathbb E(X)=frac{alpha}{(alpha+tfrac12)},frac1beta,qquadmathbb E(X^2)=frac{alpha(alpha+1)}{(alpha+tfrac12)(alpha+tfrac32)},frac1{beta^2},
$$
from which the variance follows as
$$
mathrm{var}(X)=frac{alpha}{2(alpha+tfrac12)^2(alpha+tfrac32)},frac1{beta^2}.
$$
Note that $X=Y/beta$ where the distribution of $Y$ is Beta with parameters $(alpha,frac12)$, and an extended list of its properties is here.
$endgroup$
add a comment |
$begingroup$
Let us take for granted that the function $f$ in the question, which we rewrite as $f_{alpha,beta}$, is a density function. In particular, $displaystyleint f_{alpha,beta}=1$ for every $alpha$ and $beta$. Now, for every $gamma$,
$$
x^gamma f_{alpha,beta}(x)=frac{Gamma(alpha+tfrac12)}{Gamma(alpha)},frac{Gamma(alpha+gamma)}{Gamma(alpha+gamma+tfrac12)},frac1{beta^gamma},f_{alpha+gamma,beta}(x).
$$
Since $displaystyleint f_{alpha+gamma,beta}=1$, this yields without any further computations that
$$
mathbb E(X^gamma)=int x^gamma f_{alpha,beta}(x)mathrm dx=frac{Gamma(alpha+tfrac12)}{Gamma(alpha)},frac{Gamma(alpha+gamma)}{Gamma(alpha+gamma+tfrac12)},frac1{beta^gamma}.
$$
Using this for $gamma=1$ and $gamma=2$, one gets
$$
mathbb E(X)=frac{alpha}{(alpha+tfrac12)},frac1beta,qquadmathbb E(X^2)=frac{alpha(alpha+1)}{(alpha+tfrac12)(alpha+tfrac32)},frac1{beta^2},
$$
from which the variance follows as
$$
mathrm{var}(X)=frac{alpha}{2(alpha+tfrac12)^2(alpha+tfrac32)},frac1{beta^2}.
$$
Note that $X=Y/beta$ where the distribution of $Y$ is Beta with parameters $(alpha,frac12)$, and an extended list of its properties is here.
$endgroup$
Let us take for granted that the function $f$ in the question, which we rewrite as $f_{alpha,beta}$, is a density function. In particular, $displaystyleint f_{alpha,beta}=1$ for every $alpha$ and $beta$. Now, for every $gamma$,
$$
x^gamma f_{alpha,beta}(x)=frac{Gamma(alpha+tfrac12)}{Gamma(alpha)},frac{Gamma(alpha+gamma)}{Gamma(alpha+gamma+tfrac12)},frac1{beta^gamma},f_{alpha+gamma,beta}(x).
$$
Since $displaystyleint f_{alpha+gamma,beta}=1$, this yields without any further computations that
$$
mathbb E(X^gamma)=int x^gamma f_{alpha,beta}(x)mathrm dx=frac{Gamma(alpha+tfrac12)}{Gamma(alpha)},frac{Gamma(alpha+gamma)}{Gamma(alpha+gamma+tfrac12)},frac1{beta^gamma}.
$$
Using this for $gamma=1$ and $gamma=2$, one gets
$$
mathbb E(X)=frac{alpha}{(alpha+tfrac12)},frac1beta,qquadmathbb E(X^2)=frac{alpha(alpha+1)}{(alpha+tfrac12)(alpha+tfrac32)},frac1{beta^2},
$$
from which the variance follows as
$$
mathrm{var}(X)=frac{alpha}{2(alpha+tfrac12)^2(alpha+tfrac32)},frac1{beta^2}.
$$
Note that $X=Y/beta$ where the distribution of $Y$ is Beta with parameters $(alpha,frac12)$, and an extended list of its properties is here.
edited Dec 2 '12 at 11:40
answered Dec 2 '12 at 11:35
DidDid
247k23223460
247k23223460
add a comment |
add a comment |
$begingroup$
With a change of variables and the integral for the Beta function, we get
$$
begin{align}
int_0^{1/beta}frac{x^{alpha-1}}{sqrt{1-beta x}},mathrm{d}x
&=beta^{-alpha}int_0^1u^{alpha-1}(1-u)^{-1/2},mathrm{d}u\
&=beta^{-alpha}frac{Gamma(alpha)sqrtpi}{Gamma(alpha+1/2)}tag{1}
end{align}
$$
Thus,
$$
f(x)=frac{beta^alpha}{sqrtpi}frac{Gamma(alpha+1/2)}{Gamma(alpha)}frac{x^{alpha-1}}{sqrt{1-beta x}}tag{2}
$$
has integral $1$. Using $(1)$, the expected value of $f(x)$ is
$$
begin{align}
&left.int_0^{1/beta}x,f(x),mathrm{d}x middle/int_0^{1/beta}f(x),mathrm{d}xright.\
&=left.int_0^{1/beta}frac{x^{alpha}}{sqrt{1-beta x}},mathrm{d}x middle/int_0^{1/beta}frac{x^{alpha-1}}{sqrt{1-beta x}},mathrm{d}xright.\
&=frac{alpha/beta}{alpha+1/2}tag{3}
end{align}
$$
$endgroup$
$begingroup$
Isn't all of this strictly included in answers posted 5 months ago?
$endgroup$
– Did
May 4 '13 at 8:36
1
$begingroup$
@Did: When I looked, it appeared that neither answer (nor the ad for mathStatica) showed that $f$ was a probability distribution. When I showed that, it was simple to extend to the complete answer, so I wrote the whole thing up. Now that I read your answer carefully, since you compute $left.int xf(x),mathrm{d}xmiddle/int f(x),mathrm{d}xright.$, it doesn't matter whether $f$ is a probability distribution. I think that this answer might be easier to follow, but if you think it is too close, I will remove it. It is not as if I think any of these answers is going to get any more votes.
$endgroup$
– robjohn♦
May 4 '13 at 10:56
add a comment |
$begingroup$
With a change of variables and the integral for the Beta function, we get
$$
begin{align}
int_0^{1/beta}frac{x^{alpha-1}}{sqrt{1-beta x}},mathrm{d}x
&=beta^{-alpha}int_0^1u^{alpha-1}(1-u)^{-1/2},mathrm{d}u\
&=beta^{-alpha}frac{Gamma(alpha)sqrtpi}{Gamma(alpha+1/2)}tag{1}
end{align}
$$
Thus,
$$
f(x)=frac{beta^alpha}{sqrtpi}frac{Gamma(alpha+1/2)}{Gamma(alpha)}frac{x^{alpha-1}}{sqrt{1-beta x}}tag{2}
$$
has integral $1$. Using $(1)$, the expected value of $f(x)$ is
$$
begin{align}
&left.int_0^{1/beta}x,f(x),mathrm{d}x middle/int_0^{1/beta}f(x),mathrm{d}xright.\
&=left.int_0^{1/beta}frac{x^{alpha}}{sqrt{1-beta x}},mathrm{d}x middle/int_0^{1/beta}frac{x^{alpha-1}}{sqrt{1-beta x}},mathrm{d}xright.\
&=frac{alpha/beta}{alpha+1/2}tag{3}
end{align}
$$
$endgroup$
$begingroup$
Isn't all of this strictly included in answers posted 5 months ago?
$endgroup$
– Did
May 4 '13 at 8:36
1
$begingroup$
@Did: When I looked, it appeared that neither answer (nor the ad for mathStatica) showed that $f$ was a probability distribution. When I showed that, it was simple to extend to the complete answer, so I wrote the whole thing up. Now that I read your answer carefully, since you compute $left.int xf(x),mathrm{d}xmiddle/int f(x),mathrm{d}xright.$, it doesn't matter whether $f$ is a probability distribution. I think that this answer might be easier to follow, but if you think it is too close, I will remove it. It is not as if I think any of these answers is going to get any more votes.
$endgroup$
– robjohn♦
May 4 '13 at 10:56
add a comment |
$begingroup$
With a change of variables and the integral for the Beta function, we get
$$
begin{align}
int_0^{1/beta}frac{x^{alpha-1}}{sqrt{1-beta x}},mathrm{d}x
&=beta^{-alpha}int_0^1u^{alpha-1}(1-u)^{-1/2},mathrm{d}u\
&=beta^{-alpha}frac{Gamma(alpha)sqrtpi}{Gamma(alpha+1/2)}tag{1}
end{align}
$$
Thus,
$$
f(x)=frac{beta^alpha}{sqrtpi}frac{Gamma(alpha+1/2)}{Gamma(alpha)}frac{x^{alpha-1}}{sqrt{1-beta x}}tag{2}
$$
has integral $1$. Using $(1)$, the expected value of $f(x)$ is
$$
begin{align}
&left.int_0^{1/beta}x,f(x),mathrm{d}x middle/int_0^{1/beta}f(x),mathrm{d}xright.\
&=left.int_0^{1/beta}frac{x^{alpha}}{sqrt{1-beta x}},mathrm{d}x middle/int_0^{1/beta}frac{x^{alpha-1}}{sqrt{1-beta x}},mathrm{d}xright.\
&=frac{alpha/beta}{alpha+1/2}tag{3}
end{align}
$$
$endgroup$
With a change of variables and the integral for the Beta function, we get
$$
begin{align}
int_0^{1/beta}frac{x^{alpha-1}}{sqrt{1-beta x}},mathrm{d}x
&=beta^{-alpha}int_0^1u^{alpha-1}(1-u)^{-1/2},mathrm{d}u\
&=beta^{-alpha}frac{Gamma(alpha)sqrtpi}{Gamma(alpha+1/2)}tag{1}
end{align}
$$
Thus,
$$
f(x)=frac{beta^alpha}{sqrtpi}frac{Gamma(alpha+1/2)}{Gamma(alpha)}frac{x^{alpha-1}}{sqrt{1-beta x}}tag{2}
$$
has integral $1$. Using $(1)$, the expected value of $f(x)$ is
$$
begin{align}
&left.int_0^{1/beta}x,f(x),mathrm{d}x middle/int_0^{1/beta}f(x),mathrm{d}xright.\
&=left.int_0^{1/beta}frac{x^{alpha}}{sqrt{1-beta x}},mathrm{d}x middle/int_0^{1/beta}frac{x^{alpha-1}}{sqrt{1-beta x}},mathrm{d}xright.\
&=frac{alpha/beta}{alpha+1/2}tag{3}
end{align}
$$
edited May 4 '13 at 8:13
answered May 4 '13 at 8:00
robjohn♦robjohn
267k27308631
267k27308631
$begingroup$
Isn't all of this strictly included in answers posted 5 months ago?
$endgroup$
– Did
May 4 '13 at 8:36
1
$begingroup$
@Did: When I looked, it appeared that neither answer (nor the ad for mathStatica) showed that $f$ was a probability distribution. When I showed that, it was simple to extend to the complete answer, so I wrote the whole thing up. Now that I read your answer carefully, since you compute $left.int xf(x),mathrm{d}xmiddle/int f(x),mathrm{d}xright.$, it doesn't matter whether $f$ is a probability distribution. I think that this answer might be easier to follow, but if you think it is too close, I will remove it. It is not as if I think any of these answers is going to get any more votes.
$endgroup$
– robjohn♦
May 4 '13 at 10:56
add a comment |
$begingroup$
Isn't all of this strictly included in answers posted 5 months ago?
$endgroup$
– Did
May 4 '13 at 8:36
1
$begingroup$
@Did: When I looked, it appeared that neither answer (nor the ad for mathStatica) showed that $f$ was a probability distribution. When I showed that, it was simple to extend to the complete answer, so I wrote the whole thing up. Now that I read your answer carefully, since you compute $left.int xf(x),mathrm{d}xmiddle/int f(x),mathrm{d}xright.$, it doesn't matter whether $f$ is a probability distribution. I think that this answer might be easier to follow, but if you think it is too close, I will remove it. It is not as if I think any of these answers is going to get any more votes.
$endgroup$
– robjohn♦
May 4 '13 at 10:56
$begingroup$
Isn't all of this strictly included in answers posted 5 months ago?
$endgroup$
– Did
May 4 '13 at 8:36
$begingroup$
Isn't all of this strictly included in answers posted 5 months ago?
$endgroup$
– Did
May 4 '13 at 8:36
1
1
$begingroup$
@Did: When I looked, it appeared that neither answer (nor the ad for mathStatica) showed that $f$ was a probability distribution. When I showed that, it was simple to extend to the complete answer, so I wrote the whole thing up. Now that I read your answer carefully, since you compute $left.int xf(x),mathrm{d}xmiddle/int f(x),mathrm{d}xright.$, it doesn't matter whether $f$ is a probability distribution. I think that this answer might be easier to follow, but if you think it is too close, I will remove it. It is not as if I think any of these answers is going to get any more votes.
$endgroup$
– robjohn♦
May 4 '13 at 10:56
$begingroup$
@Did: When I looked, it appeared that neither answer (nor the ad for mathStatica) showed that $f$ was a probability distribution. When I showed that, it was simple to extend to the complete answer, so I wrote the whole thing up. Now that I read your answer carefully, since you compute $left.int xf(x),mathrm{d}xmiddle/int f(x),mathrm{d}xright.$, it doesn't matter whether $f$ is a probability distribution. I think that this answer might be easier to follow, but if you think it is too close, I will remove it. It is not as if I think any of these answers is going to get any more votes.
$endgroup$
– robjohn♦
May 4 '13 at 10:56
add a comment |
$begingroup$
Given: $X$ has pdf $f(x)$:
Notwithstanding lots of elaborate calculations by others on this page, unfortunately, the pdf itself is not well-defined. The easiest way to see this is to simply calculate the cdf $P(X<x)$ for some arbitrary parameter values ... I am using the mathStatica / Mathematica combo here:
which does not integrate to unity for parameter $beta < 1$. For $beta > 1$, it appears complex.
A quick play suggests that it may be only well-defined for $beta = 1$ ... in which case the distribution is just a special case of the Beta distribution, namely: $X$ ~ $Beta(alpha, frac 12)$.
Addendum
In a commment below, 'Did' kindly confirms the above error ... and notes that the flaw is obvious (which is perhaps why it has taken 5 months for anyone to notice it, user 'Did' included). With the suggested change, all is now well:
The desired mean and variance are now simply obtained as:
$endgroup$
$begingroup$
This is quite off the mark! As "others on this page" saw readily, everything is correct in the OP, except the misprint on the range $0lt xltbeta$ which should (obviously!) read $0lt xlt1/beta$. As explained in an answer, $Y=beta X$ is a standard beta random variable, whether $betalt1$ or $beta=1$ or $betagt1$. Let me suggest that, from now on, you lead your advertisement campaign formathStatica
in more honest ways.
$endgroup$
– Did
May 3 '13 at 19:10
$begingroup$
"In a commment below, 'Did' kindly confirms the above error"... This is becoming rather pathetic. Say, I am not an expert in advertisement techniques but your stealth approach to promotemathStatica
on this site (your obvious motivation) might turn to be counter productive, in the end.
$endgroup$
– Did
May 3 '13 at 19:40
add a comment |
$begingroup$
Given: $X$ has pdf $f(x)$:
Notwithstanding lots of elaborate calculations by others on this page, unfortunately, the pdf itself is not well-defined. The easiest way to see this is to simply calculate the cdf $P(X<x)$ for some arbitrary parameter values ... I am using the mathStatica / Mathematica combo here:
which does not integrate to unity for parameter $beta < 1$. For $beta > 1$, it appears complex.
A quick play suggests that it may be only well-defined for $beta = 1$ ... in which case the distribution is just a special case of the Beta distribution, namely: $X$ ~ $Beta(alpha, frac 12)$.
Addendum
In a commment below, 'Did' kindly confirms the above error ... and notes that the flaw is obvious (which is perhaps why it has taken 5 months for anyone to notice it, user 'Did' included). With the suggested change, all is now well:
The desired mean and variance are now simply obtained as:
$endgroup$
$begingroup$
This is quite off the mark! As "others on this page" saw readily, everything is correct in the OP, except the misprint on the range $0lt xltbeta$ which should (obviously!) read $0lt xlt1/beta$. As explained in an answer, $Y=beta X$ is a standard beta random variable, whether $betalt1$ or $beta=1$ or $betagt1$. Let me suggest that, from now on, you lead your advertisement campaign formathStatica
in more honest ways.
$endgroup$
– Did
May 3 '13 at 19:10
$begingroup$
"In a commment below, 'Did' kindly confirms the above error"... This is becoming rather pathetic. Say, I am not an expert in advertisement techniques but your stealth approach to promotemathStatica
on this site (your obvious motivation) might turn to be counter productive, in the end.
$endgroup$
– Did
May 3 '13 at 19:40
add a comment |
$begingroup$
Given: $X$ has pdf $f(x)$:
Notwithstanding lots of elaborate calculations by others on this page, unfortunately, the pdf itself is not well-defined. The easiest way to see this is to simply calculate the cdf $P(X<x)$ for some arbitrary parameter values ... I am using the mathStatica / Mathematica combo here:
which does not integrate to unity for parameter $beta < 1$. For $beta > 1$, it appears complex.
A quick play suggests that it may be only well-defined for $beta = 1$ ... in which case the distribution is just a special case of the Beta distribution, namely: $X$ ~ $Beta(alpha, frac 12)$.
Addendum
In a commment below, 'Did' kindly confirms the above error ... and notes that the flaw is obvious (which is perhaps why it has taken 5 months for anyone to notice it, user 'Did' included). With the suggested change, all is now well:
The desired mean and variance are now simply obtained as:
$endgroup$
Given: $X$ has pdf $f(x)$:
Notwithstanding lots of elaborate calculations by others on this page, unfortunately, the pdf itself is not well-defined. The easiest way to see this is to simply calculate the cdf $P(X<x)$ for some arbitrary parameter values ... I am using the mathStatica / Mathematica combo here:
which does not integrate to unity for parameter $beta < 1$. For $beta > 1$, it appears complex.
A quick play suggests that it may be only well-defined for $beta = 1$ ... in which case the distribution is just a special case of the Beta distribution, namely: $X$ ~ $Beta(alpha, frac 12)$.
Addendum
In a commment below, 'Did' kindly confirms the above error ... and notes that the flaw is obvious (which is perhaps why it has taken 5 months for anyone to notice it, user 'Did' included). With the suggested change, all is now well:
The desired mean and variance are now simply obtained as:
edited Jan 14 at 18:18
Glorfindel
3,41981830
3,41981830
answered May 3 '13 at 16:16
wolfieswolfies
4,1892923
4,1892923
$begingroup$
This is quite off the mark! As "others on this page" saw readily, everything is correct in the OP, except the misprint on the range $0lt xltbeta$ which should (obviously!) read $0lt xlt1/beta$. As explained in an answer, $Y=beta X$ is a standard beta random variable, whether $betalt1$ or $beta=1$ or $betagt1$. Let me suggest that, from now on, you lead your advertisement campaign formathStatica
in more honest ways.
$endgroup$
– Did
May 3 '13 at 19:10
$begingroup$
"In a commment below, 'Did' kindly confirms the above error"... This is becoming rather pathetic. Say, I am not an expert in advertisement techniques but your stealth approach to promotemathStatica
on this site (your obvious motivation) might turn to be counter productive, in the end.
$endgroup$
– Did
May 3 '13 at 19:40
add a comment |
$begingroup$
This is quite off the mark! As "others on this page" saw readily, everything is correct in the OP, except the misprint on the range $0lt xltbeta$ which should (obviously!) read $0lt xlt1/beta$. As explained in an answer, $Y=beta X$ is a standard beta random variable, whether $betalt1$ or $beta=1$ or $betagt1$. Let me suggest that, from now on, you lead your advertisement campaign formathStatica
in more honest ways.
$endgroup$
– Did
May 3 '13 at 19:10
$begingroup$
"In a commment below, 'Did' kindly confirms the above error"... This is becoming rather pathetic. Say, I am not an expert in advertisement techniques but your stealth approach to promotemathStatica
on this site (your obvious motivation) might turn to be counter productive, in the end.
$endgroup$
– Did
May 3 '13 at 19:40
$begingroup$
This is quite off the mark! As "others on this page" saw readily, everything is correct in the OP, except the misprint on the range $0lt xltbeta$ which should (obviously!) read $0lt xlt1/beta$. As explained in an answer, $Y=beta X$ is a standard beta random variable, whether $betalt1$ or $beta=1$ or $betagt1$. Let me suggest that, from now on, you lead your advertisement campaign for
mathStatica
in more honest ways.$endgroup$
– Did
May 3 '13 at 19:10
$begingroup$
This is quite off the mark! As "others on this page" saw readily, everything is correct in the OP, except the misprint on the range $0lt xltbeta$ which should (obviously!) read $0lt xlt1/beta$. As explained in an answer, $Y=beta X$ is a standard beta random variable, whether $betalt1$ or $beta=1$ or $betagt1$. Let me suggest that, from now on, you lead your advertisement campaign for
mathStatica
in more honest ways.$endgroup$
– Did
May 3 '13 at 19:10
$begingroup$
"In a commment below, 'Did' kindly confirms the above error"... This is becoming rather pathetic. Say, I am not an expert in advertisement techniques but your stealth approach to promote
mathStatica
on this site (your obvious motivation) might turn to be counter productive, in the end.$endgroup$
– Did
May 3 '13 at 19:40
$begingroup$
"In a commment below, 'Did' kindly confirms the above error"... This is becoming rather pathetic. Say, I am not an expert in advertisement techniques but your stealth approach to promote
mathStatica
on this site (your obvious motivation) might turn to be counter productive, in the end.$endgroup$
– Did
May 3 '13 at 19:40
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%2f249103%2fexpected-value-for-fx-frac-gamma-alpha-frac12-gamma-alpha-f%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