Question: Can someone help me code this in C Probability A statistician needs to evaluate the probability, p, of the value of x occurring in a

Can someone help me code this in C

Can someone help me code this in C Probability A statistician needsto evaluate the probability, p, of the value of x occurring in

Probability A statistician needs to evaluate the probability, p, of the value of x occurring in a sample set with a known normal distribution. The mean of the distribution is u = 10.71 and the standard deviation is o = 1.14. 1. Write a double => double function prob with parameter x that computes the value of the probability formula for a normal distribution, which follows. To compute et, use the exp() function from the math library; its prototype is double exp( double x). p = ax X e-d, where d = [a-Bal 2. Write a main program to input the value for x, call your probability function, and print the results. Hint: consider a = 3.141592 Sample Output Probability of x given mu=10.71 and sigma=1.14 Enter the value of x: 10.71 The probability of 10.71 in this distribution is 0.349949

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!