Lesson 4 of 5Paid
The AI Edge: Modern Investing Tools
Lesson 4: The AI Edge
Video lesson — coming soon. The full written lesson is below.
AI tools can dramatically accelerate your research — if you understand exactly what they're good at, what they're dangerously bad at, and how to keep them on a short leash.
4.1 Automated Sharia Screeners
Doing the AAOIFI math from Lesson 2 by hand for every stock isn't practical. A category of apps automates this using rules-based screening — deterministic algorithms that pull structured financial data and apply fixed thresholds, the same way a spreadsheet formula would:
| App | What it does |
|---|---|
| Zoya | Instant compliance ratings (Halal / Not Halal / Questionable) with a breakdown of which screen a stock fails, plus a built-in purification calculator. |
| Islamicly | Screens thousands of global stocks against AAOIFI-style criteria, with portfolio tracking and purification reports. |
| Musaffa | Combines compliance screening with broader investment research tools and a "purification" tracker for dividends received. |
These tools are reliable for what they are: deterministic calculators. They take structured numbers (debt, market cap, revenue breakdown) from filings and run them through fixed formulas — exactly like the Screen Checker in Lesson 2, but automatically and continuously updated. This is fundamentally different from the tools in the next section.
Quick check
You run the same stock through Zoya twice. What should happen?
In depth
The four levels of AI in finance — and the data that makes screeners exact
The industry sorts financial AI into four capability tiers, and knowing which tier a tool belongs to tells you how much to trust it:
- Rule-based systems — a clerk following explicit instructions ("flag every stock with debt over 30% of market cap"). Deterministic and exactly repeatable.
- Machine learning — an analyst finding patterns in historical data.
- Generative AI — a writer synthesizing unstructured text.
- Agentic AI — an investigator making autonomous multi-step decisions (the emerging frontier, and the one regulators are most nervous about).
Sharia screeners live in tier 1 — and their precision comes from the data plumbing underneath. When a US public company files its results with the SEC's EDGAR system, the numbers aren't submitted as prose: every figure is tagged in XBRL, a machine-readable standard where each data point (revenue, debt, cash) carries a unique tag under the accounting taxonomy. A screener queries these tags through an API and gets back exact, audited integers straight from the balance sheet — then runs ordinary arithmetic on them. No interpretation, no prediction, no "vibes." That is why a rules-based screener can be trusted with the AAOIFI math in a way a chatbot never can: one retrieves and calculates; the other guesses what a plausible answer looks like.
4.2 Using Generative AI (ChatGPT, Claude, Gemini) for Research
Generative AI models work completely differently from screeners. They don't run formulas — they predict the most statistically likely sequence of words based on patterns in their training data. That makes them extremely good at some tasks and dangerously unreliable at others.
| Operational dimension | Rules-Based Screener | Generative AI (LLM) |
|---|---|---|
| Core logic | Deterministic if/then rules | Probabilistic word-by-word prediction |
| Data it consumes | Structured numbers (APIs, filings data) | Unstructured text, language, context |
| Math execution | Exact, repeatable arithmetic | Frequently wrong — numbers are "predicted," not calculated |
| Best use | Filtering thousands of stocks by hard thresholds | Summarizing, explaining, comparing language/narrative |
Where AI genuinely helps: summarizing a 150-page annual report (10-K), especially the narrative sections:
- Item 1 (Business): "What does this company actually do, and what are its main products/revenue drivers?"
- Item 1A (Risk Factors): "Summarize the top 5 risks this company discloses, grouped by theme."
- Item 7 (MD&A): "How does management explain this quarter's revenue change, in plain English?"
- Explaining jargon: "Explain what a 'collateralized debt obligation' is, using a simple analogy."
Why AI can't reliably do math: LLMs break text into "tokens" — and numbers get tokenized in arbitrary, inconsistent chunks (e.g., "3.1415" might become "3." + "1415"). The model has no concept of place value or carrying digits — it's predicting plausible-looking text, not computing. Worse, because each token depends on the ones before it, a single early digit error cascades and compounds through the rest of the number. This isn't a bug that updates will fix — it's how the architecture fundamentally works.
Quick check
An AI summary of a 10-K states the company took "a $400 million headwind in Europe." What now?
In depth
More of the 10-K worth feeding an AI — and what the pros learned
Beyond Items 1, 1A, and 7, two more narrative sections are good LLM material:
- Item 1B (Unresolved Staff Comments) — open disputes with SEC staff about the company's past filings. An AI can summarize what the regulator is unhappy about without you parsing dense legal correspondence.
- Item 3 (Legal Proceedings) — pending lawsuits: the core allegations, jurisdictions, and management's view of the potential impact.
A caveat from the research: generic "chat with your PDF" setups often fail on SEC filings, because page after page of near-identical tables confuses the retrieval step — systems can return irrelevant chunks or miss data buried in tables. Specialized multi-agent systems built for financial documents scored 56% on a notoriously hard financial-document benchmark versus 19% for a standard model — better, but still far from reliable. The practical lesson: paste the exact text you want analyzed into the prompt yourself rather than trusting the tool to go find it.
The professionals' experience matches this division of labor. Major quantitative funds like Man Group and Two Sigma weave generative AI into research for coding, data discovery, and summarization. But when a European equity fund piloted a GenAI-driven stock screener, it was abandoned: analysts couldn't explain why the model favored certain obscure small-caps, and trades that can't be explained can't be defended — to compliance, or to clients. Even institutions keep the writer away from the trigger.
In depth
A field guide to AI math failures (know the crash modes)
The research catalogs how AI numbers go wrong — useful for spotting the damage:
| Failure mode | Root cause | What it does to your numbers |
|---|---|---|
| Long multiplication drift | The model can't maintain carry-propagation across digits | Calculations on large amounts drift by thousands of dollars |
| Rounding mismatches | No deterministic rounding rule (half-up vs. banker's) | Small discrepancies scale up and break reconciliation |
| Locale confusion | "12,345" vs "12.345" vs "12 345" tokenize differently | Silently poisons international calculations |
| Period misinterpretation | Text patterns override financial formulas | Annual rates applied as monthly, inflating results 12× |
Even formatting changes the model's behavior: 0.007, 7.0e-3, and 7×10⁻³ are the same number to you, but produce entirely different token sequences — and different predictions — inside the model.
The scariest failure is the most articulate one. Researchers testing models on deliberately flawed math problems (missing variables, impossible premises) found high-performing models often don't notice — instead they produce confident, verbose, well-structured answers justifying the broken premise. Applied to investing: ask an AI for a buy/sell verdict on garbage inputs, and it won't just compute wrong numbers — it will hallucinate a compelling narrative to defend them. Fluency is not accuracy.
4.3 The Golden Rules: What NEVER to Ask an AI
🚫 "What stock should I buy?"
An LLM is not a fiduciary, has no knowledge of your personal risk tolerance or financial situation, and may "hallucinate" a confident-sounding but fabricated rationale. The SEC has fined firms specifically for misrepresenting AI-driven stock-picking capabilities ("AI washing").
🚫 "Is this stock definitely halal?"
Compliance status depends on exact, current financial ratios (Lesson 2) that an LLM cannot reliably calculate or look up live. Use a dedicated rules-based screener (4.1) for the determination — and treat that as a starting point for your own research, not a fatwa.
🚫 "Calculate this company's exact P/E / debt ratio"
As covered above, precise arithmetic is exactly where generative AI is weakest. Use a calculator, spreadsheet, or screener for any number that needs to be exactly right.
Would You Ask an AI This?
For each prompt, decide: is this a good use of generative AI, or one you should never ask? Based on the golden rules above.
“Summarize the top 5 risks this company discloses in its 10-K, grouped by theme.”
“What stock should I buy?”
“Explain what a ‘collateralized debt obligation’ is, using a simple analogy.”
“Calculate this company's exact P/E and debt ratio.”
“How does management explain this quarter's revenue change, in plain English?”
“Is this stock definitely halal?”
In depth
"AI washing": when the SEC started handing out fines
The golden rules aren't just personal hygiene — regulators are actively policing AI hype. In the SEC's first-ever "AI washing" enforcement actions, two investment advisers were fined a combined $400,000: Delphia ($225,000) had claimed its algorithms put client data into "a predictive algorithmic model" to pick investments — false; Global Predictions ($175,000) had marketed itself as the "first regulated AI financial advisor" offering "expert AI-driven forecasts" — also false. Both violated the Investment Advisers Act. SEC Chair Gary Gensler's summary: "AI washing hurts investors."
The SEC, FINRA, and state regulators (NASAA) have also issued joint warnings that AI's popularity is being exploited to generate fake data, run scams, and even deep-fake impersonations of legitimate investment professionals. FINRA's Regulatory Notice 24-09 flags model accuracy, data privacy, embedded bias, and exploitation by bad actors as live concerns.
The takeaway for you as a retail investor: adopt the regulators' skepticism as your own. An LLM is not a fiduciary — it has no concept of your risk tolerance, no license, and no accountability. Treat any AI-generated number or definitive recommendation as inherently unverified until you've checked it against a primary source, a deterministic tool, or a licensed human.
4.4 Prompting Safely: The CTST Framework
When you do use AI for the qualitative tasks it's good at, structure your prompt with four elements:
Context
Tell the model what it needs to know upfront. "You are analyzing the Q3 risk disclosures for three semiconductor companies."
Task
One clear, non-mathematical objective. "Summarize the main supply-chain risks each company mentions."
Structure
Dictate the output format. "Give me a table comparing the three, then a short paragraph summary."
Tone
Set the audience/voice. "Keep it objective and concise, suitable for a personal investment journal."
And the single most important rule: "Trust nothing; verify everything." Treat every number an AI gives you as a hypothesis to check against the primary source (a filing, a screener, a spreadsheet) — never as a fact.
In depth
Power-ups: Chain-of-Thought, Program-of-Thought, and the hybrid rule
Three upgrades to the CTST framework, straight from the research:
- Chain-of-Thought (CoT). For any multi-step reasoning task, explicitly tell the model to "think step by step" or "show your work before answering." Forcing intermediate steps stops the model from compressing complex logic into one leap — in benchmark tests, this raised accuracy on complex reasoning problems from 17.9% to 74.4%.
- Program-of-Thought (PoT). If a calculation genuinely must involve an AI, don't let it do the math in prose. Have it write code instead (a spreadsheet formula or small script containing the variables and formula), then run that code yourself in a real calculator/spreadsheet. The fragile text generator plans; a deterministic machine computes.
- Strict rule modifiers. When feeding filings to a model, add hard rules to the prompt: "Never fabricate or extrapolate financial data. Only reference the exact text provided. If data is missing, say 'not found' and move on." And paste the source text into the prompt yourself — don't trust the model's memory or browsing.
All of this rolls up into one operating principle the research calls the hybrid architecture, which enterprise compliance systems enforce and you should too: a quantitative layer (screeners, spreadsheets, APIs) that does every calculation, and a qualitative layer (LLMs) that reads, summarizes, and explains. The two layers never swap jobs. Think of the LLM as an entry-level analyst with an encyclopedic vocabulary and zero mathematical comprehension: enormously useful, supervised relentlessly, and never allowed near the trade button.
In depth
A five-step workflow for AI-assisted filing research
The research distills safe AI-assisted research on official filings (the SEC's EDGAR database) into a repeatable workflow:
- Define your benchmark universe first, manually. Pick 8–12 companies genuinely comparable in industry, size, and business model before involving the AI — relevance in, relevance out.
- Isolate the exact sections you need. Researching risk? Target Item 1A and the MD&A. Don't feed the whole 150-page filing and hope.
- Paste the raw text into the prompt yourself. Don't ask the model to "look up" the filing — it may hallucinate content or pull from inaccurate third-party summaries. Ground it in the primary source.
- Add hard rules to the prompt. "Never fabricate or extrapolate financial data. Only reference the text provided. If data is missing, say 'not found' and move on."
- Verify before you rely. If the summary claims "a $400 million headwind in European markets," find that figure in the actual filing before it enters your notes.
One more current from the research worth knowing: regulators worldwide (the SEC and FINRA in the US, the EU's AI Act, the UK's FCA) are shifting their core question from "what did the algorithm do?" to "who is accountable when an AI makes a decision?" For your portfolio, the answer is always the same person: you.
Before you move on
Key takeaways
- Screeners calculate; language models predict text. Use the deterministic tool for every number and the AI for every narrative — never swap their jobs.
- AI shines on a 10-K's narrative sections (Items 1, 1A, and 7) and fails dangerously on Item 8's audited numbers.
- Never ask an AI what to buy, whether a stock is definitely halal, or for exact calculations.
- Structure prompts with CTST — Context, Task, Structure, Tone — and treat every AI output as unverified until checked against a primary source.
Test yourself
Key terms
1 of 7 reviewed
Say the definition out loud, then tap the card to check yourself.
Card 1 of 7
Knowledge check
Ready to test yourself?
5 questions — everything is covered in the lesson above. Your score isn't saved, so take it as many times as you like.
Progress is saved in this browser.