[R] Overlapping areas under normal distributions

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Jun 27 09:05:04 CEST 2011



On 26.06.2011 13:36, scaramouch wrote:
> Hi everyone.
>
> My problem: I've 4 distributions: A, B, C and D:
>
> #A
> mA=16.6
> sA=3.0
>
> #B
> mB=18.9
> sB=3.2
>
> #C
> mC=20.3
> sC=2.1
>
> #D
> mD=24
> sD=0.8
>
> ###Graphiques ensembles
> plot(function(x) dnorm(x,mA,sA),0,40,col="orange",ylim=c(0,0.5))
> plot(function(x) dnorm(x,mB,sB),0,40,add=T,col="green")
> plot(function(x) dnorm(x,mC,sC),0,40,add=T,col="blue")
> plot(function(x) dnorm(x,mD,sD),0,40,add=T,col="red")
>
> Now I've a fifth distribution X
> #X
> mX=23
> sX=0.7
> plot(function(x) dnorm(x,mX,sX),0,40,add=T,col="black")
>
> And I would like to know the area of the overlapping of the curve of X with
> the curves of A, B, C and D (in %).
>
> How can I do that?

Integrate over the differences?

Uwe Ligges



> Thank you very much,
> Kindly regards, Scaramouch
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Overlapping-areas-under-normal-distributions-tp3625807p3625807.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list