These notes describe how to average and fit numerical data that have been obtained either by simulation or measurement. It also includes scripts in python, perl and gnuplot for performing a number of tasks in data analysis and fitting, thereby providing readers with a useful reference guide.