Data science: processing, visualization and text analytics
Data science combines statistics, math, computing and domain knowledge to turn data into decisions. Financial data are noisy, time-dependent and fat-tailed. The work runs capture, curation, storage, search and transfer; results appear as heat maps, tag clouds and mind maps; natural language processing (NLP) turns text into signals.
Before this: AI and machine learning: supervised, unsupervised, reinforcement, deep
On the exam
- Describe how big data, machine learning, and artificial intelligence are used in financial data science, fintech, and investment management
Describe how data science is used in investment management. Expect "which processing step is this?", "which visual tool is this?", what natural language processing (NLP) and text analytics are suited to (unstructured text, not structured or time-series data) and the traits of financial data. No calculations.
How deeply to learn each part
- Know the idea
- Understand it in general. It frames other topics, but you will not calculate with it.
- Use it
- Understand it well enough to solve a question with it. Recognize when it applies.
- Memorize
- Learn it by heart. The exam will not give it to you.
You know this one. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still do.
You tested strong here. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still know it.
What is data science?
Data science is an interdisciplinary field that combines statistical methods, mathematical approaches, computational tools and domain knowledge to handle and interpret big data. It covers the whole pipeline, from collecting and cleaning data to modeling and interpreting it. Because alternative data are often unstructured, data scientists have to treat their structure before analysis can start.
Large datasets need infrastructure. A data lake is a central store that keeps structured, semi-structured and unstructured data in their original format. A distributed computing framework is software that splits processing across many machines. For very large datasets, artificial intelligence (AI) techniques may find complex, non-linear relationships that traditional statistics miss.
What makes financial data hard to model?
Financial data have traits that shape the methods used. These characteristics of financial data are:
- Volume and speed Use it vast, very fast
- Time dependence Use it order matters
- Noise and non-stationarity Use it patterns hide and shift
- Non-linear, changing dependence Use it copulas, neural networks
- Seasonal and cyclic patterns Use it repeat on a calendar
- Fat tails Use it extremes more frequent
- Sparse or missing data Use it short or patchy histories
- High volume and speed: markets produce vast amounts of data very fast.
- Time dependence: observations come in order and depend on earlier ones, so time-series methods are needed.
- Noise and non-stationarity: random errors and irrelevant data hide patterns, and with non-stationarity the patterns themselves shift over time.
- Non-linearity and changing dependence: relationships between assets are often non-linear and change. A copula is a function that joins each variable’s own distribution into a joint distribution, capturing how the variables depend on each other. Copulas and neural networks can model such links.
- Seasonal and cyclic patterns: quarterly earnings seasons, swings between low-rate and high-rate periods.
- Fat tails: extreme moves happen more often than a normal distribution predicts, so a model built on the normal distribution underestimates risk (see statistical distributions). These are fat tails .
- Sparse or missing data: short or patchy histories, for example in some emerging markets. Mishandled gaps bias results.
How are data processed?
Five methods cover the path from raw feed to analysis tool. Learn them in order and with one-line meanings.
- Capture Memorize collect and format; latency
- Curation Memorize clean; fix errors and gaps
- Storage Memorize record, archive, access; database design
- Search Memorize query to locate content
- Transfer Memorize move to the analysis tool
- Data capture : how data are collected and put into a usable format. Latency is the delay on a network. Low-latency systems carry high volumes of data with minimal delay and are essential for automated trading that reacts to real-time prices. High-latency systems do not need real-time data.
- Data curation : ensuring quality and accuracy through cleaning. Review all data, detect bad or inaccurate records and adjust for missing data where appropriate.
- Data storage : how data are recorded, archived and accessed, including database design. A key point is whether data are structured or unstructured, and whether the analysis needs low latency.
- Search : how to query data. Big data need applications that can examine large quantities and locate requested content.
- Data transfer : how data move from the source or storage location to the analytical tool, for instance through a direct feed from an exchange.
| Step | Example |
|---|---|
| Capture | A millisecond price feed for an execution algorithm |
| Curation | Removing duplicate trades; flagging a price 100 times too large |
| Storage | Tables for prices, a document store for filings |
| Search | Finding every mention of a supplier across 10 years of filings |
| Transfer | An exchange’s direct feed into the model |
Exam tip Clean, store, find, move. Curation is cleaning; storage is archiving and access.
Memorize
How are the results shown?
Data visualization is how data are formatted, displayed and summarized graphically.
- Structured data
- Tables, charts, trend lines
-
- Big or unstructured data
- Heat maps, tree diagrams, network graphs
- Interactive 3D graphics color, size, shape add dimensions
-
- Text data Memorize
- Tag cloud Memorize word frequency; also word cloud
- Mind map Memorize links between concepts
-
Structured data suit tables, charts and trend lines. Unstructured or very large data need richer tools: heat map s (color shows value, such as a correlation matrix), tree diagrams, network graphs and interactive three-dimensional (3D) graphics that users can zoom and rotate. With more than three variables, color, shape and size add dimensions.
For text, two tools matter. A tag cloud (also called a word cloud) sizes words by how often they appear. A mind map varies the idea: instead of frequency, it shows how concepts are related.
What do text analytics and NLP do?
Text analytics uses computer programs to analyze and derive meaning from large unstructured text or voice datasets: filings, reports, earnings calls, social media, email and surveys. It includes automated retrieval, lexical analysis (analysis of word frequency in a document) and pattern recognition on key words and phrases. It can feed predictive models that look for indicators of future performance, such as consumer sentiment, and it works on private as well as public information (customer feedback, internal email).
Natural language processing (NLP) is an important application within text analytics. It draws on computer science, AI and linguistics to develop programs that interpret human language, in text and in speech. Tasks include translation, speech recognition, text mining, sentiment analysis and topic analysis.
Investment uses: scoring the tone of earnings calls and analyst commentary, which can reveal shifts before a recommendation changes; scanning thousands of news items for company events; watching wording in central bank statements; and helping compliance teams flag unusual communications or protect confidential information.
NLP is built for unstructured text and speech, not for structured tables or price time series. It does not replace the analyst: it reads at a scale and speed no team can, and the analyst judges what it finds.
Central bank statements and speeches are a natural NLP input, because officials signal through their choice of topics, words and tone. NLP can track rising or fading themes such as inflation or growth.
Which languages and databases come up?
In the table, VBA is Visual Basic for Applications and SQL is Structured Query Language.
| Tool | Use |
|---|---|
| Python | Free, easy to learn, basis of many fintech applications |
| R | Free, built for statistical analysis, machine learning and econometrics |
| Java | Runs on many systems; underlies many internet applications |
| C and C++ | Optimized for speed; algorithmic and high-frequency trading |
| Excel VBA | Macros to automate spreadsheet tasks and data collection |
| SQL | Query language for structured tables, run on a server |
| SQLite | Embedded structured database, common in mobile apps |
| NoSQL | Database for unstructured data that do not fit rows and columns |
Go deeper Latency and automated trading
A trading program that reacts to a price change gains nothing if its data arrive late. That is why capture and transfer for such systems are built for minimal delay. A model that reviews filings once a quarter loses nothing from a slower link, so it can use cheaper, higher-latency systems.
Go deeper Sentiment scores as inputs
Some quantitative strategies treat a sentiment score as one more input, next to valuation or momentum. Like any input, it earns its place only if it still helps predict returns on data the model has not seen, which is why the test set from the machine learning lesson matters here too.
Memorize this
MemorizeFive data processing methods
| Step | It is about | Example |
|---|---|---|
| Capture | collecting data and converting to a usable format; low vs high latency | millisecond price feed |
| Curation | cleaning: find bad data, adjust for missing data | drop duplicate trades |
| Storage | how data are recorded, archived, accessed; database design | tables vs document store |
| Search | querying large data to find content | every mention of a supplier |
| Transfer | moving data from source or storage to the analysis tool | direct exchange feed |
Memory hook C-C-S-S-T: Capture, Curate, Store, Search, Transfer. Clean, store, find, move. Curation = cleaning, not archiving.
Know it cold Low latency matters for automated trading on real-time prices; high-latency systems do not need real-time data.
MemorizeVisual tools and NLP
| Tool | Shows |
|---|---|
| Tag cloud (word cloud) | word frequency (bigger = more often) |
| Mind map | how concepts relate |
| Heat map | values by color (e.g. correlations) |
| NLP | interprets human language, text and speech: translation, speech recognition, sentiment, topic analysis. Suited to unstructured text and speech, not structured or time-series data |
Memory hook Cloud = counts, map = connections.
Know it cold Structured data: tables, charts, trends. Unstructured or big data: heat maps, tree diagrams, network graphs, interactive 3D.
MemorizeWhat makes financial data hard
| Trait | So you need |
|---|---|
| Volume and speed | fast infrastructure (data lakes, distributed computing) |
| Time dependence | time-series methods |
| Noise, non-stationarity | methods that adapt to shifting patterns |
| Non-linear, changing dependence | copulas, neural networks |
| Seasonal and cyclic | models that detect periodicity |
| Fat tails | risk models beyond the normal distribution |
| Sparse or missing data | careful handling of gaps |
Memory hook Fast, ordered, noisy, tangled, seasonal, extreme, patchy.
Know it cold Fat tails: extremes are more frequent than a normal distribution predicts.
- Capture Memorize collect and format; latency
- Curation Memorize clean; fix errors and gaps
- Storage Memorize record, archive, access; database design
- Search Memorize query to locate content
- Transfer Memorize move to the analysis tool
- Structured data
- Tables, charts, trend lines
-
- Big or unstructured data
- Heat maps, tree diagrams, network graphs
- Interactive 3D graphics color, size, shape add dimensions
-
- Text data Memorize
- Tag cloud Memorize word frequency; also word cloud
- Mind map Memorize links between concepts
-
- Volume and speed Use it vast, very fast
- Time dependence Use it order matters
- Noise and non-stationarity Use it patterns hide and shift
- Non-linear, changing dependence Use it copulas, neural networks
- Seasonal and cyclic patterns Use it repeat on a calendar
- Fat tails Use it extremes more frequent
- Sparse or missing data Use it short or patchy histories
How it is asked
-
Which processing step?
A data scientist finds and corrects errors and fills missing values. Which step?
Curation. Trap: storage or capture.
-
Word-size chart
A chart sizes each word by how often it appears in a chief executive’s letter.
Tag cloud. Trap: mind map (relationships).
-
Tone of earnings calls
Software scores whether tone on earnings calls is becoming more negative.
NLP (sentiment analysis). Trap: unsupervised clustering.
-
Latency
Which application most needs a low-latency system?
Automated trading on real-time prices, not a periodic report.
-
What suits NLP?
Which dataset is NLP best suited to: bond price history, earnings-call transcripts, or a table of ratios?
Transcripts (unstructured text). Trap: price history (a time series).
-
Fat tails
Large daily losses occur more often than a normal model predicts. Which trait?
Fat tails. Trap: non-stationarity.
Exam traps
- Confusing curation (cleaning) with storage (archiving and access).
- Calling a tag cloud a mind map. A tag cloud shows frequency; a mind map shows relationships.
- Thinking NLP works only on written text. It also handles speech.
- Treating all applications as needing real-time data. Only some, such as automated trading, require low latency.
- Applying NLP to structured or time-series data. It is built for unstructured text and speech.
- Treating a normal distribution as safe for returns. Financial returns are fat-tailed, so it understates extreme losses.
Checkpoint
5 exam-style questions. About 90 seconds each.
1A data scientist reviews a price database to find and correct errors and fill missing values. This step is best described as data:
2A chart that sizes each word by how often it appears in a chief executive's letter is a:
3An analyst uses software to score whether management's tone on earnings calls is becoming more negative. This is most likely an application of:
4Which application most likely needs a low-latency data system?
5An analyst wants to use natural language processing (NLP). Which dataset is it best suited to?
Key takeaways
- Data processing runs capture, curation, storage, search and transfer.
- Tag clouds show word frequency, mind maps show relationships, heat maps show values by color.
- Text analytics and NLP turn filings, calls, news and speech into signals such as sentiment.
- Financial data are fast, time-dependent, noisy, non-linear, seasonal, fat-tailed and sometimes patchy.
- Python, R, Java, C/C++ and Excel Visual Basic for Applications (VBA) are common languages; Structured Query Language (SQL), SQLite and NoSQL store data.
Questions about this lesson?
Where this comes back
- Large language models and generative AI in finance Financial Data Science
Questions candidates ask
What are the data processing methods in data science?
Capture (collecting data in a usable format), curation (cleaning and fixing errors and gaps), storage (recording, archiving and access), search (querying to find content) and transfer (moving data from source or storage to the analysis tool).
What is a tag cloud?
A text visualization that shows words sized by how often they appear in the data: frequent words are large, rare words small. A mind map differs because it shows how concepts relate rather than how often they occur.
How is natural language processing used in investing?
NLP interprets human language, in text and speech. Investors use it to score the tone of earnings calls and analyst commentary, scan news for events, track central bank wording, and help compliance teams review communications.
What are the characteristics of financial data?
Financial data arrive in large volumes at high speed, depend on time order, are noisy and change behavior over time, show non-linear and shifting links between assets, follow seasonal and cyclic patterns, have fat tails (more extreme moves than a normal distribution predicts) and can be sparse or missing.
Spotted an error? Tell us and we will fix it.