¿Cómo funciona una parcela en el set de parámetros región de ecuaciones usando el r?. Mi problema es que tengo una ecuación con 2 variables definidas por g(x,a,b)=0 y quiero graficar el conjunto de (a,b) cuando la solución existe.
El ejemplo concreto que me interesa es la siguiente:
(F(x)−a)f2(x)+(F2(x)2−aF(x)+(a22+b))f′(x)=0.
where F is the cumulative function of a normal distribution of mean=0 and sd=1, f the density function of the normal, and f′ is the first derivative of f.
My goal is to construct the region (surface) S where
S={(a,b)∈[0,1]2 | a solution x of the equation exists and belongs to [0,1]}.
E<-function(a,u) {
((a-u)*(dnorm(q(u),m,s, log = FALSE))/(qnorm(u)))-((qnorm(u))^2)/2 +a*qnorm(u)-(a^2)/2
}
a <- u <- seq(0,1,0.01)
z <- outer(a,u,E)
b<-seq(0,1,0.001)
contour( x=a, y=a, z=z,levels=b, las=1, drawlabels=FALSE, lwd=3,xlab="a", ylab="x")
Please help me here. I hope this can teach me more. Thanks in advance.
Thanks, this is exactly what I was looking for. But I have 2 remarks or comments : Remark 1 : I made a mistake u=F(x)∈[0,1] but x=N(0,1) so x is not restricted in [0,1]. Por lo tanto, es posible proponer que el código que se utiliza en Mathematica tal que yo pueda tratar de adaptarla.
Observación 2 : me hizo también una simulación usando Mathematica y me sale la imagen en 3D de mi ecuación, pero no fue posible obtener la proyección para obtener S. Este es el código que he usado :
f[u_] := Quantile[NormalDistribution[0, 1], u]
g[u_]:=PDF[NormalDistribution[0,1],f[u]]
h[u_, a_, e_] := (u - a)*((g[u])^2) + ((u^2)/2 - a*u + (a^2)/2 + e)*f[u]*g[u]
ContourPlot3D[h[u, a, e] == 0, {a, 0, 1}, {u, 0, 1}, {e, 0, 1}]
Luego me sale esta imagen :
Entonces, ¿hay forma de obtener la proyección de esta imagen.