Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Applied Statistics Expert

R Programming Assignment -

Instructions: Please submit both R script and word document with final answers (where appropriate).

Question 1 - Download the seasonal_data.csv data set. Create an R script that addresses the following:

Show a table of average sales by month.

Show a table of average sales by year.

Show a table that lists all years, the month that contained the maximum sales amount for the entire year, and the corresponding amount.

Assume the following quarters: Q1 (Jan, Feb, Mar), Q2 (April, May, June), Q3 (July, Aug, Sep), and Q4 (Oct, Nov, Dec). Using data visualization to support your points, describe the variation in sales by quarter.

Question 2 - Download the bank_customers.csv data set. Create an R script that addresses the following:

Recode Education column from numeric to character where 1 represents "Undergrad," 2 represents "Graduate," and 3 represents "Advanced."

Make Education an ordered factor variable.

Create an Income_level column with "Low" representing below $50,000, "Medium" representing $50,000 - $150,000 inclusive and "High" representing above $150,000.

Create a facet wrap bar chart that shows the Average Age for each Income_level that is wrapped by Education.

Create a scatter plot of average spending on credit cards (CCAvg) vs. income. CCavg should be the y-variable while income should be the x-variable. Use different point colors to represent the varying levels of education.

Create 3 linear regression models of CCavg (y) vs. Income (x) for each level of education. Show the regression coefficients of each model.

What was the customer ID and corresponding residual value of the customer with the most overestimated CCavg?

What was the customer ID and corresponding residual value of the customer with the most underestimated CCavg?

How many customers had a predicted value within 10% (plus or minus) from their actual value?

Applied Statistics, Statistics

  • Category:- Applied Statistics
  • Reference No.:- M92872323

Have any Question?


Related Questions in Applied Statistics

Using minitab to construct linear regression modelsscatter

Using Minitab to Construct Linear Regression Models Scatter Plot To obtain a simple scatter plot using Minitab: One of the first steps in the analysis of the study data is to create a scatter plot that compares the quant ...

The scientific method assessment task - data analysis

The Scientific Method Assessment Task - Data Analysis Assignment QUESTION 1 - Single-factor experiments Use Minitab for this question. The data in Q1 tab of 60902_AssessmentTask3Data_Spring2018.xlsx records blood cholest ...

Go to the website of ahrqs website titled advances in

Go to the website of AHRQ's website titled Advances in Patient Safety: From Research to Implementation located in the Webliography and select a specific research article. Bring back to the class, at minimum, the followin ...

Assignment - research topicpurpose the purpose of this task

Assignment - Research topic Purpose: The purpose of this task is to ensure you are progressing satisfactorily with your research project, and that you have clean, useable data to analyse for your final project report. Ta ...

Business data analysis facts from figures assignment

BUSINESS DATA ANALYSIS: FACTS FROM FIGURES Assignment - Question 1 - Private capital expenditure for 12 successive quarters are presented in the following table: Quarter Millions     1 31,920 2 25,120 3 30,350 4 24,650 5 ...

Assignment -for each of the prompts below report the

Assignment - For each of the prompts below, report the appropriate degrees of freedom, t statistic, p-value and plot using the statistical software platform of your choice (R/STATA) 1) A sample of 12 men and 14 women hav ...

Exercise -q1 do the example data in table 35-2 meet the

Exercise - Q1. Do the example data in Table 35-2 meet the assumptions for the Pearson χ 2 test? Provide a rationale for your answer. Q2. Compute the χ 2 test. What is the χ 2 value? Q3. Is the χ 2 significant at α = 0.05 ...

Part a -question 1 - true or false in data collection the

Part A - Question 1 - True or False: In data collection, the most common technique to ensure proper representation of the population is to use a random sample. True False Question 2 - Most analysts focus on the cost of H ...

Business statistics assignment -quiz 1 -question 1 - a

Business Statistics Assignment - Quiz 1 - Question 1 - A study is under way in the Otway National Park to determine the mature height of Mountain Ash gum trees. Specifically, the study is attempting to determine what fac ...

Question 1 for the prostate data set fit a model with lpsa

Question 1. For the prostate data set, fit a model with lpsa as the response, and the other variables as predictors. (a) Suppose a new patient with the following values arrives: lcavol = 1.45000, lweight = 3.59801, age = ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As