I am asking this because I have created a program in which a user inputs a some data, then inputs either a z value or an x value and the output is the probability . If the elements within the input data is less than 30, then the program uses the std() function for standard deviation. However, if the data exceeds 30 elements, then the program finds the population standard deviation, and uses that for sigma.
If the user inputs an x value, this is easy in that I can just use the given x, mu and respective sigma for the normpdf() calculation. However, if the user inputs a z value, I am not sure if I should use mu = 0 and sigma = 1 in normpdf(), or if I should change the z value to an x value, then use the respective mu and sigma values.
Best Answer