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 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 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 Assignment.docx |
In: Biology
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
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.
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
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 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 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) 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 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?
In: Statistics and Probability
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