Backtesting evaluates the viability of a trading strategy or pricing model by finding out how it would have performed in retrospect using historical data.