(bedrooms ~ waterfront, data = house_prices) ## ## Welch Two Sample t-test ## ## data: bedrooms by waterfront ## t = 0.83568, df = 163.83, p-value = 0.4046 ## alternative hypothesis: true difference in means is not equal to 0 ## 95 percent confidence interval: ## -0.09643533 0.23795892 ## sample estimates: ## mean in group FALSE mean in group TRUE ## 3.371375 3.300613
(bedrooms ~ waterfront, data = house_prices) ## ## Welch Two Sample t-test ## ## data: bedrooms by waterfront ## t = 0.83568, df = 163.83, p-value = 0.4046 ## alternative hypothesis: true difference in means is not equal to 0 ## 95 percent confidence interval: ## -0.09643533 0.23795892 ## sample estimates: ## mean in group FALSE mean in group TRUE ## 3.371375 3.300613
(bedrooms ~ waterfront, data = house_prices) ## ## Welch Two Sample t-test ## ## data: bedrooms by waterfront ## t = 0.83568, df = 163.83, p-value = 0.4046 ## alternative hypothesis: true difference in means is not equal to 0 ## 95 percent confidence interval: ## -0.09643533 0.23795892 ## sample estimates: ## mean in group FALSE mean in group TRUE ## 3.371375 3.300613
Interpret the 95% confidence interval given in the t.test() output from Lesson 10, in context. Does this interval agree with the conclusion you reached in the hypothesis test by using the p-value?
t.test(bedrooms ~ waterfront, data = house_prices) ## ##
Welch Two Sample t-test ## ## data: bedrooms by waterfront
## t = 0.83568, df = 163.83, p-value = 0.4046
## alternative hypothesis: true difference in means is not equal to 0
Definition Definition Measure of central tendency that is the average of a given data set. The mean value is evaluated as the quotient of the sum of all observations by the sample size. The mean, in contrast to a median, is affected by extreme values. Very large or very small values can distract the mean from the center of the data. Arithmetic mean: The most common type of mean is the arithmetic mean. It is evaluated using the formula: μ = 1 N ∑ i = 1 N x i Other types of means are the geometric mean, logarithmic mean, and harmonic mean. Geometric mean: The nth root of the product of n observations from a data set is defined as the geometric mean of the set: G = x 1 x 2 ... x n n Logarithmic mean: The difference of the natural logarithms of the two numbers, divided by the difference between the numbers is the logarithmic mean of the two numbers. The logarithmic mean is used particularly in heat transfer and mass transfer. ln x 2 − ln x 1 x 2 − x 1 Harmonic mean: The inverse of the arithmetic mean of the inverses of all the numbers in a data set is the harmonic mean of the data. 1 1 x 1 + 1 x 2 + ...
Expert Solution
Step 1
Concept: Confidence interval is the range in which at certain level of significance,the population parameter is gonna lie.