Ruoyun Lin A data scientist at trivago, Germany

Hi, welcome to my personal blog! I am Ruoyun Lin, a data scientist at trivago. This is an online place for me to keep some relatively random stuffs: thoughts and reflections on my life and work, and beyond.


Covariate shift -- Demos for understanding the concept and showing the fix

Introduction

Time flies, two years have passed since I posted my first blog.

Here I am again, to announce the topic of this year’s first post will be (drumroll, please)…COVARIATE SHIFT!

This was actually inspired by a recent task I had at work. After a couple of weeks of researching, I would like to share a few learnings.

Read More  →

Financial Analysis in Python #4: Compare Investment Strategies for Short-term Investment

Overview

This is the fourth blog post of my Finaical Analysis in Python series.

This blog series covers topics like the following:

  • how to visualize the long-term investment plan
  • backtest dollar-cost averaging strategy for long-term investment
  • backtest value averaging strategy for long-term investment
  • compare different investment strategies for short-term investment
Read More  →

Financial Analysis in Python #3: Backtest Value Averaging Strategy for Long-term Investment

Overview

This is the third blog post of my Finaical Analysis in Python series.

This blog series covers topics like the following:

  • how to visualize the long-term investment plan
  • backtest dollar-cost averaging strategy for long-term investment
  • backtest value averaging strategy for long-term investment
  • compare different investment strategies for short-term investment
Read More  →

Financial Analysis in Python #2: Backtest Dollar Cost Averaging Strategy for Long-term Investment

Overview

This is the second blog post of my Finaical Analysis in Python series.

This blog series covers topics like the following:

  • how to visualize the long-term investment plan
  • backtest dollar-cost averaging strategy for long-term investment
  • backtest value averaging strategy for long-term investment
  • compare different investment strategies for short-term investment
Read More  →

Financial Analysis in Python #1: How to Visualize Long Term Investment Plan

Overview

It is always important to learn how to invest your money properly so that you do not need to worry about money after retirement.

Starting from this blog post, I am going to share how I used python to set up my own investment plan.

I will try to cover a few topics like:

  • how to visualize the long term investment plan
  • backtest dollar-cost averaging strategy for long-term investment
  • backtest value averaging strategy for long-term investment
  • compare different investment strategies for short-term investment
Read More  →

Analyze Survey Monkey data using Python

Introduction

Survey Monkey is an online survey software that helps you to create and run online surveys. It is also possible to visualize the survey results in Survey Monkey (for a single survey). However, if we want to compare the same question across several different surveys, it is difficult to do so directly in Survey Monkey. Luckily, we can solve the problem by using programming languages like Python.

Read More  →