code for bias-variance-analysis