p.d.f of the absolute value of a normally distributed variable












9












$begingroup$


I came across this question as an exercise, had a brief idea, but didn't know how to proceed.



Let X ~ N(0, 1). What is the p.d.f of |X|?



I know the final p.d.f looks just like the right half of the original pdf, but extended vertically for a factor of 2.



Could someone please show mathematically what the p.d.f of variable |X| is going to be, and explain briefly? Thank you.










share|cite|improve this question









$endgroup$








  • 2




    $begingroup$
    Since the original distribution is symmetric about $0$, the density for positive values of the absolute value is double the density of the original random variable for the same value, while the density for negative values of the absolute value is $0$. This particular case is called a half-normal distribution
    $endgroup$
    – Henry
    Apr 23 '15 at 14:18












  • $begingroup$
    To add on to Henry's comment (which provides the intuition behind @calculus's answer): Remember that the PDF must have an area under the curve of $1$. Since the PDF of the normal distribution is symmetric around the $y$-axis, the area under the curve of the right half is only $1/2$, and therefore must be scaled up by a factor of $2$ to bring the area up to $1$.
    $endgroup$
    – Brian Tung
    Apr 24 '15 at 17:38










  • $begingroup$
    It's called Folded Normal Distribution. en.wikipedia.org/wiki/Folded_normal_distribution
    $endgroup$
    – Mr.M
    Nov 22 '16 at 9:49
















9












$begingroup$


I came across this question as an exercise, had a brief idea, but didn't know how to proceed.



Let X ~ N(0, 1). What is the p.d.f of |X|?



I know the final p.d.f looks just like the right half of the original pdf, but extended vertically for a factor of 2.



Could someone please show mathematically what the p.d.f of variable |X| is going to be, and explain briefly? Thank you.










share|cite|improve this question









$endgroup$








  • 2




    $begingroup$
    Since the original distribution is symmetric about $0$, the density for positive values of the absolute value is double the density of the original random variable for the same value, while the density for negative values of the absolute value is $0$. This particular case is called a half-normal distribution
    $endgroup$
    – Henry
    Apr 23 '15 at 14:18












  • $begingroup$
    To add on to Henry's comment (which provides the intuition behind @calculus's answer): Remember that the PDF must have an area under the curve of $1$. Since the PDF of the normal distribution is symmetric around the $y$-axis, the area under the curve of the right half is only $1/2$, and therefore must be scaled up by a factor of $2$ to bring the area up to $1$.
    $endgroup$
    – Brian Tung
    Apr 24 '15 at 17:38










  • $begingroup$
    It's called Folded Normal Distribution. en.wikipedia.org/wiki/Folded_normal_distribution
    $endgroup$
    – Mr.M
    Nov 22 '16 at 9:49














9












9








9


3



$begingroup$


I came across this question as an exercise, had a brief idea, but didn't know how to proceed.



Let X ~ N(0, 1). What is the p.d.f of |X|?



I know the final p.d.f looks just like the right half of the original pdf, but extended vertically for a factor of 2.



Could someone please show mathematically what the p.d.f of variable |X| is going to be, and explain briefly? Thank you.










share|cite|improve this question









$endgroup$




I came across this question as an exercise, had a brief idea, but didn't know how to proceed.



Let X ~ N(0, 1). What is the p.d.f of |X|?



I know the final p.d.f looks just like the right half of the original pdf, but extended vertically for a factor of 2.



Could someone please show mathematically what the p.d.f of variable |X| is going to be, and explain briefly? Thank you.







probability






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Apr 23 '15 at 14:14









Sam ShenSam Shen

210210




