Hi @Marco_ , could you explain in more detail which values you want to vary and which values you want to integrate?
I wonder about the integral. Maybe better average?
Also - will the integral/average be over the whole range or just a small region around a central value x1c +/- sigma?
Regarding integral in general - according to the scripting index, the second argument should be a variable.
So I was wondering if it is at all possible to put a column name there:
Integrate(:x1, :x1, -1, 1)
![hogi_3-1709367248910.png hogi_3-1709367248910.png](https://community.jmp.com/t5/image/serverpage/image-id/61741i964A79110D64DE60/image-size/medium?v=v2&px=400)
Not really: Jmp first replaces x1 in the first argument with the entry of column :x1 - and then uses this constant numeric value for Integrate, so
Integrate(:x1,:x1,-1,1) = :x1 * Integrate(1,:x1,-1,1)= 2 :x1
[along this line: If there is no value in column :x1, the result is undefined.]
Same finding for the profiler:
- Jmp provides a slider for :x1 - despite the Integral.
- the result is not 0, but 2 x1
![hogi_2-1709366388791.png hogi_2-1709366388791.png](https://community.jmp.com/t5/image/serverpage/image-id/61740i45897925F62725C5/image-size/medium?v=v2&px=400)
This fits to your findings: Integral = 2 x Expanded Desirability.
As a solution, let's follow the scripting index and use a variable (z):
![hogi_0-1709308671256.png hogi_0-1709308671256.png](https://community.jmp.com/t5/image/serverpage/image-id/61709i3781586591D50075/image-size/medium?v=v2&px=400)
![hogi_1-1709308725719.png hogi_1-1709308725719.png](https://community.jmp.com/t5/image/serverpage/image-id/61710i6CEB280F101FCDD5/image-size/medium?v=v2&px=400)
If you generate a profiler plot for Integral, Jmp just displays sliders for x2 and x3 and calculates the integral over z (old :x1):
![prediction_profiler.gif prediction_profiler.gif](https://community.jmp.com/t5/image/serverpage/image-id/61711i9E78E506F263D4CE/image-size/medium?v=v2&px=400)