An introduction to market analysis