A APPENDIX A.1 Data Preparation