Data analysis script