![]() |
StarVine
|
Regular vine base class. More...
Public Member Functions | |
| def | __init__ (self, data=None, weights=None) |
| def | loadVineStructure (self, vS) |
| Load saved vine structure. | |
| def | vineNLLH (self, vineParams=[None], kwargs) |
| Compute the vine negative log likelyhood. More... | |
| def | sfitMLE (self, kwargs) |
| Simulataneously estimate all copula paramters in the vine by MLE. More... | |
| def | treeHfun (self, level=0) |
| Operates on a tree, T_(i). More... | |
| def | sample (self, n=1000) |
| Draws n samples from the vine. More... | |
| def | plotVine (self, plotAll=True, savefig=None) |
| Plots the vine's graph structure. More... | |
Public Attributes | |
| nLLH | |
| vineParams | |
| vineParamsMap | |
| fittedParams | |
Private Member Functions | |
| def | _initVineParams (self) |
Regular vine base class.
| def starvine.vine.base_vine.BaseVine.plotVine | ( | self, | |
plotAll = True, |
|||
savefig = None |
|||
| ) |
Plots the vine's graph structure.
| plotAll | (optional) Plot the entire vine structure |
| savefig | (optional) filename of output image. |
| def starvine.vine.base_vine.BaseVine.sample | ( | self, | |
n = 1000 |
|||
| ) |
Draws n samples from the vine.
| def starvine.vine.base_vine.BaseVine.sfitMLE | ( | self, | |
| kwargs | |||
| ) |
Simulataneously estimate all copula paramters in the vine by MLE.
Uses SLSQP method by default.
| def starvine.vine.base_vine.BaseVine.treeHfun | ( | self, | |
level = 0 |
|||
| ) |
Operates on a tree, T_(i).
The conditional distribution is evaluated at each edge in the tree providing univariate distributions that populate the dataFrame in the tree level T_(i+1)
| def starvine.vine.base_vine.BaseVine.vineNLLH | ( | self, | |
vineParams = [None], |
|||
| kwargs | |||
| ) |
Compute the vine negative log likelyhood.
Used for simulatneous MLE estimation of PCC model parameters. Loops through all tree levels and sums all NLL.
| vineParams | np_array Flattened array of all copula parametrs in vine |