Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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.349949Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started