Financial research · models and dataRESEARCH / DEMO
PERSONAL SOFTWARE & DATA SCIENCE PROJECT

Financial research, built end to end.

QuantForge brings SEC financial disclosures, statistical modeling, portfolio mathematics, and software engineering into a single research platform. The public research pages present source-backed financial analysis and implemented model demonstrations; the authenticated workspace extends the same system into historical market research, portfolio testing, and virtual allocation studies.

Inside the project

Four connected disciplines
01 · DATA ENGINEERING

Source-backed statements

SEC Company Facts ingestion, fiscal-period selection, filing lineage, missing-value controls, and reproducible exports.

02 · QUANTITATIVE ANALYTICS

Risk and optimization

Covariance shrinkage, allocation constraints, downside simulation, and risk-return comparisons with clear modeling assumptions.

03 · STATISTICAL RESEARCH

Validation beyond backtests

Rolling out-of-sample evaluation, fees, benchmark comparisons, robustness checks, and integrity fingerprints in the private research system.

04 · SOFTWARE ENGINEERING

Private, tested application

FastAPI, Cloudflare Pages, Supabase-authenticated MFA, owner-only market-data access, automated regression tests, and CI.

Research implemented beyond the public models

Technical implementation

The public models here are intentionally accessible; the authenticated research engine is substantially deeper. Its methods, algorithms, validation design, and architecture are documented publicly without exposing personal research sessions or licensed market data.

RESEARCH ENGINEWalk-forward testing

Past-only training, non-overlapping evaluation, costs, passive and rebalanced benchmarks.

Statistical validation
PORTFOLIO SCIENCEConstrained optimization

Covariance estimation, weight caps, risk diagnostics, alternative allocation rules.

Optimization + risk
FUNDAMENTAL RESEARCHSEC scenario forecasting

Reported annual filings, FCF proxies, discounting, terminal-value and sensitivity analysis.

Financial modeling
PRODUCT ENGINEERINGAuthenticated analytics

Read-only market feeds, owner-only storage, MFA, content security, and CI.

Full-stack security

Reported annual financials · SEC EDGAR

Historical company filings
Historical filings · not live stock prices

Interactive portfolio example

Simulated holdings and prices
Sample portfolio value—
Cash available—
Invested—

Sample allocation

Illustrative investment universe

Illustrative prices · not live quotes

Model demonstrations

Illustrative calculations · simulated financial inputs

SEC Financials

Annual financial statements, trends, and comparative metrics sourced from SEC EDGAR.

Explore a different sector:

Company analysis

SEC annual filings

Annual revenue trend

Reported · fiscal year

Annual reported figures

Company comparison

Latest available fiscal year

Rankings compare the latest available annual filing for each issuer, not a synchronized period or a sector-neutral investment signal. Missing values are unranked.

Inspect source tags and filing provenance

Source: SEC EDGAR Company Facts.

SEC company financials are real, historical disclosures. The margin scenario is hypothetical. Public portfolio, Quant, DCF and Company peers use illustrative or simulated inputs; they are not actual market results, valuations, or investment recommendations.

Portfolio simulator

A sample portfolio with simulated holdings and prices. Make hypothetical transactions in this browser session; no orders or real-time market quotes.

Total value—
Cash—
Holdings—

Positions

Virtual transaction

Assumed 0.05% transaction fee; no real orders

ETF holdings overlap

Illustrative ETF weights, not actual fund holdings

Rebalancing plan

Target weights sum to 100% including cash. Suggestions only; no transactions.

Quant

Constrained allocation and downside scenarios using illustrative returns.

Analysis settings

276 simulated sessions · 1,800 Monte Carlo paths

Valuation

Interactive discounted cash flow methodology using illustrative company assumptions. These values are not actual company valuations; SEC Financials contains the real reported figures.

Company DCF

Company peers

Compare company characteristics using standardized model inputs. The SEC Financials tab provides reported company figures.

