Questions
A random sample of 245 students showed that 189 of them liked listening to music while...

A random sample of 245 students showed that 189 of them liked listening to music while studying. Find the 90% confidence interval for the proportion of students that like listening to music while studying.

What is the SE (standard error) for this sample?

In: Statistics and Probability

it took 85 wsu students an average of 36 minutes to commute to campus( with a...

it took 85 wsu students an average of 36 minutes to commute to campus( with a standard deviation of 3.5 minute ). at the 95% confidence level, construct a confidence interval within which lies the mean commute time of all WSU students.

In: Statistics and Probability

In a baking competition between ten bakers, how many ways is it possible for the top...

In a baking competition between ten bakers, how many ways is it possible for the top three places, (1st -2nd - 3rd place) to be determined?

In a class of twenty students, how many ways are there to choose two students to participate in a debate?

In: Statistics and Probability

Download and complete this assignment by answering the questions or filling in the blanks! Week 3...

Download and complete this assignment by answering the questions or filling in the blanks!

Week 3 Assignment.docx

  1. Write out what each abbreviation stands for:
    1. OTC
    2. FDA
    3. APhA
    4. DEA
    5. CSA
    6. USP
    7. PDR
    8. USP/NF
    9. LASA
    10. SR
    11. GI
    12. USAN
    13. CPOE
    14. PAD

  1. List and describe three different names by which a drug may be referred.
    1. ­­­­­­_______________________________________
    2. ______________________________________
    3. ______________________________________

  1. Describe the following terms and which health care professionals can perform the tasks listed.
    1. Prescribe
    2. Administer
    3. Dispense
    4. Physicians
    5. Nurse practioners and Physician Assistants
    6. Medical Assistants

  1. Describe the potential for abuse for each of the five drug schedules, and give an example of a drug for each schedule.
    1. Schedule I (C-I)
    2. Schedule II (CII)
    3. Schedule III (CIII)
      Schedule IV (CIV)
    4. Schedule V (CV)

  1. How often does the DEA require that a full inventory be completed on all controlled substances in the medical office?
  2. How often should inventories be performed in areas in which staff have access?
  3. How long should the controlled substances inventory log be kept?
  4. Describe the following forms and list their uses:
    1. DEA Form 224:
    2. DEA Form 41:

  1. Which of the following is the exclusive name of a drug substance or drug product owned by a company under a trademark law?
    1. Generic name
    2. Trade name
    3. Chemical
    4. Brand name

  1. Which of the following is the drug's formula which includes letters and numbers?
    1. Generic name
    2. Trade name
    3. Chemical
    4. Brand name

  1. To apply for a DEA number, the provider will need to complete and submit which of the following forms?
    1. DEA Form 222
    2. DEA Form 224
    3. DEA Form 106
    4. DEA Form 41

In: Biology

JAVA Programming. How Long is this Gonna Take? Undergraduate students are surprised to learn that as...

JAVA Programming.

How Long is this Gonna Take?

Undergraduate students are surprised to learn that as much intellectual energy has been invested in sorting and searching as almost any other part of Computer Science. Think of Duke Energy's customer database—it’s huge. New customers have to be added, former ones deleted, bills must be sent out, customers send in their payments and inquire about their accounts. An efficient data organization is required for Duke to function at all. The first attack on organizing data involves sorting data elements into some order, and exploiting that order when trying to retrieve a particular element.

Hundreds of sorting algorithms have been developed, and like all sorting algorithms, Selection Sort accomplishes its task by making comparisons and data movements. We often compare algorithms by counting the number of comparisons and movements required—the fewer the better. This begs the question, how many comparisons and movements does the Selection Sort make? And, are these actions affected by the initial arrangement of data values in the array? This is the focus of this lab.

Objectives

By the end of this lab students should be able to

  • Allocate arrays
  • Initialize an array with random numbers
  • Initialize an array to be contain monotonically increasing and decreasing values
  • Sort arrays
  • Explain how sorting time increases as the number of elements to be sorted increases

Collecting Sorting Data

Start with the SelectionSort class in the zip file attached to this item. Keep the name SelectionSort, and add a main method to it.

  • Modify the selectionSort method to have two counters, one for the number of comparisons, and one for the number of data swaps. Each time two data elements are compared (regardless of whether the items are in the correct order—we're interested in that a comparison is being done at all), increment the comparison counter. Each time two data items are actually swapped, increment the data swap counter.
  • At the end of the selectionSort method, print the size of the sorted array, and the counters. (Be sure to identify which counter is which in your print message
  • In your main method,
    • Declare a final int, NUM_ELEMENTS. Initially set NUM_ELEMENTS to 10 to debug your program.
    • Declare and create three double arrays of NUM_ELEMENTS length, lo2Hi, hi2Lo, random.
    • Initialize the first array, lo2Hi, with values 1.0, 2.0, …, NUM_ELEMENTS
    • Initialize the second array, hi2Lo with values NUM_ELEMENTS, 24.0,…, 1.0
    • Initialize the third array, random, with random double values between 0.0 and less than 1.0
    • call the selectionSort method using each array. (Note: you might want to print the array elements themselves for debugging purposes when NUM_ELEMENTS is small, but you’ll not want to print them with larger values for NUM_ELEMENTS.)
  • Run your program three times with different values for NUM_ELEMENTS: 1000, 2000 and 4000.

In your submission write some text describing the relationship between the number of comparisons of the various values of NUM_ELEMENTS. For example, what do we find if we divide the number of comparisons for 2000 elements by the number of comparisons for 1000 elements? What do we find if we divide the number of comparisons for 4000 elements by the number of comparisons for 2000 elements?

Epilog: As you can tell, Selection sort doesn’t scale very well. The number comparisons increase quadradically as a function of number of elements. There comes a point that, because of array size, it’s impractical to use Selection sort. The good news is there are hundreds of sorting algorithms. Some suffer from the same performance shortcomings as Selection sort, but others that are almost “magical” in that increasing the number of elements has minor impact on performance. If you’re interested, take a look at chapter 23 Sorting.

Reporting Sorting Data

Submit, in addition to your program, submit the following information in some understandable form (it doesn’t have to be this exact table, but your submission should contain this information).

1000 elements

2000 elements

4000 elements

Comparison count lo2Hi

Comparison count hi2Lo

Comparison count random

Swap count lo2Hi

Swap count hi2Lo

Swap count random

Increasing the number of elements from 1000 to 2000 increases the number of comparisons by a factor of

Increase factor

Increasing the number of elements from 2000 to 4000 increases the number of comparisons by a factor of

Increase factor

Grading Elements

  • use class SelectionSort with the selectionSort method
  • instrument selectionSort with comparisonCnt and swapCnt, and print the number of array elements and the comparisonCnt and swapCnt values
  • write a main method with final int NUM_ELEMENTS
  • declare and create three double arrays of length NUM_ELEMENTS
  • initialize the arrays as specified
  • call selectionSort with each array
  • Run the SelectionSort with different values for NUM_ELEMENTS: 1000, 2000 and 4000.
  • Document the 18 data values described above.
  • Document the ratio of comparisonCnt values for 2000 elements and 1000 elements.
  • Document the ratio of comparisonCnt values for 4000 elements and 2000 elements
SelectionSort.java 
public class SelectionSort {
  /** The method for sorting the numbers */
  public static void selectionSort(double[] list) {
    for (int i = 0; i < list.length - 1; i++) {
      // Find the minimum in the list[i..list.length-1]
      double currentMin = list[i];
      int currentMinIndex = i;

      for (int j = i + 1; j < list.length; j++) {
        if (currentMin > list[j]) {
          currentMin = list[j];
          currentMinIndex = j;
        }
      }

      // Swap list[i] with list[currentMinIndex] if necessary;
      if (currentMinIndex != i) {
        list[currentMinIndex] = list[i];
        list[i] = currentMin;
      }
    }
  }
}

In: Computer Science

The officers of a high school senior class are planning to rent buses and vans for...

The officers of a high school senior class are planning to rent buses and vans for a class trip. Each bus can transport 35 students, requires 3 ​chaperones, and costs ​$ 1,200 to rent. Each van can transport 7 ​students, requires 1​ chaperone, and costs ​$ 90 to rent. Since there are 280 students in the senior class that may be eligible to go on the​ trip, the officers must plan to accommodate at least 280 students. Since only 30 parents have volunteered to serve as​ chaperones, the officers must plan to use at most 30 chaperones. How many vehicles of each type should the officers rent in order to minimize the transportation​ costs? What are the minimal transportation​ costs?

How do you solve this word problem?

In: Advanced Math

2. The chair of the Criminal Justice department wants to know if students are generally satisfied...

2. The chair of the Criminal Justice department wants to know if students are generally satisfied with their selection of CJ as a major and if there is a difference in perceptions when students with different educational experiences are compared. She administered a survey to a sample of 100 students, 25 students at each academic rank. Based on the information included in the following table…. [Hint: chi-sq. = 20.49]

Freshman Sophmore Junior Senior
Satisfied 8 15 18 23
Dissatisfied 17 10 7 2
Total 25 25 25 25 100

2.1. Formulate the null and research/alternative hypotheses.

2.2. Calculate the chi-square

2.3. Report the critical chi-square at the corresponding probability level [.05]and degrees of freedom

2.4. Test the null hypothesis and reach a statistical conclusion

2.5. Interpret your results

In: Statistics and Probability

Consider the data labelled “problem 2”. It presents a random sample of students scores (in percentage)...

Consider the data labelled “problem 2”. It presents a random sample of students scores (in percentage) obtained by students in a standardized national test.

(i) Construct a 94% confidence interval on the fraction of students who scored above 70% on the test. (10)






(ii) Test the claim that more than 35% of the students score higher than 78% on the test. Write the hypotheses, identify test-statistics and compute its value.

84
69.2
31.9
85.5
47.8
88.8
52.1
78.2
78.3
79.5
69.5
42.4
59.8
48.4
53.7
46.7
76.7
34.4
69.5
56.8
75.9
80
61.4
78.6
62.7
45.7
61.9
73.3
75.6
83.5
74.5
38.2
38.4
52.2
96.7
59.2
69.4
32.9
98
66.3
99
94.6
90.1
28.2
72.8

In: Statistics and Probability

A recent national survey found that high school students watched an average (mean) of 6.5 movies...

A recent national survey found that high school students watched an average (mean) of 6.5 movies per month with a population standard deviation of 0.6. The distribution of number of movies watched per month follows the normal distribution. A random sample of 33 college students revealed that the mean number of movies watched last month was 5.8. At the 0.05 significance level, can we conclude that college students watch fewer movies a month than high school students?

  1. State the null hypothesis and the alternate hypothesis.
  2. State the decision rule.
  3. Compute the value of the test statistic. (Negative amount should be indicated by a minus sign. Round your answer to 2 decimal places.)
  4. What is your decision regarding H0?
  5. What is the p-value? (Round your answer to 4 decimal places.)

In: Statistics and Probability

For all U.S. students nationally who take the SAT, SAT Math scores are normally distributed with...

For all U.S. students nationally who take the SAT, SAT Math scores are normally distributed with an average score of 500 for all U.S. students . A random sample of 100 students entering Whitmer College had an average SAT Math (SAT-M) score of 520 and a sample standard deviation of 120. The sample data can be used to test the claim that the mean SAT-M score of all Whitmer College students is different than the national mean SAT-M score. Based on the given information, use the appropriate formula and the provided Standard Normal Table (Z table). Determine the p-value for this two-sided hypothesis test. You will need to calculate the test statistic first. Enter the p-value in the space below as a decimal rounded to four decimal places:

In: Statistics and Probability