Question

In: Statistics and Probability

You and your friends have decided to take a trip after the semester ends to celebrate...

You and your friends have decided to take a trip after the semester ends to celebrate getting through your statistics class. Pick a departure point from a location that is close to your hometown (Denver, CO). You will find a list of ten different destinations for your trip below. ). So, you should have data for 12 different destination points. You need to collect some data online to find the distance between cities as well as the cost of airfare. You do not need to factor in driving distance or cost to get to your departure point – only include the flight distance and cost of airfare between your departure point and each destination.

  1. Create a fitted line plot showing the relationship between distance and cost. Based on your plot, how do you think the cost of the trip is associated with the distance of the trip? Why do you think that a perfect linear relationship does not exist? (i.e. why are the points scattered?)

  2. Determine the correlation coefficient, r. Interpret this value in the context of the problem. Based on this value, do you think the linear model is a good fit? Why or why not?

  3. Interpret the slope and y-intercept of the regression line in the context of the problem.

  4. Find residuals

  5. Using your regression equation for the line of best fit, predict the cost of flying to each destination based on the distances from your original data. Then calculate the residuals for each data point. Enter this information in a table like shown below.

    1. Destination Distance (Miles) Observed Cost Estimated Cost Residuals
      Miami, FL 2,066 $755 $207
      San Diego, CA 1,078 $480 $144
      Las Vegas, NV 749 $157 $93
      New York City, NY 1,779 $417 $232
      Honolulu, HI 3,344 $1,600 $714
      Seattle, WA 1,316 $426 $162
      London, England 4,683 $2,225 $842
      Cancun, Mexico 1,670 $544 $368
      Toronto, Canada 1,344 $1,759 $646
      Sydney, Australia 8,325 $1,618 $1,235
      Rome, Italy 5,567 $,1203 $1,313
      - - - - -

Solutions

Expert Solution

I used R software to solve this problem.

> dist=scan('clipboard')
> dist
[1] 2066 1078 749 1779 3344 1316 4683 1670 1344 8325 5567
> cost=scan('clipboard')
Read 11 items
> cost
[1] 755 480 157 417 1600 426 2225 544 1759 1618 1203
> plot(dist,cost)
> fit=lm(cost~dist)
> abline(fit)

a) fitted line plot:

Cost is positively correlated to distance. Since point does not lie on straight line hence it is not perfect linear relation.

b)

cor(dist,cost)
[1] 0.6254736

Correlation coefficient = r= 0.6254736


Correlation is high degree positive. It means that if we increase distance then cost also get increase.

I think linear model is good for this data because we see almost all points are lie near straight line.

c)

Interpretation of slope and intercept.

> summary(fit)

Call:
lm(formula = cost ~ dist)

Residuals:
Min 1Q Median 3Q Max
-467.4 -344.3 -248.2 196.7 1026.2

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 487.94103 278.76516 1.750 0.1140
dist 0.18222 0.07577 2.405 0.0396 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 568.3 on 9 degrees of freedom
Multiple R-squared: 0.3912, Adjusted R-squared: 0.3236
F-statistic: 5.784 on 1 and 9 DF, p-value: 0.03958

Interpretation of slope: When distance is increased by 1 mile then cost is increased by $0.18222

Interpretation of intercept : When distance is 0 mile then cost is $487.94103.

d)

Residuals = Observed cost - expected cost

Residuals
548
336
64
185
886
264
1383
176
1113
383
-110

Related Solutions

9. At the end of tax season, you and your friends go out to celebrate. Unfortunately,...
9. At the end of tax season, you and your friends go out to celebrate. Unfortunately, you enjoy the evening a bit too much and, on the way home, are pulled over by the police. After given a sobriety test, you are arrested for felony DUI. Do you report this incident to the board of accountancy? If not, under what circumstances are you required to do so?
You and your closest friends have decided to go to see a private screening of a...
You and your closest friends have decided to go to see a private screening of a movie at a local movie theater where you can be socially distant. Friends will be added to the queue after their names are input by the user. Because of current restrictions, the queue (line) for tickets can only have a capacity of 7 people. Write a Java program using a Queue (of size 7) that will display a menu: 1) add person to line...
You are planning to take a spring break trip to Canada your senior year. The trip...
You are planning to take a spring break trip to Canada your senior year. The trip is exactly two years away, but you want to be prepared and have enough money when the time comes. Explain how you would determine the amount of money you will have to save in order to pay for the trip. 2. Identify the steps involved in computing the present value when you have multiple cash flows.
Richard and Kevin decided to go for ice cream after work on Friday to celebrate Kevin's...
Richard and Kevin decided to go for ice cream after work on Friday to celebrate Kevin's birthday. Richard purchased the largest cone and Kevin selected his favourite flavour.    Kevin took two mouth fulls and out jumped a mouse! He felt sick in his stomach and subsequently suffered severe diarrahea. He is upset and comes to you for advice. Advise him.
You trip and fall and a scalpel ends up between your ribs and breathing becomes difficult....
You trip and fall and a scalpel ends up between your ribs and breathing becomes difficult. What has happened? How can it be fixed? After your discharge from the hospital you go out for a nice dinner to celebrate. Puffer fish is on the menu. Turns out your previous patient is the chef and is less than motivated to carefully prepare your dinner. You end up with TTX poisoning. TTX blocks voltage gated sodium channels. How would this affect the...
You plan to take a trip to the moon. Since you do not have a traditional...
You plan to take a trip to the moon. Since you do not have a traditional spaceship with rockets, you will need to leave the earth with enough speed to make it to the moon. Some information that will help during this problem: mearth = 5.9742 x 1024 kg rearth = 6.3781 x 106 m mmoon = 7.36 x 1022 kg rmoon = 1.7374 x 106 m dearth to moon = 3.844 x 108 m (center to center) G =...
Jordan and Taylor became friends after meeting on a reality cooking show. They have recently decided...
Jordan and Taylor became friends after meeting on a reality cooking show. They have recently decided to start an Internet business to sell their delicious chocolate brownies. Their knowledge of business, unlike their totally awesome culinary skills, is questionable. Knowing that you are accounting students, they will be asking you advice now and then. You received a text that Jordan and Taylor were on their way. When they arrived, you could smell the aroma of fresh baked brownies. You are...
You are off on a camping trip to the high sierra with a group of friends...
You are off on a camping trip to the high sierra with a group of friends and one of them relays that they are scared of getting Giardia. Actually, the correct medical term is giardiasis. Fresh from a microbiology class you want to help them and proceed with a lively description of (a) the life cycle (be sure to include animal hosts), (b) symptoms one might experience if infected, (c) the availability of drugs should someone happen to contract the...
1. You are planning to take a spring break trip to Canada your senior year. The...
1. You are planning to take a spring break trip to Canada your senior year. The trip is exactly two years away, but you want to be prepared and have enough money when the time comes. Explain how you would determine the amount of money you will have to save in order to pay for the trip. 2. Identify the steps involved in computing the present value when you have multiple cash flows. **I hope for a non-repeated answer so...
1. You are planning to take a spring break trip to Canada your senior year. The...
1. You are planning to take a spring break trip to Canada your senior year. The trip is exactly two years away, but you want to be prepared and have enough money when the time comes. Explain how you would determine the amount of money you will have to save in order to pay for the trip. 2. Identify the steps involved in computing the present value when you have multiple cash flows.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT