Question: C++ please 2. A x2 test is often used to check the validity of binned data and consists of evaluating ( )2 Ni - nj

C++ please

C++ please 2. A x2 test is often used to check the

2. A x2 test is often used to check the validity of binned data and consists of evaluating ( )2 Ni - nj ni 2 where Ni is the number of observed items in bin i and ni Is the number of items expected in bin i. Write a program that has an integer array representing ten bins and uses the library procedure, rand) (or our unif) procedure), to generate a sequence of random numbers in the range 0 to 999. If the generated number is in the range 0 to 99, then increment bin 1, if the number is in the range 100 to 199, then increment bin 2, and so on. Your program should send the value of x* and the total number of items to the terminal

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!