Five features: revenue growth, operating margin, net margin, free-cash-flow margin and debt/assets.
PUBLIC INTERACTIVE RESEARCH · VERSION 7.7

Financial research lab

Follow the path from source-backed corporate disclosures to quantitative decisions and chronological model evaluation. The visualizations calculate results from available inputs and explain their meaning. Historical SEC facts are separate from synthetic investment scenarios.

Real annual SEC company factsRecalculated quantitative modelsSimulated market return experimentsNo account or private market-data access
Data engineeringSEC ingestion, alignment, validation and provenance
Data analytics & BIRevenue KPIs, comparisons, trends and findings
Data scienceModel fitting, rolling evaluation and sensitivity
Financial analysisMargins, growth, company financial statements
Quantitative financeCovariance, constrained allocation, fees and drawdowns
01 · Explore reported company financialsActual public SEC filings

Choose an issuer to see fiscal-year revenue, annual growth and operating margins. The finding and table update from the reviewed SEC snapshot; gaps remain unavailable rather than being replaced.

02 · Optimize a hypothetical portfolioDeterministic synthetic return observations

Estimate sample covariance, stabilize the estimate, and fit a feasible long-only minimum-variance portfolio. This result responds to the position cap and can be compared directly with equal weights.

Changing settings updates both quant exhibits below
03 · Evaluate unseen periods, including feesSimulated past-only rolling experiment

The model is fitted on preceding sessions, applied to a separate 20-session test window, and refitted at the next boundary. Both allocation strategies use the same five underlying synthetic investment baskets. Observe whether the in-sample risk advantage persists after costs and drawdowns.

04 · Trace each finding to the implementationEngineering evidence

The public research lab is dependency-free JavaScript delivered as part of the existing content-security-protected build. Synthetic returns use a reproducible seed, and the SEC exhibit reads only the approved snapshot. Private research methods are a separate authenticated implementation.

Interpretation: the public charts demonstrate an implemented statistical workflow, not independently validated market-beating performance. The current SEC snapshot is historical. The public synthetic return generator is not a market data provider, forecast, or estimate of live asset risk.

RESEARCH SYSTEMS · PUBLIC TECHNICAL EXHIBIT

Quantitative research systems

The research platform combines SEC data engineering, constrained numerical optimization, historical out-of-sample evaluation, financial forecasting, and authenticated application development. The sections below document the implemented methods and validation boundaries; private market observations and account records remain inaccessible to public visitors.

Real SEC disclosures in public explorerIllustrative diagrams belowPrivate datasets stay private

One platform, four computational stages

Architecture at a glance
01 / DATA ENGINEERINGIngest & normalizeSEC annual facts; Alpaca historical equity, ETF and supported crypto observations in the private workspace
02 / VALIDATIONTrust the inputsFiscal periods, market calendars, aligned prices, missing values, source attribution and SHA-256 dataset fingerprints
03 / MODELSQuantify trade-offsPortfolio risk, constrained allocation, scenario DCF proxies, historical-momentum research and stress tests
04 / EVALUATIONChallenge the resultPast-only fitting, out-of-sample windows, fees, passive benchmarks, leave-one-window-out robustness and research reports

The public deployment hosts static demonstrations and a reviewed SEC snapshot. Market observations and personal virtual accounts are only accessed in authenticated private workflows.

Observed financial relationships in SEC filings

Reported annual facts · calculated comparisons

Annual revenue growth and operating margin are calculated from the public SEC Company Facts snapshot. Each point represents a company and its latest comparable fiscal periods. Unlike the illustrated strategy charts below, these values come from reported company filings.

Reported financial comparisons are available when the verified SEC snapshot is present.

This is an exploratory comparison, not a factor-return model or a company ranking. Fiscal year-ends differ, and operating margin and revenue growth alone do not determine a stock's future performance.

Research methods and implementation evidence

