Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

The Hong Kong University of Science and Technology

Python and Statistics for Financial Analysis

The Hong Kong University of Science and Technology via Coursera


Course Overview:

Python is now becoming the number 1 programming language for data science. Due to python’s simplicity and high readability, it is gaining its importance in the financial industry. The course combines both python coding and statistical concepts and applies into analyzing financial data, such as stock data.

By the end of the course, you can achieve the following using python:

- Import, pre-process, save and visualize financial data into pandas Dataframe

- Manipulate the existing financial data by generating new variables using multiple columns

- Recall and apply the important statistical concepts (random variable, frequency, distribution, population and sample, confidence interval, linear regression, etc. ) into financial contexts

- Build a trading model using multiple linear regression model

- Evaluate the performance of the trading model using different investment indicators

Jupyter Notebook environment is configured in the course platform for practicing python coding without installing any client applications.


  • Visualizing and Munging Stock Data
    • Why do investment banks and consumer banks use Python to build quantitative models to predict returns and evaluate risks? What makes Python one of the most popular tools for financial analysis? You are going to learn basic python to import, manipulate and visualize stock data in this module. As Python is highly readable and simple enough, you can build one of the most popular trading models - Trend following strategy by the end of this module!
  • Random variables and distribution
    • In the previous module, we built a simple trading strategy base on Moving Average 10 and 50, which are "random variables" in statistics. In this module, we are going to explore basic concepts of random variables. By understanding the frequency and distribution of random variables, we extend further to the discussion of probability. In the later part of the module, we apply the probability concept in measuring the risk of investing a stock by looking at the distribution of log daily return using python. Learners are expected to have basic knowledge of probability before taking this module.
  • Sampling and Inference
    • In financial analysis, we always infer the real mean return of stocks, or equity funds, based on the historical data of a couple years. This situation is in line with a core part of statistics - Statistical Inference - which we also base on sample data to infer the population of a target variable.In this module, you are going to understand the basic concept of statistical inference such as population, samples and random sampling. In the second part of the module, we shall estimate the range of mean return of a stock using a concept called confidence interval, after we understand the distribution of sample mean.We will also testify the claim of investment return using another statistical concept - hypothesis testing.
  • Linear Regression Models for Financial Analysis
    • In this module, we will explore the most often used prediction method - linear regression. From learning the association of random variables to simple and multiple linear regression model, we finally come to the most interesting part of this course: we will build a model using multiple indices from the global markets and predict the price change of an ETF of S&P500. In addition to building a stock trading model, it is also great fun to test the performance of your own models, which I will also show you how to evaluate them!

Taught by

Xuhu Wan


4.4 rating, based on 416 Class Central reviews

4.4 rating at Coursera based on 3512 ratings

