Questions
Consider the levels of GHB for control patients and patients under treatment: control: 0.7, 0.5, 0.6,...

Consider the levels of GHB for control patients and patients under treatment:

control:

0.7, 0.5, 0.6, 0.8, 0.8, 1.1, 0.5, 0.4, 0.6, 0.7, 0.5, 1.0, 1.5, 1.4, 0.7, 0.9, 0.6, 0.8, 0.9, 1.0, 0.7, 0.7, 0.7, 0.8, 1.0, 0.6, 1.2, 0.7, 0.9, 0.9

treatment:

0.7, 0.8, 0.7, 0.6, 1.0, 0.9, 1.4, 1.4, 1.0, 0.8, 0.6, 1.3, 0.4, 0.5, 0.9, 1.0, 1.0, 0.5, 0.7, 1.0, 1.2, 1.3, 0.6, 1.0, 0.8, 1.4, 0.8, 1.0, 1.3, 1.4

a. Do a 95% hypothesis test to test if:

(H0) the mean CONTROL level is greater than 0.89 vs. (Ha) he mean CONTROL level is less than 0.89.

Report the p-value:

Reject Null hypothesis at the 95% level of confidence?

yes OR no    

b. Do a 95% hypothesis test to test if:

(H0) the mean of the CONTROL is equal to the mean of the TREATMENT vs. (Ha) the mean of the CONTROL is not equal to the mean of the TREATMENT.

Report the p-value:

Reject Null hypothesis at the 95% level of confidence?

yes OR no    

c. Do a 95% hypothesis test to test if:

(H0) the mean of the CONTROL is less than the mean of the TREATMENT vs. (Ha) the mean of the CONTROL is greater than the mean of the TREATMENT (Ha).

Report the p-value: .

Reject Null hypothesis at the 95% level of confidence?

yes OR no    

In: Statistics and Probability

Consider the levels of GHB for control patients and patients under treatment: control: 0.7, 0.5, 0.6,...

Consider the levels of GHB for control patients and patients under treatment:

control:
0.7, 0.5, 0.6, 0.8, 0.8, 1.1, 0.5, 0.4, 0.6, 0.7, 0.5, 1.0, 1.5, 1.4, 0.7, 0.9, 0.6, 0.8, 0.9, 1.0, 0.7, 0.7, 0.7, 0.8, 1.0, 0.6, 1.2, 0.7, 0.9, 0.9

treatment:
0.7, 0.8, 0.7, 0.6, 1.0, 0.9, 1.4, 1.4, 1.0, 0.8, 0.6, 1.3, 0.4, 0.5, 0.9, 1.0, 1.0, 0.5, 0.7, 1.0, 1.2, 1.3, 0.6, 1.0, 0.8, 1.4, 0.8, 1.0, 1.3, 1.4

a. Do a 95% hypothesis test to test if:

(H0) the mean CONTROL level is greater than 0.89 vs. (Ha) he mean CONTROL level is less than 0.89.

Report the p-value: ___
Reject Null hypothesis at the 95% level of confidence?

no

yes    


b. Do a 95% hypothesis test to test if:

(H0) the mean of the CONTROL is equal to the mean of the TREATMENT vs. (Ha) the mean of the CONTROL is not equal to the mean of the TREATMENT.

Report the p-value: ___
Reject Null hypothesis at the 95% level of confidence?

yes

no    


c. Do a 95% hypothesis test to test if:

(H0) the mean of the CONTROL is less than the mean of the TREATMENT vs. (Ha) the mean of the CONTROL is greater than the mean of the TREATMENT (Ha).

Report the p-value: ___
Reject Null hypothesis at the 95% level of confidence?

yes

no    

In: Statistics and Probability

#include <iostream> #include <iomanip> using namespace std; int main() {             float miles;   //miles traveled           

#include <iostream>

#include <iomanip>

using namespace std;

int main()

{

            float miles;   //miles traveled

            float hours;   //time in hours

            float milesPerHour; //calculated miles per hour

            cout << "Please input the Miles traveled" << endl;

            cin >> miles;

            cout << "Please input the hours traveled" << endl;

            cin >> hours;

           

            milesHours = miles / hours;

cout << fixed << showpoint << setprecision(2);

            cout << "Your speed is " << milesPerHour << " miles per hour" << endl;

            return 0;

}

1. Rewrite the above program such that function main call a return type function named findMilesPerHours to calculate the number of miles per hours. Finish function prototype, call and function definition.#include <iostream>

#include <iomanip>

// Function prototype here

……………………………………………………………………..

using namespace std;

int main()

{

           

            float miles;   //miles traveled

            float hours;   //time in hours

            float milesPerHour; //calculated miles per hour

            cout << "Please input the Miles traveled" << endl;

            cin >> miles;

            cout << "Please input the hours traveled" << endl;

            cin >> hours;

           

            // Function call here

……………………………………………………………………..

cout << fixed << showpoint << setprecision(2);

            cout << "Your speed is " << milesPerHour << " miles per hour" << endl;

            return 0;

}

// Function definition here

……………………………………………………………………..

  1. Rewrite the above program such that function main will call the void function named findMilesPerHours to calculate the number of miles per hours. Finish function prototype, call and function definition.

  

#include <iostream>

#include <iomanip>

using namespace std;

// Function prototype here

……………………………………………………………………..

int main()

{

     

       float miles;   //miles traveled

            float hours;   //time in hours

            float milesPerHour; //calculated miles per hour

            cout << "Please input the Miles traveled" << endl;

            cin >> miles;

            cout << "Please input the hours traveled" << endl;

            cin >> hours;

           

            // Function call here

……………………………………………………………………..

cout << fixed << showpoint << setprecision(2);

              cout << "Your speed is " << milesPerHour << " miles per hour" << endl;

            return 0;

}

