I'm confused on how to solve this, it needs to be coded in R programming language:
Use the data set `airquality` (a built in dataset in Rstudio).
Compare means of temperature between May and July.
Go through the entire procedure: state the null and alternative
hypotheses, state the assumptions, calculate the test statistics,
state the distribution of the test statistic if the null
hypothesis is true, compute the rejection region, compute the
p-value, and state your conclusions.
Check whether the assumptions required to perform the t-test hold.
Use a significance level of 5%.
I have attached the R code here.
Also attached the output.
T-test hold as sample follows normal distribution which we get from the qqplot.
R code-
Z=attach(airquality)
names(Z)
M=Z$Month
T=Z$Temp
X=T[M==5]
Y=T[M==7]
qqnorm(X)
qqnorm(Y)
t.test(X,Y,var.equal=T)
Output-
Two Sample t-test data: X and Y t = -12.616, df = 60, p-value < 2.2e-16 alternative hypothesis: true difference in means is not equal to 0
I'm confused on how to solve this, it needs to be coded in R programming language: Use the data s...
Hi, could anyone explain to me how to do these questions? I'm a little confused. (15 points) 1. The FBI compiles data on robbery and property crimes and publishes the information. A ran- dom sample of pickpocket offenses yielded the losses, in dollars, described by the following summary statistics: x = 513.32, s = 262.23, and n = 20. We want to use this data to make inference on u, the mean loss in all pickpocket offenses in the U.S....
Please Use R programming language to answers these question and please show me the code as well. Thank You 1. Problem: dataset: savings; package : faraway Use R, perform the calculations and answer the following questions (a) Calculate the design matrix X, and all regression coefficients estimates, as shown in (3). (b) Calculate the Residuals standard error , as in (5). (c) ANOVA table: Calculate SST, SSE, SSR, ?2, as in (6). Calculate the ANOVA F-statistic and p-value. (d)...
Question 3 (read the entire question first) The following data are based on a study of the relationship between car accidents and the use of cellular phones. Objective of the study is to show that using a cellular telephone while driving increases the chances of a car accident. Accident No Accident All 453 305 NoPhone 26 427 Phone 23 282 All 49 709 758 g) Let pl denote the probability of having a car accident while using a cellular telephone,...
3. [42.5 points] A large tech company is evaluating two programming languages. Twenty- four entry-level data scientists were asked to code a procedure. Twelve were randomly assigned to Programming Language 1, while the remaining twelve were assigned to Programming Language 2. Suppose you want to test whether the tech company should conclude Programming Language 1 is more inefficient. The following table shows the time required by each data scientist to code the procedure in seconds. Refer to Appendix A to...
can someone please explain how to do this? I am very confused and it is due tomorrow. Directions: Write the null and alternate hypothesis, determine the appropriate t-test for cach of the following problems, decide upon a decision rule, draw the rejection region, and write a statement that describes the relationship the researcher is entitled to make. (You may use Excel to calculate means, variance and standard deviation). 11 An investigator believes that families in Virginia have more children on...
3. [42.5 points] A world-renowned tech company is evaluating two programming languages. Ten data scientists, proficient in both programming languages, are asked to code 10 procedures in both languages, and the time in seconds) is recorded. Suppose you want to test whether the tech company should be indifferent to the choice of programming language. The following table shows the results for both data scientists. Refer to Appendix A to answer items 3(a)-3(g). Data Scientist 1 1 2 3 Programming Language...
Compute the test statistic and state the test result. Compute a p-value 8.117 Trading skills of institutional investors. The Journal of Finance (Apr. 2011) published the results of an analysis of trading skills of institutional investors. The study focused on "round-trip" trades, i.e., trades in which the same stock was both bought and sold in the same quarter. In a ran- dom sample of 200 round-trip trades made by institutional investors, the sample standard deviation of the rates of return...
A data set lists earthquake depths. The summary statistics are n=500, x=6.86 km, s=4.76 km. Use a 0.01 significance level to test the claim of a seismologist that these earthquakes are from a population with a mean equal to 6.00. Assume that a simple random sample has been selected. Identify the null and alternative hypotheses, test statistic, P-value, and state the final conclusion that addresses the original claim. What are the null and alternative hypotheses? A. H0: μ=6.00 km H1:...
I'm only confused on why the P-Value is 0. I usually use my TI84 calculator and it gave me 7.354 Twenty years ago, 53% of parents of children in high school felt it was a serious problem that high school students were not being taught enough math and science. A recent survey found that 241 of 700 parents of children in high school felt it was a serious problem that high school students were not being taught enough math and...
Part A: Inferential Statistics Data Analysis, Plan and Computation Introduction: Variables Selected: Any two variables out of Income, Age, Food, Meat, Bakery, Fruits. Table 1: Quantitative Variables from the given Dataset spreadsheet Selected for Analysis Variable Name Description Variable 1: Variable 2: Data Analysis: 1. Confidence Interval Analysis: For one quantitative variable, select and run the appropriate method for estimating a parameter, based on a statistic (i.e., confidence interval method) and complete the following Table 2. Table 2: Confidence Interval...