elsiddik commited on
Commit
2c4b679
·
verified ·
1 Parent(s): 6d2c480

Update Plan B dataset (2026-11-13)

Browse files
README.md CHANGED
@@ -42,21 +42,31 @@ configs:
42
  path: scan_stats.jsonl
43
  ---
44
 
 
 
 
 
 
 
 
 
 
 
45
  # Plan B — Contrarian Deep-Value US Equities & AI 10-K Analysis
46
 
47
  **Plan B** is a daily quantitative and fundamental research dataset covering deeply discounted, financially resilient, and heavily beaten-down US operating companies across the **NYSE** and **Nasdaq**.
48
 
49
- Every trading day, Plan B screens the entire US equity universe (~6,000 SEC XBRL filers) using primary **SEC EDGAR XBRL frames**, **3-year weekly price series**, **SEC Form 4 open-market insider transactions**, **news sentiment**, and **LLM-synthesized 10-K/20-F deep-value investment memos**.
50
 
51
  ---
52
 
53
- ## Dataset Snapshot
54
 
55
  | Metric | Value |
56
  | :--- | :--- |
57
  | **Coverage Window** | `2026-11-02` → `2026-11-13` (12 daily scans) |
58
  | **Unique Shortlisted Companies** | 66 NYSE/Nasdaq tickers |
59
- | **Daily Ranking Observations** | 427 rows (123 features per row) |
60
  | **Structured AI 10-K/20-F Memos** | 21 filings analyzed |
61
  | **Open-Market Form 4 Insider Trades** | 376 verified transactions |
62
  | **Update Frequency** | Daily (automated post-market scan) |
