Question

In: Advanced Math

Using the SATGPA data set in Stat2Data package. Test by using α= .05. 1) Create the...

Using the SATGPA data set in Stat2Data package. Test by using α= .05.

1) Create the following three variables and then print out all the six variables.

Create a new variable “SAT”, which is the sum of MathSAT and VerbalSAT.

Create second new variable “SATLevel”, and assign the value of “SATLevel” as 1 when

SAT<=1100, 2 when 1100<SAT<=1200, 3 when 1200<SAT<=1300, and 4 when

SAT>1300.

Create third new variable “GPALevel” and assign the value of “GPALevel” as 1 when

GPA<=2.8, 2 when 2.8<GPA<=3.3, 3 when 3.3<GPA<=3.5, and 4 when GPA>3.5

Print out all the data in the descending order of their GPALevel and the ascending order of

their SAT when GPALevel is the same.

2) Use the Chi-Square test to conclude if the SATLevel and GPALevel are independent.
3) Compute the mean and variance of “GPA” for each level of “GPALevel”, and compute the

correlation matrices for the four variables: MathSAT, VerbalSAT, GPA and SAT.
4) Do the data provide sufficient evidence to indicate that the mean of MathSAT is significantly greater

than the mean of VerbalSAT.
5) Test if the proportion of MathSAT greater than VerbalSAT is 0.6.

Solutions

Expert Solution

  • Demo.java

    public class Demo {

    public static void main(String[] args) {

    Pizza p1 = new Pizza();

    p1.setPrice(100.5);

    p1.setTitle("Small");

    p1.setTypeNumber(1);

    p1.display();

    Pizza p2 = new Pizza(2, 155.5, "Medium");

    p2.display();

    }

    }

    Pizza.java

    public class Pizza {

    private int typeNumber;

    private double price;

    private String title;

    public Pizza() {

    }

    public Pizza(int typeNumber, double price, String title) {

    super();

    this.typeNumber = typeNumber;

    this.price = price;

    this.title = title;

    }

    public void display() {

    System.out.println( "Pizza [price=" + price + ", title=" + title + ", typeNumber="

    + typeNumber + "]");

    }

    public String getTitle() {

    return title;

    }

    public void setTitle(String title) {

    this.title = title;

    }

    public int getTypeNumber() {

    return typeNumber;

    }

    public void setTypeNumber(int typeNumber) {

    this.typeNumber = typeNumber;

    }

    public double getPrice() {

    return price;

    }

    public void setPrice(double price) {

    this.price = price;

    }

    }

    Output:

    Pizza [price=100.5, title=Small, typeNumber=1]
    Pizza [price=155.5, title=Medium, typeNumber=2]


Related Solutions

3. Use the data from question 1. Conduct a hypothesis test at α = .05 to...
3. Use the data from question 1. Conduct a hypothesis test at α = .05 to determine if the population variance is less than 909.00. Question 1- 1. Consider the following sampled data: s 2 = 906.304, n = 31. Calculate the following confidence intervals for the population variance: (a) 90% (b) 95% (c) 99%
Please use R to do it. Using the SATGPA data set in Stat2Data package. Test by...
Please use R to do it. Using the SATGPA data set in Stat2Data package. Test by using α= .05 Question: Test if the proportion of MathSAT greater than VerbalSAT is 0.60 > library(Stat2Data) > data("SATGPA") > data(SATGPA) > SATGPA
Using the following data, perform a oneway analysis of variance using α=.05. Write up the results...
Using the following data, perform a oneway analysis of variance using α=.05. Write up the results in APA format. [Group1: 51, 45, 33, 45, 67] [Group2: 23, 43, 23, 43, 45] [Group3: 56, 76, 74, 87, 56]
At α = .05, test to determine if the means of the three populations (from which...
At α = .05, test to determine if the means of the three populations (from which the following samples are selected) are equal. Sample 1 Sample 2 Sample 3 60 84 58 78 80 57 72 79 67 66 81 66 a) Calculate the MSTR b) Calculate the MSE c) Calculate the F-statistic d) Determine the p-value of the F-statistic e) Using a 0.05 level of significance, what would you advise the dietician about the effectiveness of the three diets?
In a two-tailed test for correlation at α = .05, a sample correlation coefficient r =...
In a two-tailed test for correlation at α = .05, a sample correlation coefficient r = 0.42 with n = 25 is significantly different than zero. True or False
Test at α =.05 the hypothesis that a majority (more than 50%) of students favor the...
Test at α =.05 the hypothesis that a majority (more than 50%) of students favor the plus/minus grading system at a university if in a random sample of 400 students, 216 favor the system?
Using the Sample Hypothesis Test Data and Chi-Square Data with a .05 level of significance, provide...
Using the Sample Hypothesis Test Data and Chi-Square Data with a .05 level of significance, provide a summary report for the Vice President including the following information in an essay with a minimum of 500 words: Two-Sample Hypothesis Test: Discuss the hypothesis test assumptions and test used. Provide the test statistic and p-value in your response. Evaluate the results of the hypothesis test with the scenario. Provide recommendations for the Vice President. Chi-square Hypothesis Test: Discuss the hypothesis test assumptions...
Using the Sample Hypothesis Test Data and Chi-Square Data with a .05 level of significance, provide...
Using the Sample Hypothesis Test Data and Chi-Square Data with a .05 level of significance, provide a summary report for the Vice President including the following information: Two-Sample Hypothesis Test: Discuss the hypothesis test assumptions and test used. Provide the test statistic and p-value in your response. Evaluate the results of the hypothesis test with the scenario. Provide recommendations for the Vice President. Chi-square Hypothesis Test: Discuss the hypothesis test assumptions and test used. Provide the test statistic and p-value...
Using the Sample Hypothesis Test Data and Chi-Square Data with a .05 level of significance, provide...
Using the Sample Hypothesis Test Data and Chi-Square Data with a .05 level of significance, provide a summary report including the following information: Two-Sample Hypothesis Test: Discuss the hypothesis test assumptions and test used. Provide the test statistic and p-value in your response. Evaluate the results of the hypothesis test with the scenario. Chi-square Hypothesis Test: Discuss the hypothesis test assumptions and test used. Provide the test statistic and p-value in your response. Evaluate the results of the hypothesis test...
You are performing a left-tailed test. If α = .05 find the critical value, to three...
You are performing a left-tailed test. If α = .05 find the critical value, to three decimal places. zα =
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT