Question 4 Researchers studied four different blends of gasoline to determine their effect on miles per gallon (MPG) of a car. An experiment was conducted with a total of 28 cars of the same type, model, and engine size, with 7 cars randomly assigned to each treatment group. The gasoline blends are referred to as A,B,C, and D.The MPGs are shown below in the table Gasoline Miles Per Blend Gallon A 26 28 29 23 24 25 26 B 27 29 31 32 25 24 28 C 29 31 32 34 24 28 27 D 30 31 37 38 36 35 29 We want to test the null hypothesis that the four treatment groups have the same mean MPG vs. the alternative hypothesis that not all of the means are equal. a) Before carrying out the analysis, check the validity of any assumptions necessary for the analysis you will be doing. Write a brief statement of your findings b) Test the null hypothesis that the four gasoline blends have the same mean MPGs, i.e., Test Ho: ua=ub=uc=ud vs. the alternative hypothesis Ha: not all the means are equal. c) If your hypothesis test in (b) indicates a significant difference among the treatment groups, conduct pairwise multiple comparison tests on the treatment group means. Underline groups of homogeneous means. d) Briefly state your conclusions. ( Use IBM SPSS for all calculations)
In: Statistics and Probability
Fitting Logistic Reegression (depedent varaible(Employed), Independent variables (Age, Race.Ethnicities, Education.Attainment, gender)
dataset
| Age | Earnings Past 12 Months | Usual Weekly Hours | Female | Married | No High School Degree | High School Degree or GED | Some College | Associates Degree | Bachelors Degree | Masters Degree | Professional Degree | Doctorate | Educational Attainment | Employed | White | Black | American Indian or Native American | Asian | Hawaiian or Pacific Islander | Other Race | Biracial | Hispanic | Race/Ethnicity | Worked 40+ Weeks During Past 12 Months | Worked 35+ Hours in a Typical Week | |||
| 18 | 1200 | 16 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | No High School Degree | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | White | 0 | 0 | |||
| 53 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | High School Degree | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | Hispanic | 0 | 0 | ||||
| 61 | 0 | 70 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | Some College | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | White | 1 | 1 | |||
| 32 | 350 | 24 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | Some College | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | White | 0 | 0 | |||
| 49 | 0 | 30 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | Masters Degree | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | White | 1 | 0 | |||
In: Statistics and Probability
Please show all work, step by step:
a. The critical value
b. the error bound
c. The minimum and maximum numbers of the interval. On
interpretations include information about the specific problem.
1. As part of an environmental studies
class project, students measured the circumference of a random
sample of 45 blue spruce trees near Brainard Lake, Colorado. The
sample mean circumference was x = 29.8 inches. Assume that o is
known to be 7.2 inches.
a. Find a 90% confidence interval for the population mean
circumference of all blue spruce trees near this lake.
b. Interpret the meaning of the confidence interval in the context
of this problem.
2. James is self employed and sells cookware at home
parties. She wants to estimate the average amount a client spends
at each party. A random sample of 35 receipts gave a mean of x =
$34.70 with standard deviation s = $4.85.
a. Find a 99% confidence interval for the average amount spent by
all clients.
b. Interpret the meaning of the confidence interval in the context
of this problem.
3. How long does it take to commute from home to work?
It depends on several factors, including routes, traffic and time
of departure. The data below are results (in minutes) from a random
sample of eight trips.
27. 38. 30. 42. 24. 37. 30. 39.
a. What are the sample mean x and the sample standard deviation
s?
b. Use these data to create a 98% confidence interval for the population mean time of the commute.
A random sample of 19 rainbow trout caught at Brainard
Lake x = 11.9 inches with sample standard deviation o= 2.8
inches.
Find a 95% confidence interval for the population mean length of
all rainbow trout in this Lake.
b. Interpret the meaning of the confidence interval in the context of this problem.
5. A random sample of 78 students was interviewed, and 59 students said that they would vote for Stella Joh as student body president.
a. Let p represent the proportion of all students at
this college who will vote for Stella. Find a point estimate p for
p.
b. Find a 98% confidence interval for p.
6. A random sample of students was asked for the
number of semester hours they are taking this semester. The
standard deviation was found to be o = 4.7 semester hours.
a. How many students should be included in the sample to be 90%
sure that the sample mean x is within 1 semester hour of the
population mean u for all students at this college.?
What percentage of college students owns a cellular
phone? Let p be the proportion of college students that own a
cellular phone.
a. If no preliminary study is made to estimate p, how large a
sample a sample is needed to be 95% sure that a point estimate p
will be within a distance of 0.08 from p.
b. A preliminary study shows that approximately 38%of college students own cellular phones. How large a sample is needed to be 95% sure that a point estimate p will be within a distance of 0.08 from p.
In: Statistics and Probability
1. The standard recommendation for automobile oil changes is once every 5000 miles. A local mechanic is interested in determining whether people who drive more expensive cars are more likely to follow the recommendation. Independent random samples of 45 customers who drive luxury cars and 40 customers who drive compact lower-price cars were selected. The average distance driven between oil changes was 5187 miles for the luxury car owners and 5389 miles for the compact lower-price car owners. The sample standard deviations were 424 and 507 miles for the luxury and compact groups, respectively. Assume that the two population distributions of the distances between oil changes have the same standard deviation. You would like to test if the mean distance between oil changes is less for all luxury cars than that for all compact lower-price cars.
Let μ1 denote the mean distance between oil changes for luxury cars, and μ2 denote the mean distance between oil changes for compact lower-price cars. Calculate the appropriate statistic for this test. Round your intermediate calculations (all standard deviations) as well as your final answer to the nearest hundredth.
2. A local college cafeteria has a self-service soft ice cream machine. The cafeteria provides bowls that can hold up to 16 ounces of ice cream. The food service manager is interested in comparing the average amount of ice cream dispensed by male students to the average amount dispensed by female students. A measurement device was placed on the ice cream machine to determine the amounts dispensed. Random samples of 85 male and 78 female students who got ice cream were selected. The sample averages were 7.23 and 6.49 ounces for the male and female students, respectively. Assume that the population standard deviations are 1.22 and 1.17 ounces, respectively. You would like to test whether the average amount of ice cream dispensed by all make college students is different from the average amount dispensed by all female college students.
a. Let μ1 denote the average amount of ice cream dispensed by all male college students, and μ2 denote the average amount of ice cream dispensed by all female college students. Calculate an appropriate test statistic for this case. Round your intermediate calculations to the nearest ten thousandth and round your final answer to the nearest hundredth.
b. Let μ1 denote the average amount of ice cream dispensed by all male college students, and μ2 denote the average amount of ice cream dispensed by all female college students. Suppose the test statistic associated to this test is 3.95. Calculate the p-value. Round your answer to the nearest ten thousandth (e.g., 0.1234).
In: Statistics and Probability
C++
What Should This Program Do?
Linked List Class
DRIVER – driver.cpp
Write a driver program (driver.cpp) that will do the following:
------------------------------------------------------------------------------
Sample Output
The linked list has been created.
I am appending several strings to the list.
boogeyman
ghost
scarecrow
witch
zombie
I am inserting vampire in the list.
boogeyman
ghost
scarecrow
vampire
witch
zombie
I am deleting ghost from the list.
boogeyman
scarecrow
vampire
witch
zombie
All list nodes have been removed.
---------------------------------------------------------------------------------------------------------------------
What to Turn In
In: Computer Science
Add the following methods to the singly list implementation below.
int size(); // Returns the number of nodes in the linked
list
bool search(string query); // Returns if the query is present in
the list
void add(List& l); // // Adds elements of input list to front
of "this" list (the list that calls the add method)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// slist.cpp
#include <string>
#include "slist.h"
using namespace std;
Node::Node(string element) : data{element}, next{nullptr} {}
List::List() : first{nullptr} {}
// Adds to the front of the list
void List::pushFront(string element) {
Node* new_node = new Node(element);
if (first == nullptr) {// List is empty
first = new_node;
} else {
new_node->next = first;
first = new_node;
}
}
Iterator List::begin() {
Iterator iter;
iter.position = first;
iter.container = this;
return iter;
}
Iterator List::end() {
Iterator iter;
iter.position = nullptr;
iter.container = this;
return iter;
}
// Returns number of elements in the list
int List::size() {
// Q1: Your code here
}
// Returns if query is present in list (true/false)
bool List::search(string query) {
// Q2: Your code here
}
// Adds elements of input list to front of "this" list
void List::add(List& l) {
// Q3. Your code here
}
Iterator::Iterator() {
position = nullptr;
container = nullptr;
}
string Iterator::get() const {
return position->data;
}
void Iterator::next() {
position = position->next;
}
bool Iterator::equals(Iterator other) const {
return position == other.position;
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Use the following header file, and test program (not to be modified or uploaded!) to verify that your methods works correctly. The expected output is indicated slist.cpp
Note:
1. Please make sure to implement one method at a time (compile, and test). Comment out the unimplemented methods as you work along.
2. Please be sure to check that the code uploaded is indeed the one you intended to upload.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// slist.h file
/* Singly linked list */
#ifndef LIST_H
#define LIST_H
#include <string>
using namespace std;
class List;
class Iterator;
class Node
{
public:
Node(string element);
private:
string data;
Node* previous;
Node* next;
friend class List;
friend class Iterator;
};
class List
{
public:
List();
void pushFront(string element);
Iterator begin();
Iterator end();
int size();
bool search(string query);
void add(List& l);
private:
Node* first;
friend class Iterator;
};
class Iterator
{
public:
Iterator();
string get() const;
void next();
bool equals(Iterator other) const;
private:
Node* position;
List* container;
friend class List;
};
#endif
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// slist_test.cpp
#include <string>
#include <iostream>
#include "slist.h"
using namespace std;
int main()
{
List names1;
names1.pushFront("Alice");
names1.pushFront("Bob");
names1.pushFront("Carol");
names1.pushFront("David");
// names1 is now - David Carol Bob Alice
int numele = names1.size(); // Q1: TO BE COMPLETED
cout << "Number of elements in the list: " << numele
<< endl;
string query = "Eve";
bool present = names1.search(query); // Q2: TO BE COMPLETED
if (present) {
cout << query << " is present" << endl;
} else {
cout << query << " is absent" << endl;
}
List names2;
names2.pushFront("Eve");
names2.pushFront("Fred");
// names2 is now - Fred Eve
// Insert each element of input list (names1) to front of calling
list (names2)
names2.add(names1); // Q3: TO BE COMPLETED
// Print extended list
// Should print - Alice Bob Carol David Fred Eve
for (Iterator pos = names2.begin(); !pos.equals(names2.end());
pos.next()) {
cout << pos.get() << " ";
}
cout << endl;
return 0;
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thank you for your time and help
In: Computer Science
At the prestigious university, they found their mean of the 30 accepted students was in the 98th percentile of all sample means. Individual scores, X, are normally distributed with a mean of 550 and a standard deviation of 100.
b. What is the probability of getting a mean of 30 students that scored higher than 685?
In: Statistics and Probability
discussion 3, Standardized Terminologies and Languages
Pre-nursing students: Select one of the nursing terminologies and briefly discuss how it is related to data mining. (i selected, clinical care classification. CCC)
Healthcare administration students: Explain why accurate coding is essential for effective management of healthcare delivery systems.
In: Nursing
Caraline is interested in estimating the proportion of students at a certain college who have at least two written final exams. She takes a random sample and finds that 60 of the 75 students she surveyed did indeed have at least 2 written finals. Compute a 99% confindence interval for her and interpret it.
In: Statistics and Probability
In: Statistics and Probability