Recent Posts

Effectively Deploying and Scaling Shiny Apps with ShinyProxy, Traefik and Docker Swarm

This post provides a guide to effectively and securely scale your ShinyProxy deployment of shiny apps in production with Docker Swarm and Traefik

Securing and Monitoring ShinyProxy Deployment of R Shiny Apps

This post provides a guide to secure ShinyProxy with Nginx, Certbot and AWS Cognito, and monitor usage statistics with InfluxDB, Telegraf and Grafana.

Simulating Coronavirus Outbreak in Cities with Origin-Destination Matrix and SEIR Model

This is a step-by-step guide on simulating and visualising the spread of coronavirus in the Greater Tokyo Area based on Origin-Destination Matrix and SEIR Model with R.

Global COVID-19 Deaths Tracker

Updated daily

The Effectiveness of Reducing Population Movement in Managing Coronavirus Outbreak

This post illustrates simulations of coronavirus outbreak in central Tokyo area based on SIR model and origin-destination flow data.

Yihui Fan

Data Scientist

About me

Working as a data scientist in a management consulting firm, my job involves helping businesses and policymakers to understand and manage consumer decision-making, solving business problems, generating data-driven insights, and developing data products.

I am also an AI / deep learning enthusiast and enjoy taking part in data science competitions and open source projects. If you find my posts interesting, please connect with me on or and I am happy to chat more!


  • Statistical Modelling
  • Natural Language Processing and Deep Learning
  • Data Visualisation
  • Behavioural Science


  • MSc in Machine Learning, 2018

    Birkbeck, University of London

  • MSc in Quantitative Social Science, 2014

    University of Oxford

  • BA Linguistics and Sociology, 2013

    University of Manchester