1.2.3-SNAPSHOT Arrow_down_16x16

censored-mean-upper

incanter.censored

  • (censored-mean-upper b mu sigma)
Returns the mean of a normal distribution (with mean mu and standard
deviation sigma) with the upper tail censored at 'b'

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/censored.clj:84 top

(defn censored-mean-upper
" Returns the mean of a normal distribution (with mean mu and standard
  deviation sigma) with the upper tail censored at 'b'
"
  ([b mu sigma]
   (let [b-std (psi b mu sigma)]
    (+ (* (cdf-normal b-std) (+ mu (* sigma (lambda-upper b-std))))
       (* (- 1 (cdf-normal b-std)) b)))))
Vars in incanter.censored/censored-mean-upper: * + - defn let
Used in 0 other vars

Comments top

No comments for censored-mean-upper. Log in to add a comment.