Ruoyun Lin Data scientist lead at trivago, Germany

Hi, welcome to my personal blog! I am Ruoyun Lin, currently a data scientist lead 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.


A simple demo of Beta-Binomial Bayesian Update

Introduction

One of the most useful concepts that I’ve learned from work is about the beta-binomial model and its bayesian update process. Hence I would like to share this knowledge so that more people can benefit from it.

It is a very easy-to-use technique that can help us overcome the issue of data sparsity and give us a realistic estimation of a probability.

In the context of e-Business, we can use this technique to predict the conversion rate or click-through-rate (number of clicks/number of impressions).

Read More  →

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  →