210210








  • 2




    $begingroup$
    Since the original distribution is symmetric about $0$, the density for positive values of the absolute value is double the density of the original random variable for the same value, while the density for negative values of the absolute value is $0$. This particular case is called a half-normal distribution
    $endgroup$
    – Henry
    Apr 23 '15 at 14:18












  • $begingroup$
    To add on to Henry's comment (which provides the intuition behind @calculus's answer): Remember that the PDF must have an area under the curve of $1$. Since the PDF of the normal distribution is symmetric around the $y$-axis, the area under the curve of the right half is only $1/2$, and therefore must be scaled up by a factor of $2$ to bring the area up to $1$.
    $endgroup$
    – Brian Tung
    Apr 24 '15 at 17:38










  • $begingroup$
    It's called Folded Normal Distribution. en.wikipedia.org/wiki/Folded_normal_distribution
    $endgroup$
    – Mr.M
    Nov 22 '16 at 9:49














  • 2




    $begingroup$
    Since the original distribution is symmetric about $0$, the density for positive values of the absolute value is double the density of the original random variable for the same value, while the density for negative values of the absolute value is $0$. This particular case is called a half-normal distribution
    $endgroup$
    – Henry
    Apr 23 '15 at 14:18












  • $begingroup$
    To add on to Henry's comment (which provides the intuition behind @calculus's answer): Remember that the PDF must have an area under the curve of $1$. Since the PDF of the normal distribution is symmetric around the $y$-axis, the area under the curve of the right half is only $1/2$, and therefore must be scaled up by a factor of $2$ to bring the area up to $1$.
    $endgroup$
    – Brian Tung
    Apr 24 '15 at 17:38










  • $begingroup$
    It's called Folded Normal Distribution. en.wikipedia.org/wiki/Folded_normal_distribution
    $endgroup$
    – Mr.M
    Nov 22 '16 at 9:49








2




2




$begingroup$
Since the original distribution is symmetric about $0$, the density for positive values of the absolute value is double the density of the original random variable for the same value, while the density for negative values of the absolute value is $0$. This particular case is called a half-normal distribution
$endgroup$
– Henry
Apr 23 '15 at 14:18






$begingroup$
Since the original distribution is symmetric about $0$, the density for positive values of the absolute value is double the density of the original random variable for the same value, while the density for negative values of the absolute value is $0$. This particular case is called a half-normal distribution
$endgroup$
– Henry
Apr 23 '15 at 14:18














$begingroup$
To add on to Henry's comment (which provides the intuition behind @calculus's answer): Remember that the PDF must have an area under the curve of $1$. Since the PDF of the normal distribution is symmetric around the $y$-axis, the area under the curve of the right half is only $1/2$, and therefore must be scaled up by a factor of $2$ to bring the area up to $1$.
$endgroup$
– Brian Tung
Apr 24 '15 at 17:38




$begingroup$
To add on to Henry's comment (which provides the intuition behind @calculus's answer): Remember that the PDF must have an area under the curve of $1$. Since the PDF of the normal distribution is symmetric around the $y$-axis, the area under the curve of the right half is only $1/2$, and therefore must be scaled up by a factor of $2$ to bring the area up to $1$.
$endgroup$
– Brian Tung
Apr 24 '15 at 17:38












$begingroup$
It's called Folded Normal Distribution. en.wikipedia.org/wiki/Folded_normal_distribution
$endgroup$
– Mr.M
Nov 22 '16 at 9:49




$begingroup$
It's called Folded Normal Distribution. en.wikipedia.org/wiki/Folded_normal_distribution
$endgroup$
– Mr.M
Nov 22 '16 at 9:49










1 Answer
1






active

oldest

votes


















6












$begingroup$

You can to take the cdf as a starting point.



$P(|X| leq x)=P(-x leq X leq x)$



$Xsim mathcal N(0,1)$



$=P(X leq x)-P(X leq -x)$



$=P(X leq x)-left[ 1-P(X leq x) right]$



$$=2 cdot P(X leq x)-1=2cdot F(x)-1=2 cdot lim_{a to -infty} int_{a}^x frac{1}{sqrt{2cdot Pi}}cdot e^{-frac{{(t-mu)}^2}{2 sigma ^2}} , dt-1$$



$F(x)-F(a)-1$



Differentiating :



$$frac{dF(x)}{dx}-frac{dF(a)}{dx}=2cdot f(x)-0-0=2cdot f(x)=2cdot frac{1}{sqrt{2cdot Pi}}cdot e^{-frac{{(x-mu)}^2}{2 sigma ^2}}$$



$-1$ and $F(a)$ are constants.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Pi $to$ pi.
    $endgroup$
    – Did
    Dec 5 '18 at 8:53













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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1248334%2fp-d-f-of-the-absolute-value-of-a-normally-distributed-variable%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









6












$begingroup$

You can to take the cdf as a starting point.



$P(|X| leq x)=P(-x leq X leq x)$



$Xsim mathcal N(0,1)$



$=P(X leq x)-P(X leq -x)$



$=P(X leq x)-left[ 1-P(X leq x) right]$



