q.Quantitative TradingEnglish course · Lesson 11 of 24Course home

Lesson 11 / Data Quality and Information Availability

Does a tidy table mean the data are reliable?

Check the inputs before calculating. The OHLCV table contains deliberate errors. Preserve the evidence and identify the gaps before attempting to repair the data.

What you will learn

  1. Check market data fields and unique keys
  2. Distinguish missing data, stock splits, and genuine crashes
  3. Create a data dictionary and a processing log

Allow about 30–45 minutes. The exercises use fictional data. The page checks structured answers in your browser. Export your work before refreshing.

Start with the concepts ↓
Concept 01

A bar compresses many events

OHLCV stands for open, high, low, close, and volume. The high must be at least as high as both the open and close, and the low at most as low as both. Check volume units. The daily high and low alone cannot tell you whether a take-profit or stop-loss level was reached first.

A timestamp can refer to the open, close, or an interval boundary. Record the time zone, venue, instrument, frequency, and actual availability time. The same calendar date can correspond to different moments when the data are available.

Concept 02

Investigate gaps before filling them

Duplicate keys can come from retries, revisions, or different venues. Identify the unique key and authoritative version before selecting a record. A missing observation could be due to a market holiday, a trading halt, or an API failure. Each can require a different response.

Preserve the original values, source evidence, processing rules, and updated values. If a value remains uncertain, pause any calculations that rely on it and document the gap.

Concept 03

Account for price and quantity together

In a two-for-one split, the share price roughly halves and the share count doubles. A price-only calculation would incorrectly report −50%. If you use unadjusted prices in the ledger, account for share quantities and cash distributions. If you use a total-return series, include dividends only through that series.

An outlier can be a real crash. Verify corporate actions, units, and sources. Deleting the worst real moves would understate drawdown.

Concept 04

The asset universe changes over time

Looking at the past using only today's surviving assets leaves out delisted ones. Historical membership, publication timestamps for financial reports, and revisions can all introduce look-ahead or survivorship bias.

A basic data dictionary records the column name, unit, time zone, source, availability, and how missing values are handled. Make the processing script repeatable and explain how its rules serve the research question.

Experiment · Predict the outcome, then change one input

Data Quality and Information Availability experiment

The D2 close of 104 exceeds its recorded high of 103. A second D2 row closes at 102. D3 is missing for an unknown reason. D4 shows 51 after a stock split. List what needs investigation before choosing a policy.

Review the same intentionally flawed table. Changing policies demonstrates the consequences while leaving the source table intact.

Practice with fixed inputs

Try the calculations

Use the values in each question. Enter amounts and percentages in the requested units, including a minus sign where needed.

Knowledge check

Explain your reasoning

1. The D2 close is 104 and the high is 103. What should you do first?
2. Can you fill missing D3 directly with the previous day's price?
3. What does a roughly halved price after a two-for-one split mean for the account?
4. If two markets join on the same date, can you use both records for a decision at that time?

Record your work

Lesson work

Create a data issue log for Stage 3.

Submit a data issue log

On D2, the high is 103 and the close is 104. D2 also has a duplicate row of unknown version. D3 is missing for an unknown reason. Before the D4 open, each old share is split into two. You held 10 shares priced at 102 before the split. The post-split price is 51.

Complete the questions below before trying the optional writing exercise. Use the fixed inputs here, even if you changed the experiment above. Enter numbers in the units shown and keep at least two decimal places where needed. Follow the specified precision for tables. You can check one answer at a time or all answers together.

1. Which issues should you flag and investigate? Select all that apply.
Reference answer (try the question first)
2. Number of shares held after the split
shares
Reference answer (try the question first)
3. Market value of the position after the split
yuan
Reference answer (try the question first)
4. How should you handle D3 before verifying the cause?
Reference answer (try the question first)

Save your homework to export these results. Check again after changing an answer. Optional writing and self-assessment are ungraded. Save your work before refreshing.

Optional writing (ungraded)

Writing guidance and self-review

Record the inputs, rules, results and open questions in each field. You can cite the earlier calculations and experiments as fictional examples. Tie each conclusion to specific data or events.

Use the checklist to review your own writing. Use evidence from the study to evaluate the strategy.

Save the experiment, the run log, your first and current checks, written work and self-review. Export before refreshing or closing the page.