begin script to generate weights based on expected value thresholds