probability of belonging to a class if distribution of classes are known

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Consider a population of samples that depend on a variable $X$ and are distributed between one of 2 classes (e.g. Green and Red like this).



enter image description here



The probability density functions $p_G(x)$ and $p_R(x)$ for each of the 2 classes are known.



Given a value for $X=x$, what is the probability $P(G|X=x)$ or $P(R|X=x)$ that a sample belongs to one or the other class ?



From here, I suspect that: $$P(G|X=x) = fracp_G(x)p_G(x)+p_R(x)$$
But how can it be proved formally ?







share|cite|improve this question

















  • 2




    If initially before observing $x$ you had Red and Green being equally likely, then your result is an application of Bayes' theorem. Incidentally it is usual to write $X=x$ where $X$ is the random variable and $x$ the observed value, making your formula $mathbb P(Gmid X=x) = dfracp_G(x)p_G(x)+p_R(x)$
    – Henry
    Jul 26 at 0:22











  • Thank you, I have updated the notation, and your comment about Baye's theorem is indeed the answer.
    – guik
    Jul 26 at 9:14










  • As another minor comment, Thomas Bayes had Ss at the ends of his names
    – Henry
    Jul 26 at 9:36














up vote
0
down vote

favorite












Consider a population of samples that depend on a variable $X$ and are distributed between one of 2 classes (e.g. Green and Red like this).



enter image description here



The probability density functions $p_G(x)$ and $p_R(x)$ for each of the 2 classes are known.



Given a value for $X=x$, what is the probability $P(G|X=x)$ or $P(R|X=x)$ that a sample belongs to one or the other class ?



From here, I suspect that: $$P(G|X=x) = fracp_G(x)p_G(x)+p_R(x)$$
But how can it be proved formally ?







share|cite|improve this question

















  • 2




    If initially before observing $x$ you had Red and Green being equally likely, then your result is an application of Bayes' theorem. Incidentally it is usual to write $X=x$ where $X$ is the random variable and $x$ the observed value, making your formula $mathbb P(Gmid X=x) = dfracp_G(x)p_G(x)+p_R(x)$
    – Henry
    Jul 26 at 0:22











  • Thank you, I have updated the notation, and your comment about Baye's theorem is indeed the answer.
    – guik
    Jul 26 at 9:14










  • As another minor comment, Thomas Bayes had Ss at the ends of his names
    – Henry
    Jul 26 at 9:36












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Consider a population of samples that depend on a variable $X$ and are distributed between one of 2 classes (e.g. Green and Red like this).



enter image description here



The probability density functions $p_G(x)$ and $p_R(x)$ for each of the 2 classes are known.



Given a value for $X=x$, what is the probability $P(G|X=x)$ or $P(R|X=x)$ that a sample belongs to one or the other class ?



From here, I suspect that: $$P(G|X=x) = fracp_G(x)p_G(x)+p_R(x)$$
But how can it be proved formally ?







share|cite|improve this question













Consider a population of samples that depend on a variable $X$ and are distributed between one of 2 classes (e.g. Green and Red like this).



enter image description here



The probability density functions $p_G(x)$ and $p_R(x)$ for each of the 2 classes are known.



Given a value for $X=x$, what is the probability $P(G|X=x)$ or $P(R|X=x)$ that a sample belongs to one or the other class ?



From here, I suspect that: $$P(G|X=x) = fracp_G(x)p_G(x)+p_R(x)$$
But how can it be proved formally ?









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 26 at 9:10
























asked Jul 25 at 16:46









guik

11




11







  • 2




    If initially before observing $x$ you had Red and Green being equally likely, then your result is an application of Bayes' theorem. Incidentally it is usual to write $X=x$ where $X$ is the random variable and $x$ the observed value, making your formula $mathbb P(Gmid X=x) = dfracp_G(x)p_G(x)+p_R(x)$
    – Henry
    Jul 26 at 0:22











  • Thank you, I have updated the notation, and your comment about Baye's theorem is indeed the answer.
    – guik
    Jul 26 at 9:14










  • As another minor comment, Thomas Bayes had Ss at the ends of his names
    – Henry
    Jul 26 at 9:36












  • 2




    If initially before observing $x$ you had Red and Green being equally likely, then your result is an application of Bayes' theorem. Incidentally it is usual to write $X=x$ where $X$ is the random variable and $x$ the observed value, making your formula $mathbb P(Gmid X=x) = dfracp_G(x)p_G(x)+p_R(x)$
    – Henry
    Jul 26 at 0:22











  • Thank you, I have updated the notation, and your comment about Baye's theorem is indeed the answer.
    – guik
    Jul 26 at 9:14










  • As another minor comment, Thomas Bayes had Ss at the ends of his names
    – Henry
    Jul 26 at 9:36







2




2




If initially before observing $x$ you had Red and Green being equally likely, then your result is an application of Bayes' theorem. Incidentally it is usual to write $X=x$ where $X$ is the random variable and $x$ the observed value, making your formula $mathbb P(Gmid X=x) = dfracp_G(x)p_G(x)+p_R(x)$
– Henry
Jul 26 at 0:22





If initially before observing $x$ you had Red and Green being equally likely, then your result is an application of Bayes' theorem. Incidentally it is usual to write $X=x$ where $X$ is the random variable and $x$ the observed value, making your formula $mathbb P(Gmid X=x) = dfracp_G(x)p_G(x)+p_R(x)$
– Henry
Jul 26 at 0:22













Thank you, I have updated the notation, and your comment about Baye's theorem is indeed the answer.
– guik
Jul 26 at 9:14




Thank you, I have updated the notation, and your comment about Baye's theorem is indeed the answer.
– guik
Jul 26 at 9:14












As another minor comment, Thomas Bayes had Ss at the ends of his names
– Henry
Jul 26 at 9:36




As another minor comment, Thomas Bayes had Ss at the ends of his names
– Henry
Jul 26 at 9:36















active

oldest

votes











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: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f2862604%2fprobability-of-belonging-to-a-class-if-distribution-of-classes-are-known%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2862604%2fprobability-of-belonging-to-a-class-if-distribution-of-classes-are-known%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?