Q 15 Question 15 Consider the following sample of 11 length-of-stay values (measured in days): 1, 1, 3, 3, 3, 4, 4, 4, 4, 5, 7 Now suppose that due to new technology you are able to reduce the length of stay at your hospital to a fraction 0.5 of the original values. Thus, your new sample is given by .5, .5, 1.5, 1.5, 1.5, 2, 2, 2, 2, 2.5, 3.5 Given that the standard error in the original sample was 0.5, in the new sample the standard error of the mean is _._. (Truncate after the first decimal.)
In: Math
Question 14 Consider the following sample of 11 length-of-stay values (measured in days): 1, 1, 3, 3, 3, 4, 4, 4, 4, 5, 7 Now suppose that due to new technology you are able to reduce the length of stay at your hospital to a fraction 0.5 of the original values. Thus, your new sample is given by .5, .5, 1.5, 1.5, 1.5, 2, 2, 2, 2, 2.5, 3.5 Given that the standard deviation in the original sample was 1.7, in the new sample the standard deviation is _._. (Truncate after the first decimal.)
In: Math
PSY 2030 -Assignment 4: One-Way Anova
-Due by Sunday, April 19th, at 11:30 PM
-Scores out of 25 points (16 points for Question and 9 points for Question 2)
-Submit by uploading file(s) within "Assignment 4" on Canvas
-SHOW ALL WORK!!
Either very clearly type it (making sure your formulas and integrity/formatting of formulas are extremely clear)
or write it out by hand and attach a scan or photo of your work. Remember that all assignments must reflect your own independent work.
Question #1 (16 points)
A consumer group was interested in comparing the performance of three models of cars. Random samples of six owners were drawn from a list of each model. The owners were asked how many times their cars had undergone repairs in the past 2 years. Using alpha =.01, follow the 8 steps to hypothesis testing to determine whether the cars different significantly in terms of repairs needed.
Model 1 Model 2 Model 3
2 4 9
1 5 6
2 4 4
3 2 3
2 4 7
4 4 5
Question # 2 (9 points)
Regardless of whether there was a significant effect of car model or not in Question 1 , conduct a Tukey HSD post-hoc test to determine whether car models different significantly from one another. Be sure to write out clear and complete conclusion statement and to show your work.
In: Statistics and Probability
Suppose the following data represent the ratings (on a scale from 1 to 5) for a certain smart phone game, with 1 representing a poor rating. Complete parts (a) through (d) below. Stars Frequency 1 2963 2 2372 3 4696 4 4393 5 10 comma 585 (a) Construct a discrete probability distribution for the random variable x. Stars (x) P(x) 1 nothing 2 nothing 3 nothing 4 nothing 5 nothing (Round to three decimal places as needed.) (b) Graph the discrete probability distribution. Choose the correct graph below. A. 1 2 3 4 5 0 0.1 0.2 0.3 0.4 0.5 A histogram has a horizontal axis labeled from 0 to 4 in intervals of 1 and a vertical axis labeled from 0 to 0.5 in intervals of 0.1 has five vertical lines positioned on the horizontal axis tick marks. The approximate heights of the vertical lines are as follows, with the horizontal coordinate listed first and the line height listed second: 1, 0.42; 2, 0.18; 3, 0.19; 4, 0.1; 5, 0.12. B. 1 2 3 4 5 0 0.1 0.2 0.3 0.4 0.5 A histogram has a horizontal axis labeled from 0 to 4 in intervals of 1 and a vertical axis labeled from 0 to 0.5 in intervals of 0.1 five vertical lines positioned on the horizontal axis tick marks. The approximate heights of the vertical lines are as follows, with the horizontal coordinate listed first and the line height listed second: 1, 0.12; 2, 0.1; 3, 0.19; 4, 0.18; 5, 0.42. C. 1 2 3 4 5 0 0.1 0.2 0.3 0.4 0.5 A histogram has a horizontal axis labeled from 0 to 4 in intervals of 1 and a vertical axis labeled from 0 to 0.5 in intervals of 0.1 five vertical lines positioned on the horizontal axis tick marks. The approximate heights of the vertical lines are as follows, with the horizontal coordinate listed first and the line height listed second: 1, 0.1; 2, 0.18; 3, 0.12; 4, 0.19; 5, 0.42. D. 1 2 3 4 5 0 0.1 0.2 0.3 0.4 0.5 A histogram has a horizontal axis labeled from 0 to 4 in intervals of 1 and a vertical axis labeled from 0 to 0.5 in intervals of 0.1 five vertical lines positioned on the horizontal axis tick marks. The approximate heights of the vertical lines are as follows, with the horizontal coordinate listed first and the line height listed second: 1, 0.19; 2, 0.18; 3, 0.42; 4, 0.12; 5, 0.1. (c) Compute and interpret the mean of the random variable x. The mean is nothing stars. (Round to one decimal place as needed.) Which of the following interpretations of the mean is correct? A. As the number of experiments decreases, the mean of the observations will approach the mean of the random variable. B. The observed value of an experiment will be less than the mean of the random variable in most experiments. C. The observed value of an experiment will be equal to the mean of the random variable in most experiments. D. As the number of experiments increases, the mean of the observations will approach the mean of the random variable. (d) Compute the standard deviation of the random variable x. The standard deviation is nothing stars. (Round to one decimal place as needed.)
In: Statistics and Probability
This is JAVA
The mere presence of oversized arrays makes Priscilla Perfect
sick to her stomach. Such wasted space is an imperfection she
cannot bear. As her oldest and dearest friend this worries you
greatly. If you were a doctor you might try to find a cure to her
sickness, but you are a programmer. A program must be written to
alleviate her pain!
For any array given that has empty slots create a new array that is
perfect. Unused slots will have a value of 0. All unused slots are
guaranteed to be at the end of the array. There will never be
unused slots in the middle.
java.util.Arrays has been enabled.
Examples:
makePerfect({1, 1, 4, 5, 6, 0, 0, 0, 0}) -> {1, 1, 4, 5, 6}
makePerfect({1, 3, 4, 2, 6, 0, 0, 0, 0}) -> {1, 3, 4, 2, 6}
1
public int[] makePerfect(int[] arr)
2
{
3
4
}
5
In: Computer Science
Which amino acid substitutions are most likely to affect structure/function of the protein?
Question 31 options:
|
|||
|
|||
|
|||
|
Drug A acts by competing with substrate S of the target enzyme. Drug B acts by binding only to the ES complex to form ESB (inactive). If the levels of A and B are fixed, an increase in level S (check all that applied)
Question 35 options:
|
|||
|
|||
|
|||
|
How many fragments will result from trypsin cleavage of the
following peptide?
Asp-Leu-Gln-Arg-Ile-Ala-Met-Trp-Phe-Lys-Gln-Met-Asp-Arg
Question 37 options:
|
|||
|
|||
|
|||
|
Glucose phosphorylation can be catalyzed by glucokinase or hexokinase. Glucokinase has a Km value of 20.0 mM, whereas hexokinase has a Km value of 0.2 mM. Which of the following statement is true? (check all that applied)
Question 39 options:
|
|||
|
|||
|
|||
|
|||
|
Which of the following is true?
Question 40 options:
|
|||
|
|||
|
|||
|
When designing primers for PCR, scientists often compare the primer sequence to database sequence. This is to ensure that the sequence
Question 46 options:
|
|||
|
|||
|
|||
|
In an enzyme catalyzed reaction that obeys Michaelis-Menten
kinetics, which pair of graphs would illustrate competitive
inhibition?
Question 47 options:
|
|||
|
|||
|
|||
|
|||
|
Facilitated diffusion of membrane transport (check all that applied)
Question 48 options:
|
|||
|
|||
|
|||
|
|||
|
In: Biology
Find the inverse of the matrix
A=
2 -1 3
0 1 1
-1 -1 0
In: Advanced Math
R programming language
A) Create a function that accepts two arguments, an integer and a vector of integers. It returns the count of the number of occurrences of the integer in the input vector.
1]Input: num_count <-function ??? 2]Input: num_count(2,c(1,1,2,2,3,3))
2] Output: 2
3] Input: num_count(1,c(1,1,2,2,3,1,4,5,5,2,2,1,3))
3] Output : 4
B) Create a function that accepts 3 integer values and returns their sum. However, if an integer value is evenly divisible by 3, then it does not count towards the sum. Return zero if all numbers are evenly divisible by 3. Hint: You may want to use the append() function.
1] Input: summer <- function???
2] Input: summer(7,2,3)
2] Output: 9
3] Input: summer(3,6,9)
3] Output:0
4] Input: summer(9,11,12)
4] Output: 11
C)Create a function that will return TRUE if an input integer is prime. Otherwise, return FALSE. You may want to look into the any() function
1]Input: prime_check <- function ???
2]Input: prime_check(2)
2]Output: TRUE
3] Input: prime_check(5)
3] Output: TRUE
4] Input: prime_check(4)
4] Output: FALSE
5]Input: prime_check (237)
5] Output: FALSE
6] Input: prime_check(131)
6] Output: TRUE
In: Computer Science
Write a C++ program to run a menu driven program with the following choices:
1) Display the grades
2) Adjust grade
3) Display Average for each student
4) Display number of student with at least a B
5) Quit
requirements:
1. Write a function called getValidGrade that allows a user to enter in an integer and loops until a valid number that is >= 0 and <= 100 is entered. It returns the valid value.
2. Write a function called getValidStudentNumber that allows a user to enter in an integer and loops until a valid number that is >= 0 and < NUM_STUDENTS is entered. It returns the valid value.
3. Write a function called getValidAssignmentNumber that allows a user to enter in an integer and loops until a valid number that is >= 0 and < NUM_GRADES is entered. It returns the valid value.
4. Write a function called displayGrades that takes the student and grade arrays as parameters and displays the grades in the format in the sample run below.
5. Write a function called displayAverageForEachStudent that takes the student and grade arrays as parameters, computes the average grade for each student, and displays the grades in the format in the sample run below.
6. Write a function called displayNumStudentsAtLeastBForSelectedAssignment that takes the student and grade arrays as parameters, allows the user to select a valid assignment and locates and displays the number of the student with at least a grade >= 80 for that assignment in the format in the sample run below.
7. Write a function called AdjustGrade that takes grade arrays as a pass by reference parameter, allows the user to select a valid student, a valid assignment, and a valid grade and changes the student assignment grade to the value entered.
8. Add comments wherever necessary.
Sample run:
Welcome to the help with the grading program!
1) Display the grades
2) Adjust grade
3) Display Average for each student
4) Display number of student with at least a B
5) Quit
Select an option (1..5)..1
Name Assign. 1 Assign. 2 Assign. 3 Assign. 4 Assign. 5
Tom 78 98 88 99 77
Jane 62 99 94 85 93
Jo 73 82 88 85 78
1) Display the grades
2) Adjust grade
3) Display Average for each student
4) Display number of student with at least a B
5) Quit
Select an option (1..5)..2
Adjust Grade
Please enter in the student number...
1
Please enter in an assignment number...
0
Please enter in the grade...
98
Grade changed
1) Display the grades
2) Adjust grade
3) Display Average for each student
4) Display number of student with at least a B
5) Quit
Select an option (1..5)..1
Name Assign. 1 Assign. 2 Assign. 3 Assign. 4 Assign. 5
Tom 78 98 88 99 77
Jane 62 99 94 85 93
Jo 98 82 88 85 78
1) Display the grades
2) Adjust grade
3) Display Average for each student
4) Display number of student with at least a B
5) Quit
Select an option (1..5)..0
Select an option (1..5)..9
Select an option (1..5)..3
Average grade for each student
Average Student 1: 88
Average Student 2: 86.6
Average Student 3: 86.2
1) Display the grades
2) Adjust grade
3) Display Average for each student
4) Display number of student with at least a B
5) Quit
Select an option (1..5)..4
Number of students with at least B
Please enter in an assignment number...
-9
Please enter in a valid assignment number...
1
Number of students with at least B on assignment 1 :1
1) Display the grades
2) Adjust grade
3) Display Average for each student
4) Display number of student with at least a B
5) Quit
Select an option (1..5)..2
Adjust Grade
Please enter in the student number...
2
Please enter in an assignment number...
1
Please enter in the grade...
-9
Please enter in a valid grade...
8888
Please enter in a valid grade...
55
Grade changed
1) Display the grades
2) Adjust grade
3) Display Average for each student
4) Display number of student with at least a B
5) Quit
Select an option (1..5)..1
Name Assign. 1 Assign. 2 Assign. 3 Assign. 4 Assign. 5
Tom 78 98 88 99 77
Jane 62 99 94 85 93
Jo 98 55 88 85 78
1) Display the grades
2) Adjust grade
3) Display Average for each student
4) Display number of student with at least a B
5) Quit
Select an option (1..5)..5
Process finished with exit code 0
In: Computer Science
What is the value of n after this code runs?
1 Point
int n = 0;
int j = 7;
if ((j!=0) && (n < 25))
{
n = 1;
if (j > 4)
{
n = 2;
}
else
{
n = 3;
}
}
else
{
n = 4;
if (j%2 >= 2)
{
n = 5;
}
else
{
n = 6;
}
}In: Computer Science