Algorithms · diagnostics · engineering judgment
QUANTITATIVE FINANCE / NUMERICAL OPTIMIZATION

01. Constrained portfolio optimization

Allocation weights are fitted from observed returns and an estimated covariance matrix, subject to feasibility and concentration limits.

Implemented privately
min wᵀΣw   subject to   Σwᵢ = 1;   0 ≤ wᵢ ≤ cap

Why it matters: the objective is predicted portfolio variance, not a guarantee of realized return. The private optimizer supports a covariance-based minimum-risk allocation and alternative inverse-volatility / return-tilt allocations.

  • Align price histories to comparable observations before estimating returns.
  • Apply covariance stabilization/shrinkage and reject impossible weight caps.
  • Compare annualized volatility, drawdown, tail loss and alternative allocations.
Implementation and verification detail

Estimated portfolio volatility is √(wᵀΣw) × √annualization; optimization remains sensitive to return sampling, correlated assets and constraints. Tests check symmetry, finite prices, positive covariance diagonals, feasibility and weight normalization.

Schematic risk vs. return trade-off

Min varianceReference Volatility →Return →

Illustrative positions, not an empirical efficient frontier or a private portfolio result.

STATISTICAL VALIDATION / TIME SERIES

02. Rolling walk-forward evaluation

A model trains on past observations, then is evaluated on the following unseen sessions. The allocation is refitted at later boundaries.

Implemented privately
Train[t₀:t₁] → Fit w₁ → Test[t₁:t₂] → Roll forward

The private study supports non-overlapping evaluation windows, modeled turnover and basis-point transaction fees, two rebalanced strategies, and a passive equal-weight buy-and-hold comparison.

  • Run each allocation rule against matched evaluation dates.
  • Reconcile per-window fees to total reported costs.
  • Perform leave-one-window-out diagnostics; a changed winner signals sample dependence.
  • Preserve observations and model settings in versioned research manifests.
Where bias can still enter

Past-only fitting reduces mechanical look-ahead within the test, but cannot eliminate survivorship bias, post-hoc asset selection or tuning parameters after seeing outcomes. Omitting a window without refitting is a sensitivity check, not independent validation.

Rolling evaluation boundaries

Window 1
Window 2
Evaluation sessions →
Model portfolioBenchmark

Diagram only; wealth paths are drawn for explanation, not copied from private analysis.

FINANCIAL MODELING / SEC DISCLOSURES

03. SEC-backed forecast sensitivity

Observed company financials are kept distinct from hypothetical revenue-growth, cash-flow-margin and discounting assumptions.

Real source + modeled scenarios
FCFₜ = Revenue₀(1+g)ᵗ × margin
PV = Σ FCFₜ/(1+r)ᵗ + TV/(1+r)ᴺ

Real SEC annual statements establish the observed baseline. The model projects three- to seven-year hypothetical scenarios and produces a sensitivity grid for revenue growth and the discount rate.

  • Report free cash-flow proxy as operating cash flow less cash PP&E purchases.
  • Distinguish discounted cash-flow proxy from an equity value or share-price target.
  • Display how much present value comes from the terminal component.
  • Reject impossible assumptions and missing SEC cash flows instead of fabricating data.
Terminal-value risk

Terminal value extrapolates cash flows beyond the explicit projection horizon. When the terminal share dominates, small changes in discount and perpetual growth rates can materially change the result. Debt, excess cash and capital-structure adjustments are not included in this proxy.

How scenarios respond to assumptions

ChangeEffect on modeled proxy
Higher assumed revenue growthUsually higher
Higher assumed FCF marginHigher
Higher discount rateLower
Higher terminal growth (r > g)Usually higher

Directional sensitivities are mathematical examples, not measured company forecast accuracy. Real reported values are available in SEC Financials.

DATA SCIENCE / EXPLAINABLE RESEARCH

04. Historical investment screening

