Question

In: Advanced Math

Year Tea (L per person) Coffee (L per person) 1994 42.4 95.85 1995 42.12 97.28 1996...

Year

Tea
(L per person)

Coffee
(L per person)

1994

42.4

95.85

1995

42.12

97.28

1996

47.61

87.62

1997

60.86

92.04

1998

55.58

99.21

1999

50.61

95.63

2000

49.89

97.42

2001

56.77

93.93

2002

62.53

95.67

2003

68.31

99.25

2004

69.88

101.31

2005

72.99

101.68

2006

71.36

104.02

2007

90.78

106.09

2008

74.7

105.8

2009

67.15

102.15

2010

67.03

101.15

2011

87.83

104.05

2012

93.4

102.7

2013

78.9

105.28

2014

111.32

106.3

2015

98.39

104.96

2016

105.25

103.57

By using the definition and discussing what is relevant to the situation, interpret each of the following for both the coffee and tea data. Also, compare each for coffee and tea. Be sure to include the relevant information (state the value of or, in the case of the distribution, include the graphs) with each component.

  1. Mean
  2. Median
  3. Modal Interval
  4. Range
  5. IQR
  6. Standard Deviation
  7. Distribution of histogram and box plot
  8. Slope of each linear model
  9. Y-intercept of Coffee vs. Tea
  10. Correlation coefficient for each linear model
  11. Relevant interpolations or extrapolations
  12. Correlation type (from Activity 5) for coffee and tea

Solutions

Expert Solution

R code with output

tea=c(42.4,42.12,47.61,60.86,55.58,50.61,49.89,56.77,62.53,68.31,69.88,72.99,71.36,90.78,74.7,67.15,67.03,87.83,93.4,78.9,111.32,98.39,105.25)
coffee=c(95.85,97.28,87.62,92.04,99.21,95.63,97.42,93.93,95.67,99.27,101.31,101.68,104.02,106.09,105.8,102.15,101.15,104.05,102.7,105.28,106.3,104.96,103.57)

year=c(1994:2016)  
mean(tea)
median(tea)
mfv1(tea)
range(tea)
mean(coffee)
median(coffee)
mfv1(coffee)

summary(tea)
summary(coffee)
IQRtea=83.36-56.18=27.18
IQRcoffee=104.00-96.56=7.44
sd(tea)
sd(coffee)

range(coffee)
hist(coffee)
hist(tea)
boxplot(coffee)
boxplot(tea)
plot(coffee,tea)

plot(year,coffee)
plot(year,tea)

m=lm(coffee~tea)
summary(m)
cor(coffee,tea)

The measure of central tendency are mean, median , mode(mfv-most frequent observation) etc..

Measure of spread is range

range(tea) =111.32-42.12

=69.2

range(coffee)=106.30-87.62

=18.68

Here the model interval length is 5 units.

Here the model interval length is taken as 10 units.

Box plot of coffee

From the plot it is clear that the distribution is negatively skewed and there is no outliers in the data.

Box plot of tea

From the plot we can infer that the distribution is positively skewed and there is no outliers in the model.


The correlation between Coffee and tea is 0.769, which implies there is positive linear relationship exist between the variable tea and coffee.

The obtained model is:

coffee=86.3200+0.1954*tea


Related Solutions

Consider the following Data: Year Tea (L per person) Coffee (L per person) 1994 42.4 95.85...
Consider the following Data: Year Tea (L per person) Coffee (L per person) 1994 42.4 95.85 1995 42.12 97.28 1996 47.61 87.62 1997 60.86 92.04 1998 55.58 99.21 1999 50.61 95.63 2000 49.89 97.42 2001 56.77 93.93 2002 62.53 95.67 2003 68.31 99.25 2004 69.88 101.31 2005 72.99 101.68 2006 71.36 104.02 2007 90.78 106.09 2008 74.7 105.8 2009 67.15 102.15 2010 67.03 101.15 2011 87.83 104.05 2012 93.4 102.7 2013 78.9 105.28 2014 111.32 106.3 2015 98.39 104.96 2016...
Consider the following Data: Year Tea (L per person) Coffee (L per person) 1994 42.4 95.85...
Consider the following Data: Year Tea (L per person) Coffee (L per person) 1994 42.4 95.85 1995 42.12 97.28 1996 47.61 87.62 1997 60.86 92.04 1998 55.58 99.21 1999 50.61 95.63 2000 49.89 97.42 2001 56.77 93.93 2002 62.53 95.67 2003 68.31 99.25 2004 69.88 101.31 2005 72.99 101.68 2006 71.36 104.02 2007 90.78 106.09 2008 74.7 105.8 2009 67.15 102.15 2010 67.03 101.15 2011 87.83 104.05 2012 93.4 102.7 2013 78.9 105.28 2014 111.32 106.3 2015 98.39 104.96 2016...
a. Per capita real GDP in Belgium grew an annual rate of 1.9% in 1994-1995, while...
a. Per capita real GDP in Belgium grew an annual rate of 1.9% in 1994-1995, while per capita real GDP in Malyasia grew an annual rate of 3.8%. Compute the doubling times. b. Suppose the per capita was $22,000 in Belgium in 1997 and $11,000 in Malaysia in 1997. Assuming rhe same growth rate continue, what will the respective levels of per capita income be in these countries in 2034. c. How long does it take per capita real GDP...
Year Sales Net Income After Tax 1992 $2,000,000 $240,000 1993 2,750,000 338,000 1994 3,200,000 384,000 1995...
Year Sales Net Income After Tax 1992 $2,000,000 $240,000 1993 2,750,000 338,000 1994 3,200,000 384,000 1995 5,000,000 575,000 1996 5,7000,000 600,000 1997 6,2000,000 713,000 1998 7,3000,000 803,000 1999 8,5000,000 860,000 2000 9,1000,000 900,000 2001 10,3000,000 912,720 What is the compound rate of growth for the firm's sales and net income after-tax?
Year Fall Winter Spring Summer 1995 220 203 193 84 1996 235 208 206 76 1997...
Year Fall Winter Spring Summer 1995 220 203 193 84 1996 235 208 206 76 1997 236 206 209 73 1998 241 215 206 92 1999 239 221 213 115 Regression Equation: Slope:   Intercept:   Equation of the predicted line:   
If a person spends $10 a week on coffee (assume $500 a year), what would be...
If a person spends $10 a week on coffee (assume $500 a year), what would be the future value of that amount over 8 years if the funds were deposited in an account earning 3 percent? Round your FVA factor to 3 decimal places and final answer to the nearest whole dollar.
Predicting if income exceeds $50,000 per year based on 1994 US Census Data with Simple Classification...
Predicting if income exceeds $50,000 per year based on 1994 US Census Data with Simple Classification Techniques Linear Discriminant Analysis: Perform cross-validated LDA (LOOCV) with variable income.cat as response, and all the numeric variables as predictors. Compute and display the resulting (cross-validated) contingency table as well as the corresponding classification accuracy and classification error. Comment on the result. Use Rstudio
Compare one poor person with an income of $10,000 per year with a relatively wealthy person...
Compare one poor person with an income of $10,000 per year with a relatively wealthy person who has an income of $60,000 per year. Imagine that the person drinks 15 bottles of wine per year at a price of $10 per bottle while the wealthy person drinks 50 bottles of wine per year at an average price of $20 per bottle. If a tax of $1 per bottle is imposed on wine, who pays more on taxes? Who pays the...
​Beryl's Iced Tea currently rents a bottling machine for $ 51,000 per​ year, including all maintenance...
​Beryl's Iced Tea currently rents a bottling machine for $ 51,000 per​ year, including all maintenance expenses. It is considering purchasing a machine instead and is comparing two​ options: a. Purchase the machine it is currently renting for $ 160,000. This machine will require $ 20,000 per year in ongoing maintenance expenses. b. Purchase a​ new, more advanced machine for $ 255,000. This machine will require $ 20,000 per year in ongoing maintenance expenses and will lower bottling costs by...
Beryl's Iced Tea currently rents a bottling machine for $ 54,000 per​ year, including all maintenance...
Beryl's Iced Tea currently rents a bottling machine for $ 54,000 per​ year, including all maintenance expenses. It is considering purchasing a machine​ instead, and is comparing two​ options: A. Purchase the machine it is currently renting for $ 160,000. This machine will require $ 21,000 per year in ongoing maintenance expenses. B. Purchase a​ new, more advanced machine for $ 260,000. This machine will require $ 15,000 per year in ongoing maintenance expenses and will lower bottling costs by...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT