Question: Please do this on MATLAB or Octave, thank you. Consider the function: 1 x2 Q(x) let dx V21 AKA the CDF (Cumulative Distribution Function) of
Please do this on MATLAB or Octave, thank you.
Consider the function: 1 x2 Q(x) let dx V21 AKA the CDF (Cumulative Distribution Function) of the Normal Distribution in probability. Write a script which asks the user for a value for x, and calculates the value of (x) by numerically evaluating the integral from -10 until x (assuming x is greater than -1, the difference between evaluating the integral from or from -10 will be less than 10-40%) (Do not use the quad function or any other similar numerical integration function. Any of the 3 methods for numerically evaluating an integral are acceptable, though the method should produce reasonable" results. A good way to check if the results are reasonable is if (0) is within 1% of 0.5)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
