Modeling and analysis of financial markets