$$=2 cdot P(X leq x)-1=2cdot F(x)-1=2 cdot lim_{a to -infty} int_{a}^x frac{1}{sqrt{2cdot Pi}}cdot e^{-frac{{(t-mu)}^2}{2 sigma ^2}} , dt-1$$



$F(x)-F(a)-1$



Differentiating :



$$frac{dF(x)}{dx}-frac{dF(a)}{dx}=2cdot f(x)-0-0=2cdot f(x)=2cdot frac{1}{sqrt{2cdot Pi}}cdot e^{-frac{{(x-mu)}^2}{2 sigma ^2}}$$



$-1$ and $F(a)$ are constants.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Pi $to$ pi.
    $endgroup$
    – Did
    Dec 5 '18 at 8:53


















6












$begingroup$

You can to take the cdf as a starting point.



$P(|X| leq x)=P(-x leq X leq x)$



$Xsim mathcal N(0,1)$



$=P(X leq x)-P(X leq -x)$



$=P(X leq x)-left[ 1-P(X leq x) right]$



$$=2 cdot P(X leq x)-1=2cdot F(x)-1=2 cdot lim_{a to -infty} int_{a}^x frac{1}{sqrt{2cdot Pi}}cdot e^{-frac{{(t-mu)}^2}{2 sigma ^2}} , dt-1$$



$F(x)-F(a)-1$



Differentiating :



$$frac{dF(x)}{dx}-frac{dF(a)}{dx}=2cdot f(x)-0-0=2cdot f(x)=2cdot frac{1}{sqrt{2cdot Pi}}cdot e^{-frac{{(x-mu)}^2}{2 sigma ^2}}$$



$-1$ and $F(a)$ are constants.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Pi $to$ pi.
    $endgroup$
    – Did
    Dec 5 '18 at 8:53
















6












6








6





$begingroup$

You can to take the cdf as a starting point.



$P(|X| leq x)=P(-x leq X leq x)$



$Xsim mathcal N(0,1)$



$=P(X leq x)-P(X leq -x)$



$=P(X leq x)-left[ 1-P(X leq x) right]$



$$=2 cdot P(X leq x)-1=2cdot F(x)-1=2 cdot lim_{a to -infty} int_{a}^x frac{1}{sqrt{2cdot Pi}}cdot e^{-frac{{(t-mu)}^2}{2 sigma ^2}} , dt-1$$



$F(x)-F(a)-1$



Differentiating :



$$frac{dF(x)}{dx}-frac{dF(a)}{dx}=2cdot f(x)-0-0=2cdot f(x)=2cdot frac{1}{sqrt{2cdot Pi}}cdot e^{-frac{{(x-mu)}^2}{2 sigma ^2}}$$



$-1$ and $F(a)$ are constants.






share|cite|improve this answer











$endgroup$



You can to take the cdf as a starting point.



$P(|X| leq x)=P(-x leq X leq x)$



$Xsim mathcal N(0,1)$



$=P(X leq x)-P(X leq -x)$



$=P(X leq x)-left[ 1-P(X leq x) right]$



$$=2 cdot P(X leq x)-1=2cdot F(x)-1=2 cdot lim_{a to -infty} int_{a}^x frac{1}{sqrt{2cdot Pi}}cdot e^{-frac{{(t-mu)}^2}{2 sigma ^2}} , dt-1$$



$F(x)-F(a)-1$



Differentiating :



$$frac{dF(x)}{dx}-frac{dF(a)}{dx}=2cdot f(x)-0-0=2cdot f(x)=2cdot frac{1}{sqrt{2cdot Pi}}cdot e^{-frac{{(x-mu)}^2}{2 sigma ^2}}$$



$-1$ and $F(a)$ are constants.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Dec 5 '18 at 8:45









Community

1




1










answered Apr 23 '15 at 16:59









callculuscallculus

18k31427




18k31427








  • 1




    $begingroup$
    Pi $to$ pi.
    $endgroup$
    – Did
    Dec 5 '18 at 8:53
















  • 1




    $begingroup$
    Pi $to$ pi.
    $endgroup$
    – Did
    Dec 5 '18 at 8:53










1




1




$begingroup$
Pi $to$ pi.
$endgroup$
– Did
Dec 5 '18 at 8:53






$begingroup$
Pi $to$ pi.
$endgroup$
– Did
Dec 5 '18 at 8:53




















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1248334%2fp-d-f-of-the-absolute-value-of-a-normally-distributed-variable%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

Bundesstraße 106

Verónica Boquete

Ida-Boy-Ed-Garten