Skip to main content
Druce.ai
About Projects Archive
  • Dec 17, 2022 politics 

    Kant, Nietzsche, Elon Musk, SBF, wokeness, and the categorical imperative

    I beseech you, in the bowels of Christ, think it possible you may be mistaken. - Oliver Cromwell

  • Nov 26, 2022 datascience 

    Time Series Analysis In Theory
    • A regular time series is a function from integers to real numbers: \(y_t = f(t)\).
    • Many useful time series can be specified using linear difference equations like \(y_t = k_1y_{t-1} + k_2y_{t-2} + \dots + k_ny_{t-n}\)
    • This recurrence relation has a characteristic equation (and matrix representation), whose roots (or matrix eigenvalues) can be used to write closed-form solutions like \(y_t=ax^t\).
    • Any time series combining exponential growth/decay and sinusoidal components can be modeled by a linear difference equation or its matrix representation.
    Figure 1.
    Fig. 1. Possible regimes for a 2nd-order linear difference equation with complex eigenvalues

  • May 16, 2022 datascience 

    How I learned to stop worrying and love PCA: The optimal threshold for PCA dimensionality reduction

    PCA is an essential data science tool which uses the SVD to break down the linear relationships in data. The Gavish-Donoho optimal truncation threshold provides a simple formula to select a good threshold for dimensionality reduction.

    Figure 1.
    Fig. 1. A random 2D data set with singular vectors scaled by singular values

  • Apr 16, 2022 blockchain  tech 

    Crypto systems, iron laws, and levels of resilience

    Meditating on practical open distributed computing, how to build un-take-down-able apps like Web3 but without permissionless blockchains.

  • Mar 29, 2021 datascience 

    The AI Hierarchy of Needs

    The perpetual challenge is building upper tiers before lower tiers are 100%, and strengthening lower tiers without breaking upper tiers. /assets/2021/pyramid.png

  • Feb 19, 2021 investing 

    Optimal Safe Withdrawal for Retirement Using Certainty-Equivalent Spending, Revisited

    Revisiting Bengen’s “4% Rule” at various levels of risk aversion, and generalizing beyond a simple fixed-withdrawal, no-shortfall rule, to flexible rules at different levels of risk aversion.

  • Jan 14, 2021 politics 

    What I would have written if I were Jack Dorsey

    “Our decision to permanently suspend Donald Trump from the Twitter platform, may be a major inflection point in Twitter’s history. As CEO, I owe our users and employees a clear statement of why we took this action and how this decision evolved, i.e. not just some pablum about what a hard decision and potentially dangerous decision it was.”

  • Dec 6, 2020 datascience  markets  investing 

    Demystifying Portfolio Optimization with Python and CVXOPT

    Efficient frontier

    Do you want to do fast and easy portfolio optimization with Python? Then CVXOPT, and this post, are for you! Here’s a gentle intro to portfolio theory and some code to get you started.

  • Oct 12, 2020 datascience 

    Beyond Grid Search: Using Hyperopt, Optuna, and Ray Tune to hypercharge hyperparameter tuning for XGBoost and LightGBM

    RandomizedSearch HPO vs. Bayesian HPO

    Bayesian optimization of machine learning model hyperparameters works faster and better than grid search. Here’s how we can speed up hyperparameter tuning using 1) Bayesian optimization with Hyperopt and Optuna, running on… 2) the Ray distributed machine learning framework, with a unified API to many hyperparameter search algos and early stopping schedulers, and… 3) a distributed cluster of cloud instances for even faster tuning.

  • Aug 27, 2020 datascience 

    Deploy a Microservice to AWS Elastic Container Service: The Harder Way and the Easier Way

    A while back I made this Pizza service weekend project and I thought I could just press a button in AWS and deploy it in the cloud. It turned out to be… more complicated. With the latest version of Docker it’s getting easier. Here’s the harder (old) way and the easier (new) way. After some configuration, you can just say docker compose up and your container is deployed.

  • Jul 20, 2020 datascience 

    Cookie Cutter Machine Learning with Docker

    A Docker configuration for machine learning

  • Jul 9, 2020 poker  books 

    The Biggest Bluff: She Stoops To Conquer

    The Biggest Bluff, by Maria Konnikova (cover art)

    I loved The Biggest Bluff: How I Learned to Pay Attention, Master Myself, and Win, by Maria Konnikova.

  • Feb 26, 2020 datascience  investing 

    Deep Reinforcement Learning For Trading Applications (Alpha Architect)

    Observing one reinforcement learning episode of stock trading

    Reinforcement learning is a machine learning paradigm that can learn behavior to achieve maximum reward in complex dynamic environments, as simple as Tic-Tac-Toe, or as complex as Go, and options trading. In this post, we will try to explain what reinforcement learning is, share code to apply it, and references to learn more about it. First, we’ll learn a simple algorithm to play Tic-Tac-Toe, then learn to trade a non-random price series. Finally, we’ll talk about how reinforcement learning can master complex financial concepts like option pricing and optimal diversification.

  • Jan 7, 2020 datascience  investing 

    Forecasting US Equity Market Returns with Machine Learning (Alpha Architect)

    Image source: https://www.valuewalk.com/wp-content/uploads/2017/07/SSRN-id2983860.pdf

    Shiller’s CAPE ratio is a popular and useful metric for measuring whether stock prices are overvalued or undervalued relative to earnings. Recently, Vanguard analysts Haifeng Wang, Harshdeep Singh Ahluwalia, Roger A. Aliaga-Díaz, and Joseph H. Davis have written a very interesting paper on forecasting equity returns using Shiller’s CAPE and machine learning: “The Best of Both Worlds: Forecasting US Equity Market Returns using a Hybrid Machine Learning – Time Series Approach“, which effectively applies machine learning to an import investing problem. Image source: Improving U.S. stock return forecasts: A “fair-value” CAPE approach, Joseph Davis, et al. (2017)

  • Oct 15, 2019 datascience 

    Understanding Classification Thresholds Using Isocurves

    Four isocurve plots

    As a data scientist, you might say…“A blog post about thresholds? It’s not even a data science problem, it’s more of a business decision.” And you would not be wrong! Threshold selection lacks the appeal of say, generative adversarial networks.

  • Sep 7, 2019 bitcoin  blockchain 

    Why Blockchain Is (Mostly) Useless
      Strong State
    Able to repress crypto
    Weak State
    Unable to repress crypto
    High trust society
    Low demand for crypto
    USA
    Europe
    Japan
    ??? Island paradises ???
    Polynesia?
    Bhutan?
    Low trust society
    High demand for crypto
    China
    North Korea
    Venezuela
    Somalia

    Cryptocurrencies are useless. They’re only used by speculators looking for quick riches, people who don’t like government-backed currencies, and criminals who want a black-market way to exchange money. - Bruce Schneier

  • Jun 7, 2019 economics 

    There ain't no such thing as a free option

    I would not give a fig for the simplicity this side of complexity, but I would give my life for the simplicity on the other side of complexity. - Oliver Wendell Holmes

  • Mar 31, 2019 tech 

    On the end of the StreetEYE experiment.

    The StreetEYE news aggregator experiment came to an end on 3/31/2019. Many thanks for supporting StreetEYE over the years!

  • Feb 4, 2019 economics  markets 

    How I learned to stop worrying and love quantitative tightening

    Many people are talking about ‘quantitative tightening’ and ‘balance sheet reduction’, and some people are blaming it for market volatility, discussed here, here, here. IMHO, blaming balance sheet reduction for market volatility is cargo cult mumbo jumbo.

  • Jan 5, 2019 fintwit 

    The Top 100 People To Follow For Financial News On Twitter, January 2019

    It’s been more than a year since we posted our last list of people to follow on Twitter for financial news. Time for an update!

← Newer Posts Page 2 of 9 Older Posts →
2025 © Druce Vertes | Archive | Contact