100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

ISYE 6402 Homework 4 Questions and Answers

Puntuación
-
Vendido
-
Páginas
21
Grado
A+
Subido en
02-10-2025
Escrito en
2025/2026

ISYE 6402 Homework 4 Questions and Answers

Institución
ISYE 6402
Grado
ISYE 6402










Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
ISYE 6402
Grado
ISYE 6402

Información del documento

Subido en
2 de octubre de 2025
Número de páginas
21
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

2/14/25, 12:02 AM ISYE 6402 Homework 4




ISYE 6402 Homework 4
Background
For this data analysis, you will analyze the daily and weekly domestic passenger count arriving in Hawaii airports.
File DailyDomestic.csv contains the daily number of passengers between May 2019 and February 2023 File
WeeklyDomestic.csv contains the weekly number of passengers for the same time period. Here we will use
diferent ways of ftting the ARIMA model while dealing with trend and seasonality.

library(lubridate)
library(mgcv)
library(tseries)
library(car)



Instructions on reading the data
To read the data in R , save the fle in your working directory (make sure you have changed the directory if
diferent from the R working directory) and read the data using the R function read.csv()

daily <- read.csv("DailyDomestic.csv", head = TRUE)
daily$date <- as.Date(daily$date)
weekly <- read.csv("WeeklyDomestic.csv", head = TRUE)
weekly$week <- as.Date(weekly$week)



Question 1. Trend and seasonality estimation
1a. Plot the daily and weekly domestic passenger count separately. Do you see a strong trend and seasonality?

# plot daily time series
daily_ts = ts(daily$domestic, start= decimal_date(ymd("2019-05-01")) , frequency = 365)
ts.plot(daily_ts, ylab="domestic_passenger_count", main="Daily Data")




1/21

,2/14/25, 12:02 AM ISYE 6402 Homework 4




# plot weekly time series
weekly_ts = ts(weekly$domestic, start= decimal_date(ymd("2019 -05-05")) , frequency = 52)
ts.plot(weekly_ts, ylab="domestic_passenger_count", main="Weekly Data")




Response

There seem to be some strong seasonality There are cyclical patterns with roughly yearly cycle. There are 2
roughly 2 peaks: one at the beginning of the year, the other at the end of the year. There is a slight upward trend
observed as well, but the trend is not strong.
1b. (Trend and seasonality) Fit the weekly domestic passenger count with a non-parametric trend using splines
and monthly seasonality using ANOVA. Is the seasonality signifcant? Plot the ftted values together with the
original time series. Plot the residuals and the ACF of the residuals. Comment on how the model fts and on the
2/21

, 2/14/25, 12:02 AM ISYE 6402 Homework 4

appropriateness of the stationarity assumption of the residuals.

# x-axis points converted to 0-1 scale, common in nonparametric
regression time.pts = c(1:length(weekly_ts))
time.pts = c(time.pts - min(time.pts))/max(time.pts)

# splines Trend Estimation
weekly_month <- as.factor(month(weekly$week))
weekly.gam.fit = gam(weekly_ts~s(time.pts)+weekly_month)
weekly_ts.fit.gam = ts(fitted(weekly.gam.fit), start=decimal_date(ymd("2019-05-
05")),fre quency=52)
ts.plot(weekly_ts, ylab="domestic_passenger_count")
lines(weekly_ts.fit.gam, lwd=2, col = 'purple')




# calculate residual
weekly_ts.dif.gam = ts((weekly_ts - weekly_ts.fit.gam), start=decimal_date(ymd("2019-
05-05")),frequency=52)

# plot residual
ts.plot(weekly_ts.dif.gam,ylab="residual")




3/21
$18.49
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
TutorExpert West Virgina University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
448
Miembro desde
3 año
Número de seguidores
313
Documentos
7846
Última venta
15 horas hace

Expertise in Nursing, Biochemistry, Mathematics, Psychology, Biology, History etc. My Work contains the latest, updated Exam Solutions, Study Guides.100% verified &amp; Guarantee Top Grades Attained.

3.7

59 reseñas

5
26
4
11
3
10
2
2
1
10

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes