4Cast Lab: Open-Source App for Machine Learning and Statistical Analysis
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Quantitative Finance. The day in quantitative finance: models of markets, risk and prices.
Ruth: We're looking at the paper: "4Cast Lab: Open-Source App for Machine Learning and Statistical Analysis".
Paper summary: Ruth: So we’ve covered the details of 4Cast Lab, which is this free application for machine learning and statistical analysis that runs locally on your computer pg1 <ref:2610.16800#pg1,and statistical analysis that runs>. We looked at how it handles forecasting mode with its eight algorithms and estimation mode with all those applied econometrics models pg1.
Warren: And we saw how they structured the workflow to be very systematic, from data import right through to documented, tested models where reproducibility is built in with session files and scripts pg3.
Iris: The main point for me is how they’ve tried to build a user experience that guides people toward results that would survive scrutiny from reviewers pg2.
Ruth: It seems like the authors are focused on making sure that when you run these models, you’re not just getting some output, but a full report and script that lets you replay everything with confidence pg3.
Warren: So what does this mean for the broader community? It suggests a way for researchers who aren't deep programmers to get access to rigorous modeling without having to manually implement every single piece of the puzzle from scratch pg1.
Iris: And it’s about providing a standardized, open-source framework that lets you compare your model against known benchmarks and established software like statsmodels or arch pg2.
Ruth: It’s really about making the process of statistical analysis more accessible by taking the heavy lifting out of the user's hands so they can spend more time on their economic questions pg1.
Warren: And this whole project, 4Cast Lab, is designed to be a self-contained environment that manages all those technical details for you, so you just focus on the modeling choices themselves pg2 <ref:2610.16800#pg1>.
Conclusion: Ruth: So we've been looking at how 4Cast Lab lets you do machine learning and econometrics right on your own computer pg1 <ref:2610.16800#pg1>.
Warren: And they built this whole system to be version four point six point two, a specific release, that they validated against a bunch of other established software like statsmodels and scikit-learn pg2.
Iris: The paper is really focused on showing off the design and the workflow so that if you follow their default settings, you get results that would survive questions from a referee pg2.
Ruth: It sounds like the core idea here is making a complex modeling process very transparent and reproducible for anyone who needs to do serious statistical work pg1.
Warren: They show how model selection is kept separate from the evaluation part so you don't mess up your testing by accidentally choosing a better model during validation pg5.
Iris: And they have these examples in section five that actually show you exactly what the software reports and how to read it in plain words pg2.
Ruth: It’s about giving researchers a solid foundation so they can trust the output and focus on their economic questions instead of debugging code pg1.
Warren: This whole approach means anyone can get access to these kinds of advanced analyses without needing to spend all that time writing every single line of implementation from scratch pg1.
Iris: The implication is a standardized way to do applied econometrics, covering things like OLS and ARIMA, which they test against established benchmarks pg6.
Ruth: So it’s less about inventing new math and more about creating a reliable tool that helps us use the existing tools in a much smarter way for our research needs pg2.
Warren: It sets up a pretty high bar for what an open-source statistical application should look like, which is something we'll be looking at next on how these kinds of tools affect the actual speed of trading strategies.
Department of Economics, Democritus University of Thrace
q-fin.CP
Submitted: 2026-10-12
Updated: 2026-11-27
Comments: 38 pages. Published version, open access under CC BY. Describes version 6.1.1 of the application. Software: https://github.com/PerryGogas/4Cast-Lab
Journal ref: Forecasting 2026, 8(6), 115
Code: https://github.com/PerryGogas/4Cast-Lab
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 89/100
The gist: 4Cast Lab is a free, open-source application for machine learning, econometrics and statistical analysis that runs on the user's own computer.<ref:2610.16800#pg1, no installation…
Key concepts
- Forecasting Mode
- This mode trains eight different learning algorithms from scratch using leakage-safe validation for time-ordered data. It selects the best model by comparing it against alternatives and naive benchmarks through formal tests of predictive accuracy, ensuring reliable predictions.
- Estimation Mode
- This mode addresses core applied econometrics, covering methods like Ordinary Least Squares (OLS) with robust inference, ARIMA models, ARDL, VAR/VECM structures, and GARCH. It allows users to perform standard econometric analyses directly within the application.
- Leakage-Safe Validation
- A crucial technique used in Forecasting mode for time-ordered data. It ensures that model training only uses information available *before* the prediction point, preventing lookahead bias and guaranteeing that the selected models are truly predictive.
- Reproducibility Features
- The application supports saving analysis runs as session files (.4cl) and exporting results as Python scripts using pandas and scikit-learn. This allows users to save their exact workflow, ensuring that any result can be recreated precisely.
Terminology
Summary
4Cast Lab is a free, open-source application for machine learning, econometrics and statistical analysis that runs on the user's own computer.<ref:2610.16800#pg1, no installation, no programming and no data leaving the machine>. p. 0 1
4Cast Lab: Open-Source App for
Machine Learning & Statistical Analysis
Periklis Gogas
Department of Economics
Democritus University of Thrace
Komotini 69100, Greece
pgkogkas@econ. gr
October 2026
Abstract
4Cast Lab is a free, open-source application for machine learning, econometrics and statistical
analysis that runs on the user's own computer, with no installation, no programming and no data
leaving the machine. gr
October 2026
Abstract
4Cast Lab is a free, open-source application for machine learning, econometrics and statistical
analysis that runs on the user's own computer, with no installation, no programming and no data
leaving the machine. It was developed at the E|M|E|F Lab, Department of Economics, Democritus
University of Thrace, for researchers, analysts, instructors and students in any field. It was developed at the E|M|E|F Lab, Department of Economics, Democritus
University of Thrace, for researchers, analysts, instructors and students in any field. Its Forecasting
mode trains eight learning algorithms (with three kernels for SVM/SVR), implemented from
scratch, under leakage-safe validation for time-ordered data; it selects models by cross-validation,
compares the selected model with every alternative and with naive benchmarks through formal
tests of predictive accuracy, and documents each run in a methods report and a Python script that
the user can export. Its Forecasting
mode trains eight learning algorithms (with three kernels for SVM/SVR), implemented from
scratch, under leakage-safe validation for time-ordered data; it selects models by cross-validation,
compares the selected model with every alternative and with naive benchmarks through formal
tests of predictive accuracy, and documents each run in a methods report and a Python script that
the user can export. Its Estimation mode covers the core of applied econometrics, from OLS with
robust inference to ARIMA, ARDL, VAR/VECM and GARCH. Its Estimation mode covers the core of applied econometrics, from OLS with
robust inference to ARIMA, ARDL, VAR/VECM and GARCH. This paper describes the design,
the interface and the workflow of version 4. This paper describes the design,
the interface and the workflow of version 4. 2, reports a validation of 1,234 numerical results
against statsmodels, linearmodels, arch, scikit-learn and NIST certified values, illustrates the
workflow with three examples, and discusses current limitations. It reports a systematic validation of the numerical results against established reference
software (Section 4) which is a precondition for using any program in theses and published
research. Finally, it illustrates the workflow with three examples that show what the software
reports and how to read it (Section 5). Its defaults follow the forecasting literature rather than generic machine
learning practice: time-ordered splits, selection by cross-validation, benchmarks against naive
forecasts, and significance tests of predictive accuracy. The aim is that a user who follows the
defaults produces results that would survive a referee's first questions. The paper makes three contributions. It describes the design and interface of the software (Sections
2 and 3). It describes the design and interface of the software (Sections
2 and 3). It reports a systematic validation of the numerical results against established reference
software (Section 4) which is a precondition for using any program in theses and published
research. It reports a systematic validation of the numerical results against established reference
software (Section 4) which is a precondition for using any program in theses and published
research. Finally, it illustrates the workflow with three examples that show what the software
reports and how to read it (Section 5). 1
4Cast Lab: Open-Source App for
Machine Learning & Statistical Analysis
Periklis Gogas
Department of Economics
Democritus University of Thrace
Komotini 69100, Greece
pgkogkas@econ. gr
October 2026
Abstract
4Cast Lab is a free, open-source application for machine learning, econometrics and statistical
analysis that runs on the user's own computer, with no installation, no programming and no data
leaving the machine. 1
4Cast Lab: Open-Source App for
Machine Learning & Statistical Analysis
Periklis Gogas
Department of Economics
Democritus University of Thrace
Komotini 69100, Greece
pgkogkas@econ. gr
October 2026
Abstract
4Cast Lab is a free, open-source application for machine learning, econometrics and statistical
analysis that runs on the user's own computer, with no installation, no programming and no data
leaving the machine. 1
4Cast Lab: Open-Source App for
Machine Learning & Statistical Analysis
Periklis Gogas
Department of Economics
Democritus University of Thrace
Komotini 69100, Greece
pgkogkas@econ. gr
October 2026
Abstract
4Cast Lab is a free, open-source application for machine learning, econometrics and statistical
analysis that runs on the user's own computer, with no installation, no programming and no data
leaving the machine. 1
4Cast Lab: Open-Source App for
Machine Learning & Statistical Analysis
Periklis Gogas
Department of Economics
Democritus University of Thrace
Komotini 69100, Greece
pgkogkas@econ. gr
October 2026
Abstract
4Cast Lab is a free, open-source application for machine learning, econometrics and statistical
analysis that runs on the user's own computer, with no installation, no programming and no data
leaving the machine. 4Cast Lab addresses both. It opens as a single file and guides the user from data import to a
documented, tested model. Model selection is kept separate from evaluation. Train All gives each algorithm its own crossvalidated grid search and selects the model with the best mean cross-validation score; the Test Set
is used only once, to evaluate the selected model on data that no model has seen. Deterministic results agree within a relative difference of 10⁻⁶ (1,168 checks; 1,145 within 10⁻⁹); iterative
and stochastic estimators are compared within stated tolerances. The application passes all checks. Deterministic results agree within a relative difference of 10⁻⁶ (1,168 checks; 1,145 within 10⁻⁹); iterative
and stochastic estimators are compared within stated tolerances. The application passes all checks. • Guidance in the interface. Every panel carries a "How to read this" note, every setting a
help icon, and every set of results an "In plain words" summary that states the conclusion
in one paragraph, including when a model fails to beat its benchmark. • Guidance in the interface. Every panel carries a "How to read this" note, every setting a
help icon, and every set of results an "In plain words" summary that states the conclusion
in one paragraph, including when a model fails to beat its benchmark. • Guidance in the interface. Every panel carries a "How to read this" note, every setting a
help icon, and every set of results an "In plain words" summary that states the conclusion
in one paragraph, including when a model fails to beat its benchmark. • Guidance in the interface. Every panel carries a "How to read this" note, every setting a
help icon, and every set of results an "In plain words" summary that states the conclusion
in one paragraph, including when a model fails to beat its benchmark. • Guidance in the interface. Every panel carries a "How to read this" note, every setting a
help icon, and every set of results an "In plain words" summary that states the conclusion
in one paragraph, including when a model fails to beat its benchmark. • Guidance in the interface. Every panel carries a "How to read this" note, every setting a
help icon, and every set of results an "In plain words" summary that states the conclusion
in one paragraph, including when a model fails to beat its benchmark. • Guidance in the interface. Every panel carries a "How to read this" note, every setting a
help icon, and every set of results an "In plain words" summary that states the conclusion
in one paragraph, including when a model fails to beat its benchmark. 3
• Reproducibility. Every run records its settings and random seed, can be saved as a session
file (. 3
• Reproducibility. Every run records its settings and random seed, can be saved as a session
file (. 3
• Reproducibility. Every run records its settings and random seed, can be saved as a session
file (. 3
• Reproducibility. Every run records its settings and random seed, can be saved as a session
file (. 3
• Reproducibility. Every run records its settings and random seed, can be saved as a session
file (. 3
• Reproducibility. Every run records its settings and random seed, can be saved as a session
file (. 3
• Reproducibility. Every run records its settings and random seed, can be saved as a session
file (. Every run records its settings and random seed, can be saved as a session
file (. 4cl) and reopened, and can be exported as a pandas and scikit-learn script that replays
the split, preprocessing, model and metrics. Every run records its settings and random seed, can be saved as a session
file (. 4cl) and reopened, and can be exported as a pandas and scikit-learn script that replays
the split, preprocessing, model and metrics. Every run records its settings and random seed, can be saved as a session
file (. 4cl) and reopened, and can be exported as a pandas and scikit-learn script that replays
the split, preprocessing, model and metrics. Every run records its settings and random seed, can be saved as a session
file (. 4cl) and reopened, and can be exported as a pandas and scikit-learn script that replays
the split, preprocessing, model and metrics. Every run records its settings and random seed, can be saved as a session
file (. 4cl) and reopened, and can be exported as a pandas and scikit-learn script that replays
the split, preprocessing, model and metrics. Every run records its settings and random seed, can be saved as a session
file (. 4cl) and reopened, and can be exported as a pandas and scikit-learn script that replays
the split, preprocessing, model and metrics. Every run records its settings and random seed, can be saved as a session
file (. 4cl) and reopened, and can be exported as a pandas and scikit-learn script that replays
the split, preprocessing, model and metrics. 3 Estimation (econometrics) mode
Estimation mode, in the Expert view, fits models to the whole sample for explanation and
inference, as in Stata or EViews (Figure 3). It offers OLS with classical, White (1980) HC0–HC3,
Newey and West (1987) HAC and clustered standard errors; logit and probit with average marginal
effects; IV/2SLS with first-stage diagnostics; ARIMA and SARIMA by exact maximum
likelihood; ARDL with the bounds test of Pesaran, Shin and Smith (2001); error-correction
models; VAR with impulse responses and variance decompositions; Johansen (1991) cointegration
and VECM; and GARCH (Bollerslev, 1986). 3 Estimation (econometrics) mode
Estimation mode, in the Expert view, fits models to the whole sample for explanation and
inference, as in Stata or EViews (Figure 3). It offers OLS with classical, White (1980) HC0–HC3,
Newey and West (1987) HAC and clustered standard errors; logit and probit with average marginal
effects; IV/2SLS with first-stage diagnostics; ARIMA and SARIMA by exact maximum
likelihood; ARDL with the bounds test of Pesaran, Shin and Smith (2001); error-correction
models; VAR with impulse responses and variance decompositions; Johansen (1991) cointegration
and VECM; and GARCH (Bollerslev, 1986). 3 Estimation (econometrics) mode
Estimation mode, in the Expert view, fits models to the whole sample for explanation and
inference, as in Stata or EViews (Figure 3). It offers OLS with classical, White (1980) HC0–HC3,
Newey and West (1987) HAC and clustered standard errors; logit and probit with average marginal
effects; IV/2SLS with first-stage diagnostics; ARIMA and SARIMA by exact maximum
likelihood; ARDL with the bounds test of Pesaran, Shin and Smith (2001); error-correction
models; VAR with impulse responses and variance decompositions; Johansen (1991) cointegration
and VECM; and GARCH (Bollerslev, 1986). 3 Estimation (econometrics) mode
Estimation mode, in the Expert view, fits models to the whole sample for explanation and
inference, as in Stata or EViews (Figure 3). It offers OLS with classical, White (1980) HC0–HC3,
Newey and West (1987) HAC and clustered standard errors; logit and probit with average marginal
effects; IV/2SLS with first-stage diagnostics; ARIMA and SARIMA by exact maximum
likelihood; ARDL with the bounds test of Pesaran, Shin and Smith (2001); error-correction
models; VAR with impulse responses and variance decompositions; Johansen (1991) cointegration
and VECM; and GARCH (Bollerslev, 1986). 3 Estimation (econometrics) mode
Estimation mode, in the Expert view, fits models to the whole sample for explanation and
inference, as in Stata or EViews (Figure 3). It offers OLS with classical, White (1980) HC0–HC3,
Newey and West (1987) HAC and clustered standard errors; logit and probit with average marginal
effects; IV/2SLS with first-stage diagnostics; ARIMA and SARIMA by exact maximum
likelihood; ARDL with the bounds test of Pesaran, Shin and Smith (2001); error-correction
models; VAR with impulse responses and variance decompositions; Johansen (1991) cointegration
and VECM; and GARCH (Bollerslev, 1986). 3 Estimation (econometrics) mode
Estimation mode, in the Expert view, fits models to the whole sample for explanation and
inference, as in Stata or EViews (Figure 3). It offers OLS with classical, White (1980) HC0–HC3,
Newey and West (1987) HAC and clustered standard errors; logit and probit with average marginal
effects; IV/2SLS with first-stage diagnostics; ARIMA and SARIMA by exact maximum
likelihood; ARDL with the bounds test of Pesaran, Shin and Smith (2001); error-correction
models; VAR with impulse responses and variance decompositions; Johansen (1991) cointegration
and VECM; and GARCH (Bollerslev, 1986). 3 Estimation (econometrics) mode
Estimation mode, in the Expert view, fits models to the whole sample for explanation and
inference, as in Stata or EViews (Figure 3). It offers OLS with classical, White (1980) HC0–HC3,
Newey and West (1987) HAC and clustered standard errors; logit and probit with average marginal
effects; IV/2SLS with first-stage diagnostics; ARIMA and SARIMA by exact maximum
likelihood; ARDL with the bounds test of Pesaran, Shin and Smith (2001); error-correction
models; VAR with impulse responses and variance decompositions; Johansen (1991) cointegration
and VECM; and GARCH (Bollerslev, 1986). 3 Estimation (econometrics) mode
Estimation mode, in the Expert view, fits models to the whole sample for explanation and
inference, as in Stata or EViews (Figure 3). It offers OLS with classical, White (1980) HC0–HC3,
Newey and West (1987) HAC and clustered standard errors; logit and probit with average marginal
effects; IV/2SLS with first-stage diagnostics; ARIMA and SARIMA by exact maximum
likelihood; ARDL with the bounds test of Pesaran, Shin and Smith (2001); error-correction
models; VAR with impulse responses and variance decompositions; Johansen (1991) cointegration
and VECM; and GARCH (Bollerslev, 1986). 2, reports a validation of 1,234 numerical results
against statsmodels, linearmodels, arch, scikit-learn and NIST certified values, illustrates the
workflow with three examples, and discusses current limitations. Keywords: machine learning; forecasting; econometrics; forecast evaluation; reproducibility;
software; teaching. It reports a systematic validation of the numerical results against established reference
software (Section 4) which is a precondition for using any program in theses and published
research. Finally, it illustrates the workflow with three examples that show what the software
reports and how to read it (Section 5). It was developed at the E|M|E|F Lab, Department of Economics, Democritus
University of Thrace, for researchers, analysts, instructors and students in any field. Its Forecasting
mode trains eight learning algorithms (with three kernels for SVM/SVR), implemented from
scratch, under leakage-safe validation for time-ordered data; it selects models by cross-validation,
compares the selected model with every alternative and with naive benchmarks through formal
tests of predictive accuracy, and documents each run in a methods report and a Python script that
the user can export. 3 Econometrics: wage equation and ARIMA
The Wages example is a simulated cross-section of 1,000 workers. Table 5 reports the OLS
regression of the hourly wage on education, experience, sex and union membership with White
HC1 standard errors, as it appears in the Results Table. The Tests tab reports residual diagnostics,
specification tests, Wald tests of any linear restriction, multicollinearity and structural breaks
(Chow, Bai-Perron), each with a plain reading at the 5% level. Estimated models can be collected
in a journal-style Results Table exported to LaTeX, Word or Excel (Figure 4), and an ARIMA,
ARDL or VAR can be sent to Forecasting mode as a benchmark for the machine learning models
on the same Test Set rows.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Improve model selection by using "Train All Models & Compare
to select models based on their
best mean cross-validation score," ensuring that selection is done separately from evaluation, as described in Section 3.2. -
Enhance forecast evaluation by comparing the selected model against
every alternative and with naive benchmarks through formal tests of predictive accuracy,
including the Diebold and Mariano test, to check if the choice made by cross-validation is truly better on the Test Set rows. -
Increase interpretability for machine learning models by reporting
Permutation importance (Fisher, Rudin and Dominici, 2019), Shapley values (Štrumbelj and Kononenko, 2010), impurity importance, mutual information and correlation rank the predictors.
-
Improve econometric model diagnostics by including a
Tests tab
that reports residual diagnostics, specification tests (e.g., RESET test), Wald tests of any linear restriction, multicollinearity checks, and structural breaks with aplain reading at the 5% level.
-
Implement guidance for users by ensuring every panel carries a
How to read this
note and every set of results includes anIn plain words
summary that states the conclusion in one paragraph, including when a model fails to beat its benchmark. -
Improve reproducibility by allowing users to export the analysis as a
pandas and scikit-learn script that replays the split, preprocessing, model and metrics,
which can be saved as a session file (.4cl).
Abstract
Forecasting with machine learning often goes wrong due to the protocol and not the algorithms for reasons including leakage, model selection on the test sample, no naive benchmark, and no allowance for the number of models tried. 4Cast Lab is a free, open-source, single-file application that makes a benchmark-first protocol the default: time-ordered splits; selection by cross-validation inside the training period; one use of the Test Set; a naive benchmark with Diebold-Mariano and Clark-West tests; and the Holm, Reality Check, SPA and Model Confidence Set procedures. We document the protocol, the leakage controls and the fixed rules of the AutoML verdict, and report three kinds of evidence. A four-stage benchmark against certified values and reference software shows agreement to at least six significant digits and pre-specified equivalence tests for the random learners. A simulation run through the application shows that, for random-walk targets, common reporting rules declare a false success in 21 to 95% of cases and the benchmark-first verdict in 0 to 1%, at a measured cost in power. On 59 M4 monthly series and the US unemployment rate, the application matches MLForecast for like learners and approaches StatsForecast once the target is differenced.
Related papers
- AI Disclosures and Fund Return Comovement: Evidence from Public Filings
- AFNO: Universal Certifiably-Arbitrage-Free Operator Learning Framework for European Call-Price Surfaces
- Marked INAR model and the rough Hawkes--Heston limit
- Diffusion models for dynamic volatility surface generation and data-driven hedging
- Rethinking Synthetic Scenario Realism: Compatibility, Not Fidelity, Drives Hedging Performance
- CosmosAlpha: Multi-Relational Graph Search with Pareto-Guided Exploration for LLM-Driven Alpha Mining