There are several reasons why probabilistic machine learning represents the next-generation ML framework and technology for finance and investing. This generative ensemble learns continually from small and noisy financial datasets while seamlessly enabling probabilistic inference, retrodiction, prediction, and counterfactual reasoning. Probabilistic ML also lets you systematically encode personal, empirical, and institutional knowledge into ML models.
Whether they're based on academic theories or ML strategies, all financial models are subject to modeling errors that can be mitigated but not eliminated. Probabilistic ML systems treat uncertainties and errors of financial and investing systems as features, not bugs. And they quantify uncertainty generated from inexact inputs and outputs as probability distributions, not point estimates. This makes for realistic financial inferences and predictions that are useful for decision-making and risk management.
Unlike conventional AI, these systems are capable of warning us when their inferences and predictions are no longer useful in the current market environment. By moving away from flawed statistical methodologies and a restrictive conventional view of probability as a limiting frequency, you'll move toward an intuitive view of probability as logic within an axiomatic statistical framework that comprehensively and successfully quantifies uncertainty. This book shows you how.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
# Probabilistic Machine Learning for Finance and Investing: A Primer to Generative AI with Python
## 【One-Line Pitch】
A practical guide for quantitative analysts, traders, and finance professionals who want to move beyond conventional machine learning and frequentist statistics toward a probabilistic, generative framework that quantifies uncertainty as probability distributions—not point estimates—for more realistic financial inference, prediction, and risk management.
## 【Book Arc】
- **Opening (~0%–9%)**: Establishes the core thesis—all financial models are wrong but some are useful—and argues that probabilistic ML treats uncertainty and modeling errors as features, not bugs. Introduces the need for a new framework that learns continually from small, noisy datasets and can warn when predictions become unreliable.
- **Early (~9%–25%)**: Diagnoses the failures of conventional financial models, including the flawed assumption of Gaussian return distributions, the problem of non-stationary and non-ergodic markets, and the inadequacy of p-values and confidence intervals for parameter inference. Contrasts discriminative models (which only learn decision boundaries) with generative models (which learn the full data distribution).
- **Early (~25%–34%)**: Introduces the epistemic view of probability as logic, rejecting the frequentist interpretation and the risk/uncertainty distinction. Uses the Monty Hall problem as a worked example to demonstrate how the inverse probability rule (Bayes's theorem) updates beliefs dynamically based on new information.
- **Middle (~34%–47%)**: Deepens the probability-as-logic framework, showing how epistemic probabilities are dynamic mental constructs that encompass frequentist probabilities as a special case. Argues that in finance, where markets are not stationary ergodic, the frequentist approach is practically useless, and practitioners must rely on subjective, proprietary models—citing Edward Thorp's options pricing model as a case study.
- **Middle (~47%–53%+)**: Continues into practical applications, covering capital preservation, ergodicity, generative Value at Risk, expected shortfall, tail risk, capital allocation, gambler's ruin, modern portfolio theory, and the Kelly criterion—all reframed through a probabilistic lens.
## 【Key Takeaways】
- **All models are wrong, but probabilistic ML makes them useful** (Opening): By quantifying uncertainty as probability distributions rather than point estimates, probabilistic systems provide realistic inferences that support decision-making and risk management, even when models are approximate.
- **Fat-tailed returns break Gaussian assumptions** (Early): Stocks, bonds, currencies, and commodities exhibit extreme events far more frequently than the normal distribution predicts—Black Monday, the LTCM collapse, and flash crashes would be near-impossible under Gaussian assumptions. This motivates the need for probabilistic frameworks that handle non-Gaussian structure.
- **Markets are not stationary ergodic** (Early): Statistical moments like mean and variance computed from historical data do not reliably predict future moments because the underlying data-generating process changes over time—sometimes abruptly. Models must adapt to evolving market regimes.
- **Generative models outperform discriminative models for uncertainty** (Early): Discriminative models only learn decision boundaries and cannot simulate new data or quantify total output uncertainty. Generative models learn the statistical structure of the data distribution, enabling simulation, missing data generation, and two-dimensional output uncertainty (data variability + parameter uncertainty).
- **Probability is logic, not limiting frequency** (Middle): The epistemic view treats probability as a measure of plausibility given current knowledge, updated via the inverse probability rule. This encompasses frequentist probability as a special case but works without repeated trials—essential for finance where events are often unique and non-repeatable.
- **The risk/uncertainty distinction is useless in practice** (Middle): Since markets are not stationary ergodic and participants use different models, almost all investing is "uncertain" under conventional definitions. Practitioners should embrace subjective, knowledge-encoded models rather than pretend objectivity.
- **Bayesian inversion is now computationally tractable** (Early): Hamiltonian Monte Carlo and automatic differentiation variational inference have solved the normalizing constant problem, enabling parameter estimation and credible intervals for almost any real-world problem—a key enabler for probabilistic ML in finance.
## 【Reading Tips】
- **Skim the Preface and Chapter 1** for the philosophical motivation and the critique of conventional finance—this frames why probabilistic ML matters, but the technical details come later.
- **Deep-read Chapter 2** on the Monty Hall problem and the inverse probability rule: this is the conceptual foundation for everything that follows, and the worked example makes the math intuitive.
- **Pay attention to the Python data analysis sections** (mentioned in Chapter 1, detailed in Chapters 3–4) that demonstrate non-Gaussian return distributions—these are the empirical evidence for the book's core argument.
- **Expect a mix of theory and practice**: the book moves from probability foundations to generative models to risk management applications (VaR, expected shortfall, Kelly criterion), so be prepared to connect conceptual arguments with quantitative tools.
- **If you're new to Bayesian methods**, focus on the epistemic probability discussion and the Monty Hall example before diving into the computational algorithms—the conceptual shift is more important than the math.
## 【Coverage Limits】
This guide is based on excerpts covering roughly the first half of the book (through ~53%). The later sections on generative VaR, capital allocation, and the Kelly criterion are mentioned in the table of contents but not covered in detail here.
##
Page 10
e| X, Y) 160 Assembling PLEs with PyMC and ArviZ 161 Define Ensemble Performance Metrics 162 Analyze Data and Engineer Features 164 Develop and Retrodict Pri...
rating stochastic process may vary over time—i.e., the pro‐ cess is not stationary ergodic. This implies that statistical moments of the distribu‐ tion, like...
ought, the frequentist and epistemic views of prob‐ ability. We find the conventional view of probability, the freque ntist version, to be a special case of...
es of chance, where event risks can be estimated accurately. As was discussed in the previous chapter, unknown market participants may use different probabil...
correla‐ tions to predict future price changes of the asset. Technical investing and trading strategies assume that historical price and volume patterns and...
tment of similar risk. The model is set up in four steps: 1. Forecast the expected free cash flows (FCFs) of the project for each of the N periods. 2. Estima...
cific data sample. The three types of errors using CIs are: • Making probabilistic claims about population parameters • Making probabilistic claims about a s...
also throw any social or economic study that uses NHST, p- values, or confidence intervals in the trash, where junk belongs and should not be recycled. 15 “K...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Probabilistic Machine Learning for Finance and Investing A Primer to Generative AI with Python (Deepak K. Kanungo)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Probabilistic Machine Learning for Finance and Investing A Primer to Generative AI with Python (Deepak K. Kanungo)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment