Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. For question 4, you will use an imported data. Run the following R code (in blue) and use the thdcta data set to answer

image text in transcribed
4. For question 4, you will use an imported data. Run the following R code (in blue) and use the thdcta data set to answer the questions. R codes: hwl _data = read.csv( \"https: / f raw. githubltsercontentcom / hgweonZ / 933859 / master / thdatal .csv\" ) The imported data set contains 100 observations with 2 variables: x1 and x2. Include your R codes and output for the following questions. (a) Count the number of observations whose X] are greater than 6. (1 pt) (b) Count the number of observations Whose x1 are greater than 6 and X2 equal to H. (1 pt) (c) Consider a subset A that contains all observations with x2 = H. Compute the mean, median and standard deviation of the x1 values in subset A. [1 pt) ((1) The sample mean of x1 is 4.435. Can we argue that the true mean of 2:1 differs from 4? Conduct a ttest at signicance level 0: = 0.05. Give the test statistic [tvalue), pvalue and your conclusion. (1 pt) (9) Consider the statement: \"Given that x2 equals to H1 the true mean of x1 is larger than 4.\" Is this statement convincing? Use a t-test (a : 0.05) to support your answer. {2 pt)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Equation Of Knowledge From Bayes Rule To A Unified Philosophy Of Science

Authors: Lê Nguyên Hoang

1st Edition

1000063275, 9781000063271

More Books

Students also viewed these Mathematics questions

Question

What is the meaning and definition of E-Business?

Answered: 1 week ago