Text-based data for financial forecasting

Text-based data for financial forecasting

Published September 28, 2026

Text-based data for financial forecasting

On this page

Learning Outcome Statement

Describe preparing, wrangling, and exploring text-based data for financial forecasting.

On the exam: An item-set vignette gives text sources, timestamps, raw-data defects, cleaning choices, and exploratory displays, then asks you to select or sequence the appropriate preparing, wrangling, or exploring action and diagnose look-ahead or coverage problems. Start by identifying the forecast cutoff. A source may be clean and still unusable if it arrived late, while an untidy source may be repairable if it arrived in time. The answer choices often test that distinction rather than your ability to recite a cleaning method.

A forecast begins with a decision, not a pile of documents. You choose text sources that could have been known at the forecast cutoff, preserve the raw text, and attach issuer, document ID, reporting period, and availability metadata. Preparing makes records readable, while wrangling removes duplicate text, missing timestamps, headers, and encoding noise without deleting financially meaningful negation, numbers, or entities. Exploration then checks whether the corpus is complete and credible before missing or repeated language can distort your forecast.

StageCheckOutput
ObjectiveForecast question and cutoffDecision boundary
SourceTranscripts, filings, or newsRaw text and metadata
PrepareEncoding, timestamps, document IDsReadable records
WrangleDuplicates, headers, missingnessConsistent text
ExploreCoverage, missingness, term frequencies, timeDescriptive evidence
Forecast-ready textCutoff-safe, cleaned recordsUsable corpus

Treat availability time as a data field, not an afterthought. A missing timestamp cannot demonstrate cutoff eligibility, so flag the record for review or leave it out, then explore coverage, missingness, duplicates, term frequencies, and time patterns before the corpus supports a forecast. This sequence matters because cleaning can improve readability without proving when the text became usable. A coverage display can expose a quiet period or a source gap that a term-frequency display would not explain.

Loading diagram…

The flow diagram gives the order; the figure below makes the cutoff decision visible at record level. Keep the original source and its identity, then compare availability time with the forecast cutoff before treating cleaned text as usable. Removing duplicate wording prevents a repeated passage from gaining extra weight. After those checks, coverage and time patterns help you judge whether the remaining corpus is credible.

To test eligibility, index a document with $i$. Its availability time is $a_i$, measured on the same timestamp scale as the forecast cutoff $c$. A duplicate flag, $d_i$, records duplicate status, where $\mathrm{unique}$ means no earlier available copy has the same text. The inclusion indicator $e_i$ records whether the document passes both checks, and $\mathbb{I}$ returns the status associated with its condition.

$$ e_i = \mathbb{I}\left(a_i \le c \quad \text{and} \quad d_i=\mathrm{unique}\right) $$

The availability condition admits text only when its timestamp is no later than the cutoff. The duplicate condition keeps the first usable copy instead of counting repeated wording again. Candidates often keep a late filing because its reporting period fits the forecast, and that feels right because the period describes the economics being forecast. The timestamp gives it away, since a relevant reporting period cannot override either condition, so exclude the document.

Worked example

You are handed quarterly mean sentiment scores from a sample of earnings-call transcripts. The analyst views the sample from the investor perspective, and each transcript was available by the relevant forecast cutoff. You need to explore the pattern and state what it supports before a forecasting decision.

GivenValue
FrequencyQuarterly
SampleEarnings-call transcripts
PerspectiveInvestor
AvailabilityBy relevant forecast cutoff
Score unitDimensionless mean score
Sign conventionPositive favorable, negative unfavorable
Hypothesis testNone
Tail conventionNone
Q1 mean sentiment0.18
Q2 mean sentiment0.11
Q3 mean sentiment-0.04
Q4 mean sentiment0.22

Use the table as the chart’s key. Each point is a quarterly mean sentiment score from the same investor-perspective sample, and every transcript was available by the relevant cutoff. Read the vertical position as favorable or unfavorable tone according to the stated sign convention. The chart makes the sequence easier to scan, but it adds no test, return measure, or forecast result beyond the values listed.

