Question: For the data screenshot sent , I need Code in R for the following questions ## PART A: ### A 1 : Get tourism data

For the data screenshot sent , I need Code in R for the following questions
## PART A:
### A1: Get tourism data as given below from the link. Then convert the data into tsibble format by using tsibble functions. Save it as my_tourism
### A2. To analyze the data, first view my_tourism set, and see the dates of the data.
#### 1. Is it annual or quarterly data? Which year does it start from?
#### 2. Use table(State,Purpose) command to see the cross-table. How many States are there in the data? How many Purpose of trips category?
#### 3. Group the data by Region and Purpose by using group() command.To eliminate time effect, use tibble format. (i.e as_tibble()%>% group_by(Region, Purpose))
#### 4. After grouping the data in #3, use summarize() function to get the average of Trips for each combination, and assign it as Trips( i.e., summarise(Trips = mean(Trips)).
#### 5. Find which region has Purpose had the maximum number of overnight trips on average. ungroup the data to find the result( i.e ungroup()%>% filter(Trips == max(Trips)))
### A3.Question: Create a new tsibble which combines the Purposes and Regions,and just has total trips by State. (i.e. group_by(State)%>%summarise(Trips = sum(Trips))). Then ungroup() the data. Save it as state_tourism.
## PART B:
### B1.Question: Create plots of the following time series. Analyze it visually. What do you see? comment on the below in Answer.
## PART C:
### C1. Question: Use my_tourism data you created as tsibble in A1. Filter Region for Snowy_Mountains and save it as snowy.
### C2. Question: Use autoplot(), gg_season() and gg_subseries() to explore the snowy data. What do you observe? What type of pattern do you see. Write your comment on Answer below
## PART D:
### D1.Question: Use these two functions 1) gg_lag 2) ACF to explore the following time series: i)Bricks from aus_production ii)Lynx from pelt iii) Victorian Electricity Demand from aus_elec. Write your comments about each graphs you created
### D2.Question: after using these functions, Can you spot any seasonality, cyclicity and trend? What do you learn about the series? Write your comments below for each series:
#### i) Bricks
#### ii) Lynx from pelt:
#### iii) Electricity
## PART E: See the data below for Google Stock price from the gafa_stock data set.
### E1: Calculate the first difference of the "goog" series.
### E2. Question: Does "diff" (difference of the series) look like white noise? Recall the definition of white noise. Recall what function do you use to check if a series is white noise or not. Use the necessary graph that shows if a series is white noise? Comment based on the graph.
 For the data screenshot sent , I need Code in R

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!