• + 0 comments
    double maxLimit = 9800;
    int n = 49;
    
    double mean = 205;
    double stdDev = 15;
    
    double meanX = n * mean;
    double stdDevX = Math.sqrt(n) * stdDev;
    
    double p = probability(meanX, stdDevX, maxLimit);
    

    Explanation

    If you need to calculate whether the sum of random values fit the limit then you need:

    • multiply the mean in number of random values;
    • multiply standard deviation in the square root of number of random values;
    • the probability is calculated in the same way as in the previous problem.