As the global economy fluctuates, we are interested in the exchange rate from Japanese Yen to U.S. dollar over the past five decades. The data named ‘EXJPUS’ is a data from the FRED (Federal Reserve Economic Data), the original source was from Board of Governors of the Federal Reserve System (US).
The data contains monthly, not seasonally adjusted values which the unit is Japanese Yen to one U.S. dollar. The data ranges from 1971 to 2023. Additionally, as described on the website: “Averages of daily figures. Noon buying rates in New York City for cable transfers payable in foreign currencies. This data series is updated from the source files in the Data Download Program. The files are updated on a weekly basis every Monday. If Monday is a holiday, the data files are updated the next business day. Monthly values are averages of the daily data available. Preliminary value for the current month is provided by the source even if not all daily values are available for the entire month.”
The prediction of the data ‘EXJPUS’ will primarily consists of three forecasting models: Exponential Smoothing (ETS), ARIMA, and Regression.
library(ggplot2)
library(fpp3)
## ── Attaching packages ────────────────────────────────────────────── fpp3 0.5 ──
## ✔ tibble 3.2.1 ✔ tsibbledata 0.4.1
## ✔ dplyr 1.1.3 ✔ feasts 0.3.1
## ✔ tidyr 1.3.0 ✔ fable 0.3.3
## ✔ lubridate 1.9.3 ✔ fabletools 0.3.4
## ✔ tsibble 1.1.3
## ── Conflicts ───────────────────────────────────────────────── fpp3_conflicts ──
## ✖ lubridate::date() masks base::date()
## ✖ dplyr::filter() masks stats::filter()
## ✖ tsibble::intersect() masks base::intersect()
## ✖ tsibble::interval() masks lubridate::interval()
## ✖ dplyr::lag() masks stats::lag()
## ✖ tsibble::setdiff() masks base::setdiff()
## ✖ tsibble::union() masks base::union()
library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ forcats 1.0.0 ✔ readr 2.1.4
## ✔ purrr 1.0.2 ✔ stringr 1.5.0
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ tsibble::interval() masks lubridate::interval()
## ✖ dplyr::lag() masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(tsibble)
library(forecast)
## Registered S3 method overwritten by 'quantmod':
## method from
## as.zoo.data.frame zoo
library(seasonal)
##
## Attaching package: 'seasonal'
##
## The following object is masked from 'package:tibble':
##
## view
setwd('C:/Users/14471/Downloads')
exchange_rate <- read.csv("C:/Users/14471/Downloads/EXJPUS.CSV") |>
mutate(Month = yearmonth(DATE)) |>
as_tsibble(
index = Month
)
exchange_rate
Here we imported the data ‘EXJPUS’ into Rstudio using the read.csv function. We then convert the data into a time series table tsibble. The tsibble indicates that we have a monthly data with a frequency of 12.
Before further analyzing our data, it is necessary to go over two basic plots in order to understand the general idea of the data such as trend and seasonality. The following two plots time plot and season plot provide a good illustration of the data ‘EXJPUS’:
exchange_timeplot <- exchange_rate |>
autoplot(EXJPUS) +
labs(title = 'Exchange Rate Time Plot', y = 'Exchange Rate')
print(exchange_timeplot)
exchange_season <- exchange_rate |>
gg_season(EXJPUS, max_col = 100) +
labs(title = 'Exchange Rate Seasonal Plot', y = 'Exchange Rate')
print(exchange_season)
The time plot will be conducted using the function autoplot() and the seasonal plot will be conducted using the function gg_season().
Based on the time plot, we witnessed an obvious downward trend over the past five decades from 1971 to present. However, we do see an increase in exchange rate around year 2013. The trend continues to the present and further increased from 2021.
Similarly, by looking at the seasonal plot, there is a general decline in exchange rate. As seen by the orange color at the top of the graph which represents the year 1971 at a value over 300. As the color gets more blue, the exchange rate decreases. It is witnessed that the exchange rate reached it lowest point at the blue line, which occurred around 2013 which is consistent with the time plot.
To conclude given the above two graphs:
Similarly to the previous section, we need to conduct time series decomposition before actually building models to predict future values. Decomposing the data in order to get the underlying trend of the data, seasonal aspects of the data, and a remainder analysis.
The trend results from decomposition would represent deseasonalize or seasonally-adjusted. Seasonally-adjusted data enables us to discover correlation between two variables if they have different seasonal trends.
Here, STL decomposition is used with the default season: window = 13:
# STL Decomposition
dcmp <- exchange_rate |>
model(stl = STL(EXJPUS ~ season(window = 13)))
components(dcmp) |>
autoplot()
exchange_rate |>
autoplot(EXJPUS, color = 'gray') +
autolayer(components(dcmp), trend, color = 'orange')
exchange_rate2 <- ts(exchange_rate$EXJPUS, frequency = 12, start = 1971)
# Additive Seasonal Decomposition
dcmp_additive <- decompose(exchange_rate2, type = 'additive')
autoplot(dcmp_additive)
# Multiplicative Seasonal Decomposition
dcmp_multiplicative <- decompose(exchange_rate2, type = 'multiplicative')
autoplot(dcmp_multiplicative)
Based on the above seasonal-trend decomposition, which consists of the data itself, the trend, and seasonally-adjusted data, and the remainder. We saw that the trend perfectly reflected our original data, there are no anomaly. For the seasonally-adjusted data, the pattern is quite bizarre given that the seasonality fluctuation drastically over the first two decades from 1971 to 1990. It is witnessed that there is an unusual pattern from around 1975 to 1981 where the seasonality shrank in size and the amplitude declined significantly. The seasonal pattern became relatively normal after 2020 and stabilized since then. For the remainder aspect of the data, after taking the trend and seasonality into consideration, what left over would be the residuals. However, in this case, what left over is quite messy, as seen on the graph, the residuals are large in scales and fluctuates dramatically. This means there are huge noises in our data, which are undesirable.
The second two plots of the data are classical additive and multiplicative decomposition which gives us similar results as the STL decomposition. We do witness a lot of noises left over in our data, especially in the first half of the data from 1971 to 2000.
# Divide the training set and the test set. The years from 1971 to 2009 are the training set, and the years from 2010 to 2013 are the test set.split_point <- 468
exchange_rate$DATE= as.Date(exchange_rate$DATE)
split_point <- 468
train_data <- exchange_rate[1:split_point, ]
test_data <- exchange_rate[(split_point + 1):516, ]
total_data <- exchange_rate[1:516, ]
train_ts_data <- ts(train_data$EXJPUS, start=c(1971,1), frequency = 12)
test_ts_data <- ts(test_data$EXJPUS, start=c(2010,1), frequency = 12)
total_ts_data <- ts(total_data$EXJPUS, start=c(1971,1), frequency = 12)
plot(test_ts_data, main = "Test Time Series", ylab = "Exchange Rate")
plot(total_ts_data, main = "Total Time Series", ylab = "Exchange Rate")
Before building models for our data, the data is split into two groups: training and testing sets. Specifically, we selected years from 1971 to 2009 as the training set, whereas years from 2010 to 2013 are selected as the testing set.
We set the split point to be a value of 468, which means that 468/12 =39 years of data is chosen for training, and will be used as the inputs of the model building.
We used the ts() function which it assumes monthly data and we specified a number of 12 for frequency. Plus, our data began in January, 1971, thus we would write the code as : “start = c(1971, 1), (frequency = 12)”.
After splitting the training and testing sets, we illustrated the testing and total time series using the plot function.
# Use the auto.arima() function to automatically select the parameters of the ARIMA model
arima_model <- auto.arima(train_ts_data)
summary(arima_model)
## Series: train_ts_data
## ARIMA(2,1,1)(2,0,1)[12] with drift
##
## Coefficients:
## ar1 ar2 ma1 sar1 sar2 sma1 drift
## -0.0351 0.0348 0.3975 0.9238 -0.1346 -0.8306 -0.5618
## s.e. 0.3920 0.1494 0.3876 0.1607 0.0483 0.1590 0.2465
##
## sigma^2 = 20.75: log likelihood = -1367.62
## AIC=2751.23 AICc=2751.55 BIC=2784.4
##
## Training set error measures:
## ME RMSE MAE MPE MAPE MASE
## Training set -0.01621858 4.516423 3.209047 0.04458133 1.976657 0.1819359
## ACF1
## Training set -1.272645e-05
# Forecast based on the future 4 years
forecast_values <- forecast(arima_model, h = 48)
print(forecast_values)
## Point Forecast Lo 80 Hi 80 Lo 95 Hi 95
## Jan 2010 90.17745 84.339310 96.01559 81.2487842 99.10612
## Feb 2010 89.59435 79.727690 99.46101 74.5045958 104.68410
## Mar 2010 89.84571 77.090938 102.60049 70.3389689 109.35246
## Apr 2010 88.98198 73.844643 104.11931 65.8314220 112.13253
## May 2010 88.15073 70.956916 105.34454 61.8550623 114.44639
## Jun 2010 87.14619 68.115865 106.17652 58.0418187 116.25056
## Jul 2010 86.20197 65.497396 106.90654 54.5370564 117.86688
## Aug 2010 85.67824 63.424998 107.93148 51.6448432 119.71163
## Sep 2010 85.04956 61.348630 108.75049 48.8021158 121.29700
## Oct 2010 84.63807 59.572930 109.70322 46.3042445 122.97190
## Nov 2010 84.30444 57.945596 110.66329 43.9920655 124.61682
## Dec 2010 83.86478 56.272822 111.45674 41.6665212 126.06304
## Jan 2011 83.37896 54.447839 112.31007 39.1326313 127.62528
## Feb 2011 82.31166 52.043347 112.57997 36.0202700 128.60305
## Mar 2011 81.73658 50.184312 113.28885 33.4815485 129.99162
## Apr 2011 80.67663 47.888892 113.46436 30.5321142 130.82114
## May 2011 80.09566 46.117309 114.07402 28.1302540 132.06107
## Jun 2011 79.05333 43.924630 114.18203 25.3286192 132.77804
## Jul 2011 78.36504 42.122491 114.60759 22.9368434 133.79324
## Aug 2011 77.69148 40.368307 115.01466 20.6106099 134.77236
## Sep 2011 77.47971 39.106320 115.85309 18.7926771 136.16673
## Oct 2011 77.10330 37.707694 116.49891 16.8529199 137.35368
## Nov 2011 76.82465 36.432685 117.21662 15.0504697 138.59883
## Dec 2011 76.20811 34.843778 117.57244 12.9468232 139.46940
## Jan 2012 75.61041 33.354827 117.86600 10.9860716 140.23475
## Feb 2012 74.58451 31.476515 117.69250 8.6565228 140.51249
## Mar 2012 73.90102 29.958365 117.84367 6.6965287 141.10551
## Apr 2012 72.91965 28.158536 117.68077 4.4634310 141.37588
## May 2012 72.37640 26.811539 117.94127 2.6909565 142.06185
## Jun 2012 71.43026 25.075608 117.78492 0.5369357 142.32359
## Jul 2012 70.80307 23.671855 117.93428 -1.2779022 142.88404
## Aug 2012 70.13290 22.237720 118.02808 -3.1164581 143.38226
## Sep 2012 69.90344 21.256283 118.55059 -4.4959652 144.30284
## Oct 2012 69.49267 20.104991 118.88035 -6.0392663 145.02461
## Nov 2012 69.16173 19.044469 119.27899 -7.4860070 145.80947
## Dec 2012 68.53292 17.696547 119.36930 -9.2146042 146.28045
## Jan 2013 67.92773 16.436561 119.41890 -10.8212187 146.67668
## Feb 2013 67.00521 14.886384 119.12404 -12.7036579 146.71409
## Mar 2013 66.33278 13.594893 119.07067 -14.3228599 146.98843
## Apr 2013 65.45042 12.101253 118.79959 -16.1400917 147.04094
## May 2013 64.90833 10.954824 118.86184 -17.6064366 147.42310
## Jun 2013 64.05614 9.505011 118.60727 -19.3726123 147.48489
## Jul 2013 63.45094 8.308669 118.59322 -20.8818875 147.78377
## Aug 2013 62.80407 7.076919 118.53122 -22.4232511 148.03139
## Sep 2013 62.50217 6.196221 118.80812 -23.6103471 148.61469
## Oct 2013 62.05494 5.176081 118.93380 -24.9337679 149.04364
## Nov 2013 61.66830 4.222243 119.11435 -26.1878608 149.52446
## Dec 2013 61.05196 3.044253 119.05966 -27.6631716 149.76709
plot(forecast_values, main = "ARIMA Predict", xlab = "Date", ylab = "Exchange Rate")
residuals <- residuals(arima_model)
# Residuals vs. Time
plot(residuals, main = "residuals & date", ylab = "residuals")
# Residuals Histogram
hist(residuals, main = "residuals histogram", xlab = "residuals")
# QQ Plot
df <- data.frame(residuals)
ggplot(df, aes(sample = residuals)) +
geom_qq() +
geom_qq_line()
## Don't know how to automatically pick scale for object of type <ts>. Defaulting
## to continuous.
## Don't know how to automatically pick scale for object of type <ts>. Defaulting
## to continuous.
# ACF of Residuals
acf(residuals)
actual_values<-test_data$EXJPUS
mse <- mean((actual_values - forecast_values$mean)^2)
print(mse)
## [1] 308.9962
The above graphs illustrated the results generated from building the model ARIMA. The prediction is shown in the light blue line according to the ‘ARIMA Predict’ graph. The ARIMA method predicts that the exchange rate will continue to drop in the next three years until 2013. After comparing with the actual value, the ARIMA method captures the general trend occurred in the actual graph.
However, it does not capture the seasonality of the actual graph quite well. By looking at the ‘Residual vs. Time’ figure, we can see some anomalies which occurred primarily during 1971 to 1990 with residuals that have huge amplitudes. To further analyze the residual factor, the ACF plot of the model is a key. The highest line in the ACF plot at 0 is normal. However, we do witness two points that are outside of the 95% confidence interval. One of the points occurred at a value of 1.75 while the other occurred at approximately 1.9. Overall, the residuals are within the confidence interval with two exceptions and some points that are very closer to the 95 confidence interval threshold. Moreover, if we take a look at the histogram of residuals, it can be seen that the distribution is not that quite normal, there is a skewness in the graph. Besides the histogram, the Q-Q plot can also tell us something. The Q-Q plot for ARIMA does not capture all of the points and align them on the line. The middle part of the points successfully aligned with the line, but the two tails deviate from the line in a large extent, especially the left tail. Lastly, the mean squared error was calculated with a value of 308.9962.
ets_model <- ets(train_ts_data)
forecast_values <- forecast(ets_model, h = 48)
print(forecast_values)
## Point Forecast Lo 80 Hi 80 Lo 95 Hi 95
## Jan 2010 89.70974 86.66307 92.75640 85.05026 94.36921
## Feb 2010 89.51691 84.77789 94.25593 82.26920 96.76462
## Mar 2010 89.36265 83.09845 95.62684 79.78239 98.94291
## Apr 2010 89.23924 81.54382 96.93465 77.47012 101.00836
## May 2010 89.14051 80.08744 98.19358 75.29503 102.98599
## Jun 2010 89.06153 78.71571 99.40734 73.23897 104.88409
## Jul 2010 88.99834 77.41938 100.57731 71.28984 106.70684
## Aug 2010 88.94779 76.19100 101.70459 69.43796 108.45763
## Sep 2010 88.90735 75.02413 102.79058 67.67479 110.13992
## Oct 2010 88.87500 73.91304 103.83697 65.99265 111.75735
## Nov 2010 88.84912 72.85257 104.84568 64.38450 113.31374
## Dec 2010 88.82842 71.83806 105.81878 62.84390 114.81293
## Jan 2011 88.81185 70.86533 106.75838 61.36501 116.25870
## Feb 2011 88.79860 69.93061 107.66659 59.94250 117.65471
## Mar 2011 88.78800 69.03054 108.54547 58.57157 119.00444
## Apr 2011 88.77952 68.16209 109.39696 57.24787 120.31117
## May 2011 88.77274 67.32255 110.22292 55.96751 121.57796
## Jun 2011 88.76731 66.50952 111.02510 54.72696 122.80766
## Jul 2011 88.76297 65.72082 111.80511 53.52305 124.00289
## Aug 2011 88.75949 64.95453 112.56446 52.35294 125.16604
## Sep 2011 88.75671 64.20890 113.30453 51.21408 126.29935
## Oct 2011 88.75449 63.48239 114.02659 50.10415 127.40484
## Nov 2011 88.75271 62.77359 114.73184 49.02107 128.48436
## Dec 2011 88.75129 62.08124 115.42134 47.96297 129.53961
## Jan 2012 88.75015 61.40421 116.09609 46.92815 130.57216
## Feb 2012 88.74924 60.74148 116.75700 45.91507 131.58341
## Mar 2012 88.74851 60.09212 117.40490 44.92235 132.57468
## Apr 2012 88.74793 59.45529 118.04057 43.94870 133.54716
## May 2012 88.74746 58.83022 118.66471 42.99299 134.50194
## Jun 2012 88.74709 58.21621 119.27797 42.05415 135.44004
## Jul 2012 88.74679 57.61264 119.88094 41.13122 136.36237
## Aug 2012 88.74655 57.01891 120.47419 40.22332 137.26979
## Sep 2012 88.74636 56.43450 121.05822 39.32963 138.16309
## Oct 2012 88.74621 55.85891 121.63351 38.44943 139.04299
## Nov 2012 88.74609 55.29169 122.20048 37.58201 139.91017
## Dec 2012 88.74599 54.73243 122.75955 36.72674 140.76524
## Jan 2013 88.74591 54.18073 123.31109 35.88303 141.60879
## Feb 2013 88.74585 53.63625 123.85545 35.05035 142.44135
## Mar 2013 88.74580 53.09864 124.39296 34.22818 143.26342
## Apr 2013 88.74576 52.56761 124.92391 33.41605 144.07547
## May 2013 88.74573 52.04286 125.44860 32.61353 144.87792
## Jun 2013 88.74570 51.52412 125.96728 31.82020 145.67120
## Jul 2013 88.74568 51.01115 126.48022 31.03569 146.45567
## Aug 2013 88.74566 50.50370 126.98763 30.25963 147.23170
## Sep 2013 88.74565 50.00157 127.48974 29.49169 147.99962
## Oct 2013 88.74564 49.50453 127.98675 28.73154 148.75974
## Nov 2013 88.74563 49.01241 128.47886 27.97890 149.51236
## Dec 2013 88.74563 48.52500 128.96625 27.23349 150.25776
plot(forecast_values, main = "ETS Predict", xlab = "Date", ylab = "Exchange Rate")
# OR
autoplot(forecast(ets(train_ts_data), h = 48))
residuals2 <- residuals(ets_model)
plot(residuals2, main = "residuals & date", ylab = "residuals")
hist(residuals2, main = "residuals histogram", xlab = "residuals")
df <- data.frame(residuals2)
ggplot(df, aes(sample = residuals2)) +
geom_qq() +
geom_qq_line()
## Don't know how to automatically pick scale for object of type <ts>. Defaulting
## to continuous.
## Don't know how to automatically pick scale for object of type <ts>. Defaulting
## to continuous.
acf(residuals2)
mse2 <- mean((actual_values - forecast_values$mean)^2)
print(mse2)
## [1] 69.51083
The above results are generated using the ETS, also known as Exponential Smoothing method. Predictions are made using two functions with h = 48, meaning that the prediction involves 4 years from 2010 to 2013. As seen by the prediction, the predicted value seems quite flat.
If we take a look at the ‘Residual vs. Time’ plot, the fluctuations are quite huge and just by looking at it, there might be some extreme points where they are outside of 2 standard deviations. To discover if it is the case, the ACF plot can give us an insight. As usual, the highest line at value 0 is normal. We do see a lot of points that are outside of the 95% confidence interval. Points at 0.1, 0.2, 0.4, 0.5, 0.6, 0.9, 1.3, 1.75, and 1.9 are considered outside of 2 standard deviation. There are nine points that are slightly outside of the CI boundaries, which means that our data has autocorrelation structures.
As for the histogram of residuals, we see a shape that is close to a normal distribution, but there is still some extent of skewness present. Shifting our focus to the related Q-Q plot, we witness a much better plot than the one for ARIMA. Most of the points align well in the middle and on the right tale. However, there is huge discrepancies on the left tail that deviate from the line. Finally, the ETS model has a mean squared error of 69.51083.
##Regression Model
reg <- train_data |>
ggplot(aes(x = DATE, y = EXJPUS)) +
geom_point() +
geom_smooth(method = 'lm', se = FALSE)
reg
## `geom_smooth()` using formula = 'y ~ x'
regression_model <- lm( EXJPUS~ DATE, data = train_data)
summary(regression_model)
##
## Call:
## lm(formula = EXJPUS ~ DATE, data = train_data)
##
## Residuals:
## Min 1Q Median 3Q Max
## -62.556 -31.397 5.535 26.567 71.118
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 2.951e+02 3.177e+00 92.89 <2e-16 ***
## DATE -1.615e-02 3.725e-04 -43.36 <2e-16 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 33.14 on 466 degrees of freedom
## Multiple R-squared: 0.8014, Adjusted R-squared: 0.801
## F-statistic: 1880 on 1 and 466 DF, p-value: < 2.2e-16
new_data <- data.frame(DATE=test_data$DATE,EXJPUS=test_data$EXJPUS)
predictions <- predict(regression_model, newdata = new_data)
par(mar = c(2, 4, 2, 2))
plot(new_data$DATE, new_data$EXJPUS, col = "blue", main = "Actual Values", xlab = "DATE", ylab = "EXJPUS", pch = 16)
plot(new_data$DATE, predictions, col = "red", main = "Predicted Values", xlab = "DATE", ylab = "EXJPUS", pch = 16)
mse3 <- mean((actual_values - predictions)^2)
print(mse3)
## [1] 1643.058
residuals3 <- residuals(regression_model)
hist(residuals3, main = "Histogram of Residuals", xlab = "Residuals", col = "lightblue", border = "black")
The above results are generated using the Linear Regression model. The first figure provides a general trend of the data, the trend is downward. By using the predict() function, we were able to predict the values after 2010, the predicted 2014 value is expected to be around 30 which significantly deviates from the actual trend. We see an rapid increase after 2010 which the LR model fails to predict.
We assume the inefficient preiction of future value in the LR model because that Linear regression assumes homoscedasticity, meaning that the variance of the errors is constant across all levels of the independent variable. If the variance is not constant, and there is heteroscedasticity, it can lead to inefficient estimates and biased standard errors.
The histogram of residuals is not even close to a normal, bell-shaped distribution. The MSE for this model is calculated to have a value of 1643.058 which is considered a bad performance.
In our examination of the Japanese Yen to US Dollar exchange rate spanning from 1971 to the present, we utilized diverse analytical methods to gain insights into the historical trends and predict future movements. Our initial exploration revealed a discernible downward trend in the exchange rate over the last five decades, with a distinct uptick around 2013, followed by a more pronounced increase from 2021 onwards.
The monthly variations in the exchange rate were further analyzed through seasonal and time plots. Notably, the lowest points were observed in 1995 and 2013. Subsequent to this, we engaged in a thorough time series decomposition to discover the underlying components—trend, seasonality, and residuals. While the trend closely mirrored the original data’s decline, the seasonally-adjusted data exhibited interesting patterns, particularly a reduction in seasonality from 1975 to 1981. The residuals, however, depicted substantial noise, indicating challenges in modeling due to pronounced fluctuations.
Moving on to our prediction models, the ARIMA model effectively captured the general downward trend but faced difficulties replicating seasonality accurately. The analysis of residuals revealed anomalies primarily during the 1971 to 1990 period, with some points lying outside the 95% confidence interval. Furthermore, the distribution of residuals exhibited skewness, evident in the histogram and quantile-quantile plot. The model’s performance was evaluated through the Mean Squared Error (MSE), calculated at 308.9962.
In contrast, the Exponential Smoothing (ETS) model predicted a relatively flat trend, and the residuals displayed significant fluctuations. The autocorrelation structures in residuals were identified through points lying outside the 95% confidence interval in the ACF plot. While the residuals exhibited improved normal distribution compared to ARIMA, the model’s MSE was computed at 69.51083.
The Linear Regression model, however, faltered in predicting the rapid increase post-2010, possibly due to assumptions of homoscedasticity not holding. The residuals in this model displayed a non-normal distribution in the histogram, and the MSE was notably high at 1643.058, indicative of poor performance.
In conclusion, our analysis illuminated the challenges and strengths of each forecasting model in capturing the complexities of the Japanese Yen to US Dollar exchange rate. Given the diverse nature of the dataset, a nuanced approach, perhaps a combination of models or further refinement, may be imperative for more accurate predictions in forecasting future exchange rate movements. The choice of an appropriate model should carefully balance the considerations of trend and seasonality to ensure forecasting is valid and efficient.