I need to calculate this simple integral below:
Thisisthestandardnormalizedquantilfunction,whereweknowfromthefrontthat,q_0.5(z)=0
,forexample.
Thatis,foreachtheta(percentile)itgivesmeanumberinstandardizednormaldensity.Thetagoesfrom0to1.
IgeneratedthisfunctioninRandorganizeditintoanarray:
thau=1:99/100qnorm(thau,0,1)matrix=matrix(0,99,2)matrix[,1]=thaumatrix[,2]=qnorm(thau,0,1)colnames(mattrix)=c("theta","q(z)")
How do I calculate this interal in R, given that I already have the function q ??
I thought of calculating the two integrals using the basic rules of integral. Can I do this for this function? I think I can.
Would it be correct? For me it gave -1.170456
.
I would love your help.
Thank you.