Easy web publishing from R
Write
R Markdown
documents in RStudio.
Share them here on RPubs.
(It’s free, and couldn’t be simpler!)
Get Started
Recently Published
Market Regime Detection using Hidden Markov Models
This research models the S&P 500’s underlying volatility states using a 2-State Hidden Markov Model (HMM). By assuming the market operates in hidden, non-stationary regimes, we can mathematically isolate periods of low-volatility “bull” markets from high-volatility “panic” phases without relying on lagging moving averages.
Three strategies are evaluated out-of-sample using a walk-forward framework:
Strategy A (Baseline): Hard binary switching with an expanding training window
Strategy B (Rolling Window): Hard binary switching with a fixed 3-year rolling training window, preventing over-indexing on historical crises
Strategy C (Soft Allocation): Probability-weighted exposure using the posterior normal-regime probability as a continuous position size, eliminating abrupt switches
Logistic Regression: Modelling Binary Outcomes
An introductory guide to logistic regression, covering intuition, model specification, estimation in R, and interpretation using the wage1 dataset from the wooldridge package.
Hiểu về đường cong ROC và AUC dưới giả định Binormal (phần II)
Tiếp nối phần I "Đường cong ROC và AUC trong đánh giá độ chính xác xét nghiệm chẩn đoán"