// Function definition here

……………………………………………………………………..

In: Computer Science

Life Span of Tires: A certain brand of automobile tires has a mean life span of...

Life Span of Tires: A certain brand of automobile tires has a mean life span of 35,000 miles and a standard deviation or of 2,250 miles. (Assume a bell-shape distribution).

  1. The span of three randomly selected tires are 34,000 miles, 37,000 miles, and 31,000 miles. Find the z-scores that correspond to each life span. Would any of these tires be considered unusual?
  2. The life spans of three randomly selected tires are 30,500 miles, 37,250 miles, and 35,000 miles. Using the Empirical Rule, find the percentile that corresponds to each life span.

In: Statistics and Probability

The paired values represent the weights (carats) and prices (dollars) of randomly selected diamonds. Weight 0.2...

The paired values represent the weights (carats) and prices (dollars) of randomly selected diamonds.

Weight 0.2 0.4 0.5 0.6 0.9 0.7 0.8
Price 610 1354 1343 1752 5605 2277

2600

39. Compute the least squares regression line for the predicted price for a given weight.

40. Calculate the correlation coefficient between the two variables.

Please show work using excel functions!

In: Statistics and Probability

1. There are 9 members on a board of directors. If they must form a subcommittee...

1. There are 9 members on a board of directors. If they must form a subcommittee of 6 members, how many different subcommittees are possible?

60,480
720
84
531,441

2. A card is drawn at random from a well-shuffled deck of 52 cards. What is the probability of drawing a face card or a 5?


16

3. A pitching machine throws 70% strikes and 30% balls. Five pitches will be thrown by the machine.
What is the probability the machine will throw one ball and four strikes?

0.3 × 0.74

0.3 + 4 × 0.7

5 × 0.3 × 0.74

none of these

4. Suppose that A, B are two independent events, with P(A) = 0.1 and P(B) = 0.2.
Find P(A or B).


0.15

0.02

0.30

0.28

In: Statistics and Probability

Question 01 (Part A) Define the regression if the raw material used in production of a...

Question 01 (Part A)

Define the regression if the raw material used in production of a certain synthetic fiber measurement of the relative humidity the storage location and the moisture content.

Relative Humidity x

0.1×H+1

0.2×H+2

0.3×H+3

0.4×H+4

0.6×H+1

0.7×H+3

Moisture Content y

0.2×H×2

0.3×H×3

0.1×H+1

0.6×H+1

0.7×H+2

0.4×H+3

  1. Plot a graph Y vs. X showing these points or the graph is also called scatter diagram.
  2. Calculate ∑ X, ∑ Y, ∑X2, ∑Y2, ∑XY, mean of X and mean of Y.
  3. Calculate regression equation Y on X.
  4. If ? = 82 find the estimated value of Y.

(PART B)

Give an example a box contain (0.75x5H) Envelops of which (0.5x5H) contain $100 in cash. (0.10x5H) contain $25 in cash rest of the envelops contain $10.

  1. Construct a sample space for the different amount of money.
  2. Assign the probabilities to the each sample point.
  3. Find    the     probability    that     the     first    envelop     purchased     contain    less     than    $100.

In: Statistics and Probability

On the basis of a physical examination, a doctor determines the probability of no tumour   (event...

On the basis of a physical examination, a doctor determines the probability of no tumour   (event labelled C for ‘clear’), a benign tumour (B) or a malignant tumour (M) as 0.7, 0.2 and 0.1 respectively.

A further, in depth, test is conducted on the patient which can yield either a negative (N) result or positive (P). The test gives a negative result with probability 0.9 if no tumour is present (i.e. P(N|C) = 0.9). The test gives a negative result with probability 0.8 if there is a benign tumour and 0.2 if there is a malignant tumour.

(i) Given this information calculate the joint and marginal probabilities and display in the table below.

Positive (P)

Negative (N)

MP

Clear          (C)

0.07

0.63

0.7

Benign        (B)

0.04

0.16

0.2

Malignant   (M)

0.08

0.02

0.1

MP

0.19

0.81

1

  1. Obtain the posterior probability distribution for the patient when the test result is

            a) positive,   b) negative

  1. Comment on how the test results change the doctor’s view of the presence of a tumour.

In: Math

On January 1, 2006 the Excel Delivery Company purchased a delivery van for $65,000. Useful life...

  • On January 1, 2006 the Excel Delivery Company purchased a delivery van for $65,000.
  • Useful life is 5 years and it has a salvage value of $15,000
  • The company expects to drive the van 125,000 miles
  • The following is the actual miles driven
    • 2006 – 40,000 miles
    • 2007 – 35,000 miles
    • 2008 – 25,000 miles
    • 2009 – 21,000 miles
    • 2010 – 11,000 miles

Required – Calculate annual depreciation for the five year life of the van using each of the following methods – (round to nearest dollar):

  • Straight line
  • Sum of the years digits
  • Double declining method
  • Units of production using miles driven

In: Accounting

Convert the MileConversions program to an interactive application. Instead of assigning a value to the miles...

Convert the MileConversions program to an interactive application. Instead of assigning a value to the miles variable, accept it from the user as input.

class MileConversionsInteractive

{

   public static void main(String[] args) {

      // Modify the code below

      final double INCHES_IN_MILE = 63360;

      final double FEET_IN_MILE = 5280;

      final double YARDS_IN_MILE = 1760;

      double miles = 4;

      double in, ft, yds;

      in = miles * INCHES_IN_MILE;

      ft = miles * FEET_IN_MILE;

      yds = miles * YARDS_IN_MILE;

      System.out.println(miles + " miles is " + in +

         " inches, or " + ft + " feet, or " +

         yds + " yards");

   }

}

In: Computer Science