A private shortlist compares price momentum, realized volatility and drawdown, while displaying available SEC fundamentals separately.

Owner-only research
Score = Σ (lens weightₖ × normalized metricₖ)

Growth, balanced and risk-aware lenses change how much weight the model places on trailing return, recent momentum, annualized volatility and historical drawdown. The score is an explainable heuristic, not a probability of gain.

  • Use selectable investment names rather than requiring ticker memorization.
  • Flag sparse histories and report the period and IEX/SIP source.
  • Show SEC revenue growth and FCF margins only when disclosed facts support them.
  • Keep ranking and trade execution separate; no brokerage orders are placed.
Why a top-ranked investment may still be unattractive

Momentum and low observed volatility do not measure whether a stock is expensive relative to its future cash flows. Future returns also depend on valuation, concentration, news and unforeseeable events. The research lens is for comparing candidates, not picking guaranteed winners.

Explainability layers

EvidencePrice history, volatility, drawdown and optional SEC context

ScoreWeighted, bounded and traceable to its inputs

LimitsSelection bias, changing regimes, price-only returns

DecisionManual research and hypothetical portfolio workflow, not an order

The private browser uses real historical observations when authorized; no private rankings or selected holdings are displayed here.

Research integrity and engineering controls

Reproducibility + security
Source lineage

Issuer and fiscal-year filtering, filings and cutoffs, calendar alignment, adjusted-provider-price attribution and unavailable-value handling.

Reproducible manifests

Versioned exports include investment symbols, settings, evaluation dates, fee rules and SHA-256 input fingerprints; raw licensed prices are not exported.

Testable calculations

Python and JavaScript tests include invalid prices, impossible allocation caps, missing filings, look-ahead prevention, fee reconciliation and prior-window comparisons.

Release gates

GitHub Actions checks Python 3.11 and 3.12, the private regression suites, privacy review, script syntax and compiled Content Security Policy hashes.

PUBLICCloudflare PagesReal SEC snapshot and labeled browser-only illustrative models
EDGEScoped API proxyRestricted configured upstream; private backend credentials not returned
PRIVATE APIRender / FastAPIAuthorized requests for market observations and personal state
IDENTITY & DATASupabase MFAAuthenticator step-up and owner-scoped virtual account records

The diagrams document intended and tested boundaries, not a claim that any production system is immune to attack. SHA-256 fingerprints detect changed in-memory inputs but do not authenticate the provider or replace archived source data.

Implementation and test evidence

Source code · numerical checks

The public exhibits document methods that are implemented in the project. The source files and focused regression tests provide a direct way to inspect the algorithms, data boundaries, and handling of failure cases without signing into the private workspace.

These source references verify the implementation and test coverage, not the profitability of any allocation strategy. Private research datasets, account details, and credentials are not part of the public exhibit.

PUBLIC MODELS

Public financial data and modeled examples

Reported SEC annual statements and illustrative statistical models are available publicly. Historical market-data research and personal virtual accounts remain authenticated.

METHODS

Methods & engineering

Data sources, analytical methods, assumptions, and application architecture.

Advanced private research, publicly documented

Implementation walkthrough

The authenticated workspace implements walk-forward optimization, volatility and tail-risk diagnostics, investment shortlisting, discounted cash-flow scenario grids, and research integrity checks. The Research systems page documents equations, modeling assumptions, numerical checks, and source references without exposing private research records.

Source dataSEC EDGAR Company Facts
Demonstration calculationsSimulated portfolio / DCF / quantitative returns
Separate private workspaceOwner-only authentication and observations

Data lineage

Historical SEC snapshot
01 · INGESTSEC EDGARCompany Facts / 10-K annual facts
02 · VALIDATEPeriods & provenanceCIK, filing dates, units, annual windows
03 · PUBLISHRead-only snapshotBuild-time JSON + protected browser scripts

The public browser does not request raw filings or private market quotes. A locally generated and reviewed snapshot is embedded when the site is built. Figures do not auto-refresh.

