Please use program "R" to answer these questions.
a. R code:
x=c(202,180,250,101,90,265,278,241,189,130,147,209,225,256,239,265,291,132,152,77)
y=c(182,165,200,95,69,200,164,230,150,110,165,189,190,210,239,202,185,147,130,66)
t.test(x, y, alternative = "two.sided",
var.equal=TRUE,paired=FALSE)
Output:
Two Sample t-test
data: x and y
t = 1.7034, df = 38, p-value = 0.09667
alternative hypothesis: true difference in means is not equal to
0
95 percent confidence interval:
-5.946296 69.046296
sample estimates:
mean of x mean of y
195.95 164.40
p-value=0.09667
95 percent confidence interval for the difference between
means:
(-5.946296, 69.046296)
Here x=observations come from Swearing, y=observations come from not Swearing
b.
R code:
y1=c(202,180,250,101,90,265,278,241,189,130,147,209,225,256,239,265,291,132,152,77)
y2=c(182,165,200,95,69,200,164,230,150,110,165,189,190,210,239,202,185,147,130,66)
y=c(y1,y2)
x=c(1:20*0+1,1:20*0)
Model=lm(y~x)
summary(Model)
anova(Model)
Output:
Call:
lm(formula = y ~ x)
Residuals:
Min 1Q
Median 3Q
Max
-118.95 -45.20 9.55 43.55
95.05
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 164.40 13.10
12.552 4.32e-15 ***
x
31.55 18.52
1.703 0.0967 .
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 58.57 on 38 degrees of freedom
Multiple R-squared: 0.07094, Adjusted R-squared:
0.04649
F-statistic: 2.901 on 1 and 38 DF, p-value: 0.09667
Analysis of Variance Table
Response: y
Df Sum Sq
Mean Sq F value Pr(>F)
x
1 9954 9954.0 2.9014 0.09667 .
Residuals 38 130368
3430.7
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Slope= 31.55,
95% CI for Slope=(31.55-t0.025,38*18.52, 31.55+t0.025,38*18.52)=(-5.9419, 69.0419) where, = 2.0244
p-value=0.09667.
Here x=1 if observation come from Swearing and x=0 if observation come from not Swearing.
Since p-value>0.05 so there is insignificant difference between two population means.
Please use program "R" to answer these questions. Conduct an unpaired t-test (yes! again) with the...
*NEED HELP PLEASE! ALSO Please show you got the Standard deviation to get the margin of error!** 1. To summarize the data, compute the proportion of all clients that a. Answered "Poor"to room quality b. Answered "Poor"to food quality C. Answered "Poor" to service quality 2. Develop the 92% confidence interval for the proportion of all recent clients that were "dissatisfied." What is the margin of error? What are the lower (or left) and upper (or right) endpoints of the...
Download the hypothesis testing dataset from the class website. 1. This is case 1, in which the value of population standard deviation is assumed to be known. a. Compute the standard deviation of the textbook price and assume this to be the population standard deviation. Type this value in E5. b. Pick a random sample of size 15. c. Compute the mean of your random sample in E4 using the AVERAGE function. d. Calculate the standard error in cell E9...
CruiseTotalHP1001162006002416501995701743001643601413601613001071101041451221601291801442301945701704202236202347501241801862851902851905001592351602351483101433001602001401252353501913101321251151801702101752441562001882801281601071251483001291801915001472352133501863001483001804401864401001501763001512609881163250143180Use Data Set D, Single Engine Aircraft Performance (Airplanes), on page 535 of your textbook to answer the following questions. The first column is X, or the independent variable and the second column is Y, or the dependent variable. Use MINITAB to obtain the simple regression equation, confidence interval, prediction interval, and required graphs. Insert tables and graphs in your report as appropriate. Use Minitab and produce the appropriate output to answer the following questions. Attach or include the Minitab...
33 On May 6, Jim Ryan borrowed $14,000 from Lane Bank at 7 % interest. Jim plans to repay the loan on March 11. Assume the loan is on ordinary interest. How much will Jim repay on March 11? (Use Days in a year table) (Round your answer to the nearest cent.) Jm repay etbook 7-1 TABLE Exact days-in-a-year calendar (excluding leap year)" Day of month 30 31 30 31 28 31 30 31 31 30 31 31 Dec Mar...
please answer all questions and use the formula sheet below for question 23. 20) statistics students must be t ssume that we want to estimate the mean 10 score for the pogaoe that the sample mean is within statistics shudents. How many 95% confidence that the sample mean ts within andomly selected for 10 tests if we want 2 10 points of the population mean? Note that 10 tests are typicalls standard devintion is 15 error Ey? (a) Decrease ow...
Exercise. A researcher wants to test: : What’s wrong with this? Exercise 7.24. Although the Environmental Protection Agency (EPA) establishes the tests to determine the fuel economy of new cars, it often does not perform them. Instead, the test protocols are given to the car companies, and the companies perform the tests themselves. To keep the industry honest, the EPA runs some spot checks each year. Recently, the EPA announced that Hyundai and Kia must lower their fuel economy estimates...
For an Independent t-test, you can either: Perform all calculations by typing in formulas to compute the needed components and answers You can use the "Data: Data Analysis: t-test: Two Sample Assuming Equal Variances" procedure Examples of this procedure can be found in your text, Excel Appendix 10.1, p. 459 For a Paired Differences t-test (dependent t-test), you can either Perform all calculations by typing in formulas to compute the needed components and answer. You can use the "Data: Data...
need help to complete this java program // add appropriate import statements here. // These imports you can leave as is. import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.canvas.Canvas; import javafx.scene.canvas.GraphicsContext; import javafx.scene.paint.Color; import javafx.stage.Stage; /** @author yourAccountNameHere */ public class ConnectTheDots extends Application { /* * Do not add code to main(). Add it below in connectTheDots instead. */ public static void main(String[] args) { launch(args); } /*...
Hi it's python I imported a data which are so many words in txt and I arranged and reshaped with alphabetically both rows and columns I was successful with these steps but I am stuck with next step below is my code and screenshot import numpy as np import pandas as pd data=pd.read_csv("/Users/superman/Downloads/words_file2.txt",header=None) df_input=pd.DataFrame(data) df_output=pd.DataFrame(np.arange(676).reshape((26,26)), index = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'], columns = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']) df_output.index.name="Start" df_output.columns.name="End" df_output This below screen shot is what I have to find I have to find each word...
my questions is q1. what type of lifestyle do you have in terms of physical activity? q2. how many days a week do you spend on physical activity? q3. how much do you weight Question 1 Question 2 Question 3 Person 1 Sedentary 0 147 Person 2 2 163 Person 3 5 174 quarantine Heavy working Sedentary Heavy working Person 4 1 181 Person 5 6 170 Person 6 2 150 Person 7 7 130 Sedentary Heavy working quarantine Heavy...