@@ -64,7 +74,18 @@ Every trading day, Plan B screens the entire US equity universe (~6,000 SEC XBRL
64
 
65
  ---
66
 
67
- ## Dataset Structure & Files
 
 
 
 
 
 
 
 
 
 
 
68
 
69
  Each table is provided in both **CSV** (ideal for Kaggle, Pandas, R, and DuckDB) and **JSON Lines (`.jsonl`)** (ideal for Hugging Face `datasets`, Spark, and LLM pipelines).
70
 
@@ -77,7 +98,7 @@ Each table is provided in both **CSV** (ideal for Kaggle, Pandas, R, and DuckDB)
77
 
78
  ---
79
 
80
- ## Screening & Ranking Methodology
81
 
82
  Plan B follows a strict Graham–Klarman–Buffett deep-value discipline. Financial institutions (SIC 6000–6799: banks, insurers, REITs, SPACs) are excluded so balance-sheet ratios remain comparable across operating businesses.
83
 
@@ -95,7 +116,7 @@ A company must pass **all three** pillars simultaneously:
95
 
96
  ---
97
 
98
- ## Quickstart Usage
99
 
100
  ### Python (`datasets` — Hugging Face)
101
  ```python
@@ -127,7 +148,7 @@ print(top_ideas[["date", "ticker", "name", "score", "pe", "ev_ebit", "net_cash_p
127
 
128
  ---
129
 
130
- ## Data Dictionary
131
 
132
  ### 1. `daily_rankings` (${RANKING_COLS.length} Columns)
133
 
@@ -157,8 +178,10 @@ print(top_ideas[["date", "ticker", "name", "score", "pe", "ev_ebit", "net_cash_p
157
  | `pe_ttm`, `fcf_ttm`, `rev_ttm`, `ni_ttm`, `cfo_ttm`, `gross_margin` | `float` | Trailing-twelve-month metrics (`FY + YTD − prior YTD`): P/E, free cash flow, revenue, net income, operating cash flow (USD), and gross margin. |
158
  | `ar`, `ppe`, `retained_earnings`, `gp`, `gp_1`, `dep`, `dep_1`, `sga`, `sga_1` | `float` | Raw XBRL items used by the forensic scores: receivables, net PP&E, retained earnings, gross profit, depreciation & amortization, and SG&A (latest FY and prior FY). |
159
  | `pri_period`, `pri_assets`, `pri_liab`, `pri_ca`, `pri_cl`, `pri_ar`, `pri_ppe`, `pri_shares` | `mixed` | Balance-sheet values from the same SEC instant one year earlier, used for year-over-year quality tests. |
160
- | `short_pct_float`, `short_ratio`, `short_chg_mom` | `float` | Short interest as % of float, days-to-cover ratio, and month-over-month change in shares short. |
161
  | `held_pct_insiders`, `held_pct_institutions` | `float` | Share of the company held by insiders and by institutions. |
 
 
162
  | `activist_form`, `activist_date`, `activist_name`, `activist_pct` | `mixed` | Latest Schedule 13D/13G stake filed against the company (form, date, reporting person, % of class). |
163
  | `tenk_date`, `tenk_accession`, `tenk_form`, `tenk_url` | `string` | Filing date, SEC accession number, form type (`10-K` / `20-F`), and direct SEC EDGAR archive URL. |
164
  | `ai_verdict`, `ai_conviction`, `ai_balance_sheet`, `ai_value_trap_risk`, `ai_one_liner` | `mixed` | AI 10-K analyst summary fields (`CONTRARIAN BUY CANDIDATE` / `WATCH` / `AVOID`, conviction `0–100`, balance sheet rating, value-trap risk, and one-line thesis). |
@@ -186,7 +209,7 @@ print(top_ideas[["date", "ticker", "name", "score", "pe", "ev_ebit", "net_cash_p
186
 
187
  ---
188
 
189
- ## Data Integrity, Privacy & Caveats
190
 
191
  - **Zero Credentials / Zero PII Guarantee:** Every export passes an automated security gate (`assertNoCredentials`) that enforces an explicit column allowlist, scrubs email addresses, and scans against secret/token patterns before writing or uploading.
192
  - **XBRL Tagging Nuances:** SEC fundamentals reflect company-reported US-GAAP XBRL tags. Unusual tagging or dual-class share structures can occasionally distort market cap or debt ratios; always cross-check the linked SEC filing (`tenk_url`).
 
42
  path: scan_stats.jsonl
43
  ---
44
 
45
+ <p align="center"><img src="https://huggingface.co/datasets/elsiddik/planb-deep-value/resolve/main/assets/banner.svg" alt="Plan B — Contrarian Deep-Value US Equities" width="100%"/></p>
46
+
47
+ <p align="center">
48
+ <img src="https://img.shields.io/badge/license-CC--BY--NC--4.0-blue" alt="license"/>
49
+ <img src="https://img.shields.io/badge/scans-12%20daily-f0b90b" alt="scans"/>
50
+ <img src="https://img.shields.io/badge/tickers-66%20screened-22d3ee" alt="tickers"/>
51
+ <img src="https://img.shields.io/badge/rows-836%20total-26a69a" alt="rows"/>
52
+ <img src="https://img.shields.io/badge/source-SEC%20XBRL%20%2B%20FINRA-8b94a7" alt="source"/>
53
+ </p>
54
+
55
  # Plan B — Contrarian Deep-Value US Equities & AI 10-K Analysis
56
 
57
  **Plan B** is a daily quantitative and fundamental research dataset covering deeply discounted, financially resilient, and heavily beaten-down US operating companies across the **NYSE** and **Nasdaq**.
58
 
59
+ Every trading day, Plan B screens the entire US equity universe (~6,000 SEC XBRL filers) using primary **SEC EDGAR XBRL frames**, **3-year weekly price series**, **SEC Form 4 open-market insider transactions**, **FINRA short interest & short volume** (via Massive), **news sentiment**, and **LLM-synthesized 10-K/20-F deep-value investment memos**.
60
 
61
  ---
62
 
63
+ ## 📊 Dataset Snapshot
64
 
65
  | Metric | Value |
66
  | :--- | :--- |
67
  | **Coverage Window** | `2026-11-02` → `2026-11-13` (12 daily scans) |
68
  | **Unique Shortlisted Companies** | 66 NYSE/Nasdaq tickers |
69
+ | **Daily Ranking Observations** | 427 rows (129 features per row) |
70
  | **Structured AI 10-K/20-F Memos** | 21 filings analyzed |
71
  | **Open-Market Form 4 Insider Trades** | 376 verified transactions |
72
  | **Update Frequency** | Daily (automated post-market scan) |
 
74
 
75
  ---
76
 
77
+ ## 📈 At a Glance
78
+
79
+ | **Screening funnel** | **Score distribution** |
80
+ | :---: | :---: |
81
+ | <img src="https://huggingface.co/datasets/elsiddik/planb-deep-value/resolve/main/assets/funnel.svg" alt="Screening funnel" width="100%"/> | <img src="https://huggingface.co/datasets/elsiddik/planb-deep-value/resolve/main/assets/score_dist.svg" alt="Score distribution" width="100%"/> |
82
+ | **Sector mix** | |
83
+ | :---: | :---: |
84
+ | <img src="https://huggingface.co/datasets/elsiddik/planb-deep-value/resolve/main/assets/sector_mix.svg" alt="Sector mix" width="100%"/> | |
85
+
86
+ ---
87
+
88
+ ## 📁 Dataset Structure & Files
89
 
90
  Each table is provided in both **CSV** (ideal for Kaggle, Pandas, R, and DuckDB) and **JSON Lines (`.jsonl`)** (ideal for Hugging Face `datasets`, Spark, and LLM pipelines).
91
 
 
98
 
99
  ---
100
 
101
+ ## 🎯 Screening & Ranking Methodology
102
 
103
  Plan B follows a strict Graham–Klarman–Buffett deep-value discipline. Financial institutions (SIC 6000–6799: banks, insurers, REITs, SPACs) are excluded so balance-sheet ratios remain comparable across operating businesses.
104
 
 
116
 
117
  ---
118
 
119
+ ## 🚀 Quickstart Usage
120
 
121
  ### Python (`datasets` — Hugging Face)
122
  ```python
 
148
 
149
  ---
150
 
151
+ ## 📖 Data Dictionary
152
 
153
  ### 1. `daily_rankings` (${RANKING_COLS.length} Columns)
154
 
 
178
  | `pe_ttm`, `fcf_ttm`, `rev_ttm`, `ni_ttm`, `cfo_ttm`, `gross_margin` | `float` | Trailing-twelve-month metrics (`FY + YTD − prior YTD`): P/E, free cash flow, revenue, net income, operating cash flow (USD), and gross margin. |
179
  | `ar`, `ppe`, `retained_earnings`, `gp`, `gp_1`, `dep`, `dep_1`, `sga`, `sga_1` | `float` | Raw XBRL items used by the forensic scores: receivables, net PP&E, retained earnings, gross profit, depreciation & amortization, and SG&A (latest FY and prior FY). |
180
  | `pri_period`, `pri_assets`, `pri_liab`, `pri_ca`, `pri_cl`, `pri_ar`, `pri_ppe`, `pri_shares` | `mixed` | Balance-sheet values from the same SEC instant one year earlier, used for year-over-year quality tests. |
181
+ | `short_pct_float`, `short_ratio`, `short_chg_mom` | `float` | Short interest as % of float, days-to-cover ratio, and change vs the prior report (biweekly FINRA settlement when `short_src`=`finra`, else Yahoo month-over-month). |
182
  | `held_pct_insiders`, `held_pct_institutions` | `float` | Share of the company held by insiders and by institutions. |
183
+ | `short_src`, `short_vol_avg`, `short_vol_last`, `float_shares` | `string`/`float`/`int` | Short-interest source (`finra` = Massive/FINRA settlement), average and latest daily off-exchange short-volume ratio (0–1, FINRA via Massive), and Massive free-float share count. |
184
+ | `insider_buyers_sameday`, `insider_unplanned_buy_value` | `int`/`float` | Max distinct insiders buying on one day (Massive Form 4/5 aggregation) and insider purchase USD excluding 10b5-1 pre-planned trades. |
185
  | `activist_form`, `activist_date`, `activist_name`, `activist_pct` | `mixed` | Latest Schedule 13D/13G stake filed against the company (form, date, reporting person, % of class). |
186
  | `tenk_date`, `tenk_accession`, `tenk_form`, `tenk_url` | `string` | Filing date, SEC accession number, form type (`10-K` / `20-F`), and direct SEC EDGAR archive URL. |
187
  | `ai_verdict`, `ai_conviction`, `ai_balance_sheet`, `ai_value_trap_risk`, `ai_one_liner` | `mixed` | AI 10-K analyst summary fields (`CONTRARIAN BUY CANDIDATE` / `WATCH` / `AVOID`, conviction `0–100`, balance sheet rating, value-trap risk, and one-line thesis). |
 
209
 
210
  ---
211
 
212
+ ## 🛡️ Data Integrity, Privacy & Caveats
213
 
214
  - **Zero Credentials / Zero PII Guarantee:** Every export passes an automated security gate (`assertNoCredentials`) that enforces an explicit column allowlist, scrubs email addresses, and scans against secret/token patterns before writing or uploading.
215
  - **XBRL Tagging Nuances:** SEC fundamentals reflect company-reported US-GAAP XBRL tags. Unusual tagging or dual-class share structures can occasionally distort market cap or debt ratios; always cross-check the linked SEC filing (`tenk_url`).
assets/banner.svg ADDED
assets/funnel.svg ADDED
assets/score_dist.svg ADDED
assets/sector_mix.svg ADDED
daily_rankings.csv CHANGED
The diff for this file is too large to render. See raw diff
 
daily_rankings.jsonl CHANGED
The diff for this file is too large to render. See raw diff