Question
I'm working with a probability exercise using r from the book Probability and Statistics with R chapter 2 exercise 5, I'd appreciate some help with
I'm working with a probability exercise using r from the book Probability and Statistics with R chapter 2 exercise 5, I'd appreciate some help with this.
The data frame vit2005 in the PASWR package contains descriptive information and the appraised total price (in euros) for apartments in Vitoria, Spain.
(a) Create a frequency table, a piechart, and a barplot showing the number of apartments grouped by the variable out. For you, which method conveys the information best?
(b) Characterize the distribution of the variable totalprice.
(c) Characterize the relationship between totalprice and area.
(d) Create a Trellis plot of totalprice versus area conditioning on toilets. Are there any outliers? Ignoring any outliers, between what two values of area do apartments have both one and two bathrooms?
(e) Use the area values reported in (d) to create a subset of apartments that have both one and two bathrooms. By how much does an additional bathroom increase the appraised value of an apartment? Would you be willing to pay for an additional bathroom if you lived in Vitoria, Spain?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started