How to use the pyglm.utils.utils.normal_pdf function in pyglm

To help you get started, we’ve selected a few pyglm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github slinderman / pyglm / pyglm / internals / distributions.py View on Github external
def expected_x(self):
        return self.mu + \
               np.sqrt(self.sigmasq) * (normal_pdf(self.zlb) - normal_pdf(self.zub))/self.Z
github slinderman / pyglm / pyglm / internals / distributions.py View on Github external
def variance_x(self):
        trm1 = (np.nan_to_num(self.zlb) * normal_pdf(self.zlb) -
                np.nan_to_num(self.zub) * normal_pdf(self.zub)) / self.Z
        trm2 = ((normal_pdf(self.zlb) - normal_pdf(self.zub)) / self.Z)**2
        return self.sigmasq * (1 + trm1 - trm2)
github slinderman / pyglm / pyglm / internals / distributions.py View on Github external
def variance_x(self):
        trm1 = (np.nan_to_num(self.zlb) * normal_pdf(self.zlb) -
                np.nan_to_num(self.zub) * normal_pdf(self.zub)) / self.Z
        trm2 = ((normal_pdf(self.zlb) - normal_pdf(self.zub)) / self.Z)**2
        return self.sigmasq * (1 + trm1 - trm2)