TransfTwo_gen.fit_loc_scale()

statsmodels.sandbox.distributions.transformed.TransfTwo_gen.fit_loc_scale TransfTwo_gen.fit_loc_scale(data, *args) Estimate loc and scale parameters from data using 1st and 2nd moments. Parameters: data : array_like Data to fit. arg1, arg2, arg3,... : array_like The shape parameter(s) for the distribution (see docstring of the instance object for more information). Returns: Lhat : float Estimated location parameter for the data. Shat : float Estimated scale parameter for the data.

TransfTwo_gen.fit()

statsmodels.sandbox.distributions.transformed.TransfTwo_gen.fit TransfTwo_gen.fit(data, *args, **kwds) Return MLEs for shape, location, and scale parameters from data. MLE stands for Maximum Likelihood Estimate. Starting estimates for the fit are given by input arguments; for any arguments not provided with starting estimates, self._fitstart(data) is called to generate such. One can hold some parameters fixed to specific values by passing in keyword arguments f0, f1, ..., fn (for shape param

TransfTwo_gen.expect()

statsmodels.sandbox.distributions.transformed.TransfTwo_gen.expect TransfTwo_gen.expect(func=None, args=(), loc=0, scale=1, lb=None, ub=None, conditional=False, **kwds) Calculate expected value of a function with respect to the distribution. The expected value of a function f(x) with respect to a distribution dist is defined as: ubound E[x] = Integral(f(x) * dist.pdf(x)) lbound Parameters: func : callable, optional Function for which integral is calculated. Takes only one

TransfTwo_gen.est_loc_scale()

statsmodels.sandbox.distributions.transformed.TransfTwo_gen.est_loc_scale TransfTwo_gen.est_loc_scale(*args, **kwds) est_loc_scale is deprecated! This function is deprecated, use self.fit_loc_scale(data) instead.

TransfTwo_gen.entropy()

statsmodels.sandbox.distributions.transformed.TransfTwo_gen.entropy TransfTwo_gen.entropy(*args, **kwds) Differential entropy of the RV. Parameters: arg1, arg2, arg3,... : array_like The shape parameter(s) for the distribution (see docstring of the instance object for more information). loc : array_like, optional Location parameter (default=0). scale : array_like, optional Scale parameter (default=1).

TransfTwo_gen.cdf()

statsmodels.sandbox.distributions.transformed.TransfTwo_gen.cdf TransfTwo_gen.cdf(x, *args, **kwds) Cumulative distribution function of the given RV. Parameters: x : array_like quantiles arg1, arg2, arg3,... : array_like The shape parameter(s) for the distribution (see docstring of the instance object for more information) loc : array_like, optional location parameter (default=0) scale : array_like, optional scale parameter (default=1) Returns: cdf : ndarray Cumulative distributi

tools.tools.unsqueeze()

statsmodels.tools.tools.unsqueeze statsmodels.tools.tools.unsqueeze(data, axis, oldshape) [source] Unsqueeze a collapsed array >>> from numpy import mean >>> from numpy.random import standard_normal >>> x = standard_normal((3,4,5)) >>> m = mean(x, axis=1) >>> m.shape (3, 5) >>> m = unsqueeze(m, 1, x.shape) >>> m.shape (3, 1, 5) >>>

tools.tools.recipr0()

statsmodels.tools.tools.recipr0 statsmodels.tools.tools.recipr0(X) [source] Return the reciprocal of an array, setting all entries equal to 0 as 0. It does not assume that X should be positive in general.

tools.tools.recipr()

statsmodels.tools.tools.recipr statsmodels.tools.tools.recipr(X) [source] Return the reciprocal of an array, setting all entries less than or equal to 0 to 0. Therefore, it presumes that X should be positive in general.

tools.tools.rank()

statsmodels.tools.tools.rank statsmodels.tools.tools.rank(X, cond=1e-12) [source] Return the rank of a matrix X based on its generalized inverse, not the SVD.