Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming Languages 12th International Symposium Dbpl 2009 Lyon France August 2009 Proceedings Lncs 5708

Authors: Philippa Gardner ,Floris Geerts

2009th Edition

3642037925, 978-3642037924

More Books

Students also viewed these Databases questions

Question

=+Does the message include a solution to overcome the guilt?

Answered: 1 week ago