Lesson 1
Financial Data Sources for Analysis
Financial analysis relies on data from company filings, market data providers, economic agencies and alternative sources. Good analysis requires knowing each source's content, frequency, cost and reliability, and checking data quality before use.
Primary company sources
- Annual reports and regulatory filings (e.g. SEC 10-K annual, 10-Q quarterly, 8-K current events via EDGAR).
- Financial statements: income statement, balance sheet, cash flow statement and notes.
- Earnings releases, call transcripts and investor presentations.
- Primary sources are the most authoritative for fundamentals.
Market and commercial data
- Terminals and vendors: Bloomberg, Refinitiv/LSEG, FactSet, S&P Capital IQ, Morningstar.
- Provide prices, volumes, fundamentals, estimates and corporate actions.
- Free sources: Yahoo Finance, Google Finance, exchange websites; useful but check accuracy and adjustments.
- Academic databases such as CRSP and Compustat (via WRDS).
Macroeconomic and alternative data
- Central banks and statistical agencies: Federal Reserve (FRED), ECB, IMF, World Bank, national statistics offices.
- Cover interest rates, inflation, GDP, unemployment and exchange rates.
- Alternative data: web traffic, satellite images, card transactions, social media sentiment.
- APIs allow programmatic downloads into Excel, Python or R.
Data quality considerations
- Check accuracy, completeness, timeliness and consistency of definitions.
- Adjust prices for splits and dividends (adjusted close).
- Beware survivorship bias (only surviving firms in a dataset) and look-ahead bias (using data not available at the time).
- Document sources and retrieval dates for reproducibility.
Key terms
- 10-K
- Annual audited report US public companies file with the SEC.
- EDGAR
- SEC's free online database of company filings.
- FRED
- Federal Reserve Bank of St. Louis database of economic time series.
- Alternative data
- Non-traditional data such as satellite, transaction or sentiment data used for insights.
- Survivorship bias
- Distortion from analysing only entities that still exist, excluding failed ones.
- Look-ahead bias
- Using information in a test that would not have been available at that time.
Lesson 2
Descriptive Statistics for Financial Data
Descriptive statistics summarise financial data, usually returns, through measures of central tendency, dispersion and distribution shape. They form the basis for assessing risk and return and for spotting non-normal behaviour such as fat tails.
Returns
- Simple return: R = (P1 - P0 + D) / P0.
- Log return: r = ln(P1/P0); additive over time.
- Statistics are usually computed on returns, not prices, because prices are non-stationary.
Central tendency
- Arithmetic mean = sum of returns / n.
- Geometric mean = [(1+R1)(1+R2)...(1+Rn)]^(1/n) - 1; gives the compound growth rate and is at most the arithmetic mean.
- Median is robust to outliers; mode is the most frequent value.
Dispersion
- Range = max - min.
- Sample variance s^2 = sum (Ri - mean)^2 / (n - 1); standard deviation s = sqrt(s^2), used as volatility.
- Annualise: mean x 12 for monthly data; SD x sqrt(12) (x sqrt(252) for daily).
- Coefficient of variation = SD / mean: risk per unit of return.
Shape and relationships
- Skewness: negative means long left tail (large losses more likely).
- Kurtosis: normal = 3 (excess kurtosis 0); financial returns are often leptokurtic (fat tails).
- Covariance and correlation (-1 to +1) measure how two assets move together.
- Excel: AVERAGE, MEDIAN, STDEV.S, VAR.S, SKEW, KURT (excess), CORREL, or the Analysis ToolPak.
Key terms
- Arithmetic mean
- Simple average of observations.
- Geometric mean
- Compound average growth rate over multiple periods.
- Standard deviation
- Square root of variance; measures dispersion and volatility.
- Skewness
- Measure of asymmetry of a distribution.
- Kurtosis
- Measure of tail thickness; above 3 indicates fat tails.
- Correlation
- Standardised co-movement of two variables between -1 and +1.
Lesson 3
Excel and Python for Finance
Excel and Python are the two core tools of financial analytics. Excel suits quick, transparent modelling and ad-hoc analysis, while Python (with pandas, NumPy and matplotlib) handles large datasets, automation and reproducible analysis.
Excel for Finance
- Spreadsheet grid suited to financial models, budgets and valuation (DCF) work.
- Key functions: NPV, XNPV, IRR, XIRR, PMT, VLOOKUP/XLOOKUP, INDEX-MATCH, SUMIFS.
- Tools: PivotTables, Data Tables for sensitivity analysis, Goal Seek, Solver, charts.
- Use absolute ($A$1) vs relative (A1) references correctly when copying formulas.
- Limits: row cap (about 1,048,576 rows), error-prone manual steps, weak version control.
Python for Finance
- pandas: DataFrames for loading, cleaning, merging and resampling time series.
- NumPy: fast vectorised maths (returns, matrices, simulations).
- matplotlib/seaborn: visualisation; scipy/statsmodels: statistics and regression.
- Scales to large datasets, automates repetitive reports and pulls data from APIs.
- Scripts and notebooks make analysis reproducible and auditable.
Common Financial Calculations
- Simple return = (P_t - P_(t-1)) / P_(t-1); in pandas: prices.pct_change().
- Log return = ln(P_t / P_(t-1)).
- Annualised volatility = daily standard deviation x sqrt(252).
- NPV = sum of CF_t / (1+r)^t minus initial investment.
Choosing the Tool
- Excel: small models, stakeholder-facing workbooks, quick what-if analysis.
- Python: big data, automation, Monte Carlo simulation, machine learning.
- Often combined: Python processes data and exports to Excel (e.g. pandas to_excel).
Key terms
- DataFrame
- pandas' two-dimensional labelled table structure for tabular data.
- XNPV
- Excel function computing NPV for cash flows at irregular dates.
- IRR
- Discount rate at which a project's NPV equals zero.
- Vectorisation
- Applying operations to whole arrays at once instead of looping, as in NumPy.
- Data Table
- Excel what-if tool showing how outputs change across input values.