Start your review of Python and Statistics for Financial Analysis

  • Ronny De Winter completed this course, spending 2 hours a week on it and found the course difficulty to be medium.

    This is a compact course on statistical analysis using python on downloaded historical stock prices. You learn how to calculate moving averages (MA), buy signals based on MA, strategy profits, stock return frequency distributions, Value at Risk (VaR),...
  • Anonymous

    Anonymous completed this course.

    Executive summary: Recommend, but i personally did not like it and could spend my time better on harder and more useful courses. Complete review: The course is well arranged in terms of what contents they show in each module and it is quite practical,...
  • Be specific and provide examples when commenting on the course or the instructor. Focus on observable behaviors of the instructor or particular aspects of the course. Describe the situation you are commenting about for the feedback. For example, "we couldn't...
  • Anonymous
    The course is well arranged in terms of what contents they show in each module and it is quite practical, with some python codes to help us understand and play with the topics. But there were some things that kept me wondering that I should be spending...
  • Anonymous
    Very easy to understand! 1. Ease of use for beginners First and foremost, Python is one of the easiest programming languages to learn. You don’t need to have any programming experience to start performing data analysis in Python. Unlike R and MATLAB,...
  • Profile image for Chengkai Zhang
    Chengkai Zhang
    I personally feel that the course content is very full, but the problem is that there is no padding to quickly enter the explanation, should be more hints about the pre-course, can also explain more about how to use the functions in the package, no explanation directly to use.
  • Anonymous
    This course is very much useful. I enjoyed the course and learned a lot from it. The content is well organised and focused on practical situations. The course is well arranged in terms of what contents they show in each module and it is quite practical,...
  • Anonymous
    This course was challenging but extremely rewarding. I was able to discover new aspects regarding teaching including modeling and manipulating statistical data assets, creating graphical visualization, informing future planning, and decision-making, I feel I have gained in-depth knowledge and how it can be improved upon. Everything is good from the start. There are some very good features on the website like grades summary on a single screen. The ticket system is what I like the most. Very good supportive course materials and assessor team. I highly recommended it. They made me a more competent person in my profession.
  • Berbelek completed this course, spending 2 hours a week on it and found the course difficulty to be easy.

    I have mixed feelings about the course. It shows very practical aspects of building trading stategy in Python, which is still quite unique topic here. It also offers a lot of practice and ready to use and modify solutions delivered as Jupyter notebooks....
  • Anonymous
    This is just one of the ways binary option scams can defraud you. There are many fraudulent binary option trading platforms and brokers out there taking advantage of nice investors daily. However, if you’ve fallen victim to a bitcoin scam, there are different steps you can try to get your money back through “Highjacktech at gmale dot com” your best recovery adept when it comes to Binary options
    Call or text Whatsapp: +1 321 988 1375
  • Anonymous
    I was looking forward to a course that gives me in depth analysis of pyhton mixed with statistics and this course was good enough. plus point includes the finance part was also taught thoroughly. I really enjoyed the course. It was a bit difficult course but i managed. It gave me a picture of what i wanted in future.

    anyone who is looking for a course where python, statistics and finance are linked together this course is great opportunity.
  • Anonymous
    This course is a good introductory course into the application of data analytics with python. In reality, without a very good understanding in statistics and python, you will struggle to follow along. I often found myself re-reading simple code as it was not explained well, and I have some experience in Python.

    For someone trying to learn data analytics, I would say this is a good course to audit, and do some exercises. I completed this in a very short period of time so maybe if you split it up it may be easier to do.

    Happy Learning :)
  • Anonymous
    Interesting and very good
    This course has helped me a lot in my journey to become a good data scientist.
    At university I learned statistics and statistical inference, I already knew how to calculate. But this course helped me to know how to use them on Python and how to use them for information. Getting information is a big step towards my goal of becoming a great data scientist.
  • Anonymous
    This was a great course provided one has some background in both python and statistics. The course is very fast paced, concise, and dense, covering some complex topics at a practical level. It appears that the course is a bit dated and that it is constrained from being updated frequently or consistenly. Nonetheless, I learned a great deal from the course and enjoyed it immensely.
  • Anonymous
    The technology enabling and supporting fintech is important to understand and this course provide a brief introduction to each areas of technology that enable fintech business changes, including identity and privacy technologies ,blockchain and encryption,bigdata analytics,al and automation and can also learn essential components of technology driven financial strategies .
  • Profile image for Abdul Majeed
    Abdul Majeed
    This is a very helpful course not only in financial or making financial decision but our daily life activities as well. Although the instructor's pronunciations of some worlds were somehow confusing but I think one of they few data analysis course I took with notebooks being properly designed and documented which simplifies and demonstrates the concept discussed in the lecture videos.
  • Anonymous

    Anonymous completed this course.

    Overall, I would recommend this for a beginner of python. The classes, until the end in my opinion, were easy to follow. Some of the quizzes were a little strange and unorganized where a few of the answers honestly didnt quite make sense, but for the...
  • Anonymous
    This course is very much useful. I enjoyed the course and learned a lot from it. The content is well organised and focused on practical situations. The course is well arranged in terms of what contents they show in each module and it is quite practical,...
  • Anonymous
    It was a good course that discussed various topics of Python programming and the use of its useful libraries such as Numpy, Scipy,matplotlib,pandas, etc. in order to perform various financial analyzes using the functions available in Python libraries and statistical concepts and functions. and create and develop different strategies in the financial markets.
  • Anonymous
    It is a good introductory course that explains how to use statistical models in financial industry and trading, but if you don't have strong knowledge in statistics you will need to study other materials to understand clearly the formulas used by instructor to be able to connect both of them.

    If you have no experience in statistics I advise you to start this course but don't skip any concept until you make sure you understand it fully from external sources, each module builds on the previous module.

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.