Skip to content

Commit bfb68cd

Browse files
committed
update version
1 parent e601ff4 commit bfb68cd

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

empfin/factor_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,12 +945,12 @@ def _run_unconditional_gibbs(self):
945945
ups_bar = ups.mean(axis=1).reshape(-1, 1)
946946
Sigma_ups = invwishart.rvs(
947947
df=self.t - 1,
948-
scale=ups @ ups.T - self.t * ups_bar @ ups_bar.T,
948+
scale=nearest_psd(ups @ ups.T - self.t * ups_bar @ ups_bar.T),
949949
)
950950

951951
mu_ups = multivariate_normal.rvs(
952952
mean=ups_bar.reshape(-1),
953-
cov=(1 / self.t) * Sigma_ups,
953+
cov=nearest_psd((1 / self.t) * Sigma_ups),
954954
).reshape(-1, 1)
955955

956956
# ----- STEP 4 -----

examples/msb_replication.ipynb

Lines changed: 23 additions & 23 deletions
Large diffs are not rendered by default.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
88
long_description = "\n" + fh.read()
99

10-
VERSION = '1.7'
10+
VERSION = '1.8'
1111
DESCRIPTION = 'Empirical Finance Tools'
1212

1313
# Setting up

0 commit comments

Comments
 (0)