SEC API documentation ↗

What the figures mean

Reported vs. derived vs. hypothetical
OutputHow it is calculatedInterpretation
Revenue, operating incomeEligible annual US-GAAP facts in 10-K / 10-K/AHistorical reported data, not a stock quote
Operating marginOperating income / revenueDerived only where both fields exist
Revenue growth(Current annual revenue / prior annual revenue) − 1Reporting periods follow issuer fiscal years
FCF proxyOperating cash flow − reported cash PP&E purchasesSimple disclosure-derived proxy; not unlevered FCFF
Margin stressReported annual revenue × hypothetical adjusted marginScenario sensitivity; not an earnings forecast

Missing values remain unavailable rather than zero-filled. Company fiscal year-ends are not aligned; broad sector groupings are editorial and are not normalized industry classifications.

Model demonstrations and boundaries

Interactive · illustrative

Portfolio simulator

Virtual positions, example prices, rebalancing weights, and estimated fees. Everything stays in the browser session and does not place orders.

Quantitative modeling

Simulated returns, covariance, constrained allocation, and Monte Carlo downside. Results are not calibrated forecasts of market risk.

DCF sensitivity

Illustrative cash-flow assumptions with discounting and terminal-value sensitivity. These are not live company valuations.

Company similarity

Standardized synthetic fundamentals demonstrate nearest-neighbor comparisons. Use SEC Financials for actual company comparisons.

System architecture

Public and private boundaries
PUBLICSEC EDGAR filingsValidated annual snapshot → Cloudflare Pages → browser-only demonstrations
OWNER-ONLYAuthenticator-protected researchCloudflare API proxy → FastAPI → Supabase MFA / private portfolio + Alpaca market observations + SEC facts

Private API credentials stay server-side. No Alpaca observations, personal positions, or authenticator secrets are bundled into the public demonstration. Research scripts have deterministic tests, and GitHub CI validates both Python and JavaScript with a restrictive Content Security Policy.

Engineering practices

Architecture and tests

Data engineering

Named SEC issuer identifiers, annual-period filtering, filing cutoffs, input validation, recorded sources and accession details.

Statistical modeling

Constrained optimization, covariance-based portfolio analysis, downside simulation, DCF, and nearest-neighbor feature standardization.

Application engineering

Python backend, static hosted frontend, automated Python and JavaScript checks, continuous integration, and a restrictive script Content Security Policy.

Privacy boundary

Public research data is separate from the owner-only workspace. Private holdings and Alpaca access are protected by authenticated endpoints and authenticator MFA.

The private workspace provides real market observations and virtual trading for the owner only. Public visitors cannot use that API as an open data source.

Research validation and failure cases

Quality gates and failure cases
LayerExample invariantsWhy it matters
Historical dataFinite positive prices; aligned time series; observed-versus-derived SEC metricsRejects inconsistent or fabricated model inputs
OptimizationWeights sum to one; asset caps feasible; covariance symmetric; finite estimatesPrevents invalid portfolios from appearing plausible
Walk-forwardPast-only fitting; disjoint test windows; transaction-fee reconciliationReduces leakage and makes comparisons auditable
ForecastGrowth and discount assumptions valid; unavailable FCF remains unavailableSeparates fact from hypothetical valuation
PlatformMFA owner boundaries; restricted proxy; CSP hashes; private JS regression suiteTests confidentiality and deployed script integrity

CI runs Python 3.11 and 3.12 along with JavaScript checks. Passing tests provide scoped evidence, not investment performance claims or complete security assurance.

Historical financial disclosures may be updated or restated. Model scenarios are not investment advice.

My workspace

Private · Sign in required

Sign in

Only the authorized owner account can sign in.

· SEC Financials uses historical filings. Public portfolio and model scenarios use illustrative inputs. Private account data and market feeds are not available in the public site. This project is not an investment recommendation.