Loading diagram…
  1. Verify the sample and timing first. This prevents look-ahead from entering the investor’s analysis. The check produces the cutoff-safe observations Q1 = 0.18, Q2 = 0.11, Q3 = -0.04, and Q4 = 0.22.
  2. Read the means in time order. This shows how tone moves across the quarters before you attach an interpretation. The ordered values are 0.18, 0.11, -0.04, and 0.22. Positive scores indicate favorable tone, so Q3 is unfavorable and Q4 is most favorable.
  3. Check what the display can support. This prevents a descriptive pattern from being treated as a tested result or forecast signal. The step produces no test statistic or rejection number because there is no hypothesis test or tail convention.

The result is a cutoff-safe descriptive series that flags unfavorable tone in Q3 and the strongest favorable tone in Q4, but it does not establish causation or forecast performance.

Changed condition

CheckBeforeAfter
AvailabilityBefore forecast cutoffAfter forecast cutoff
Reporting periodRelevant periodSame relevant period
Inclusion statusRetain documentExclude document

Before you look at the result, predict the movement: the document moves from eligible to excluded because its availability passes the cutoff, while its reporting-period label stays relevant. The investor now has less source coverage, and the time pattern may change because later text cannot enter the investor's information set. Rebuild the coverage and time checks after you exclude the document.

Common error

You include every document dated within the forecast period. That feels right because the period label appears to place the document inside the information window. The mistake shows up when the publisher releases a document after the forecast cutoff or when duplicated text first becomes available later.

Check yourself

Practice

An analyst forecasts an issuer's next quarterly results from earnings-call transcripts and company filings. Transcript A discusses a prior reporting period and was available before the forecast cutoff. Transcript B discusses the forecast period but was published after the cutoff. Transcript C repeats text already available in an earlier record, but its first availability is after the cutoff. Raw records also contain repeated headers, missing timestamps, and punctuation attached to numbers. The analyst wants a cutoff-safe corpus and descriptive checks before forecasting.

Question 1

Which record should enter the forecast corpus on the stated availability information?

Question 2

Which preparation action should the analyst select first?

Question 3

Which wrangling choice best protects financial meaning?

Question 4

Which exploratory review should follow cleaning?

What conclusion is justified by the quarterly sentiment display?

Revision snapshot

Use the inclusion rule before any text enters the forecast set.

$$ e_i = \mathbb{I}\left(a_i \le c \quad \text{and} \quad d_i=\mathrm{unique}\right) $$

RecallExam use
WorkflowObjective $\rightarrow$ source $\rightarrow$ prepare $\rightarrow$ wrangle $\rightarrow$ explore $\rightarrow$ forecast-ready text
RuleAvailability time, not reporting period, controls entry
CleaningPreserve financially meaningful negation, numbers, and entities
ExplorationCheck coverage, missingness, duplicates, term frequencies, and time patterns before modeling
BoundaryReveals associations and data problems, not causation or model fit
TrapCheck publication timestamp and first availability
Exam angleSequence actions and diagnose look-ahead or coverage

Unlock the full lesson and continue reading

Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more

Scan to download app

Scan to download
UNLOCK FREE ACCESS

Flashcards: Text-based data for financial forecasting

  1. 1. When used for generating inferences, what is the additional characteristic of big data?

    Show answer

    veracity or validity of the data

  2. 2. What is text processing?

    Show answer

    the cleansing and preprocessing of text-based data

  3. 3. What is data wrangling?

    Show answer

    involves preprocessing data for model use

  4. 4. What are the four steps in order to analyze unstructured, text-based data?

    Show answer

    1\) text problem formulaiton\ 2\) data collection (curation)\ 3\) text preparation and wrangling\ 4\) text exploration

  5. 5. What are the data analysis steps?

    Show answer

    1\) conceptualization of the modeling task\ 2\) data collection\ 3\) data preparation and wrangling\ 4\) data exploration\ 5\) model training

  6. 6. What are the four text cleansing steps?

    Show answer

    1\) remove HTML tags\ 2\) remove punctuations\ 3\) remove numbers\ 4\) remove white spaces

  7. 7. What is structured data?

    Show answer

    data organized in columns and rows

  8. 8. What are the three Vs of big data?

    Show answer

    volume, variety and velocity

Everything you need for CFA prep

Get full Oncourse access with lessons, practice questions, flashcards and AI study tools.

GET STARTED FOR FREE
75% OFFLimited time offer
GET 75% OFF