版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、Time-series analysisBasic time seriesData on the outcome of a variable or variables in different time periods are known as time-series data.Time-series data are prevalent in finance and can be particularly challenging because they are likely to violate the underlying assumptions of linear regression
2、.Residual errors are correlated instead of being uncorrelated, leading to inconsistent coefficient estimates.The mean and/or variance of the explanatory variables may change over time, leading to invalid regression results.Example of a basic time series known as an autoregressive process:2Trend anal
3、ysisThe most basic form of time-series analysis examines trends that are sustained movements in the variable of interest in a specific direction.Trend analysis often takes one of two forms:Linear trend analysis, in which the dependent variable changes at a constant rate over time.Ex: if b0=3 and b1,
4、 then the predicted value of y after three periods is2. Log-linear trend analysis, in which the dependent variable changes at an exponential rate over time or constant growth at a particular rateEx: if b0 and b1, then the predicted value of y after three periods is3Linear or log-linear? How do we de
5、cide between linear and log-linear trend models?Is the estimated relationship persistently above or below the trend line? Are the error terms correlated? We can diagnose these by examining plots of the trend line, the observed data, and the residuals over time.4Trend models and serial correlationAre
6、 the results of our trend model estimation valid?Trend models, by their very construction, are likely to exhibit serial correlation.In the presence of serial correlation, our linear regression estimates are inconsistent and potentially invalid.Use the DurbinWatson test to establish whether there is
7、serial correlation in the estimated model.If so, it may be necessary to transform our data or use other estimation techniques.5Autoregressive time-series modelsAbbreviated as AR(p) models, the p indicates how many lagged values of the dependent variable are used and is known as the “order” of the mo
8、del.6Covariance-stationary seriesA time series is said to be covariance stationary if its mean and variance do not change over time.Time series that are not covariance stationary have linear regression estimates that are invalid and have no economic meaning.For a time series to be stationary,The exp
9、ected value of the series must be finite and constant across time.The variance of the series must be finite and constant across time.The covariance of the time series with itself must be finite and constant for all intervals over all periods across time.Visually, we can inspect the time-series model
10、 for a mean and variance that appear stationary as an initial screen for likely stationarity.7Residual autocorrelationWe can use the autocorrelation of the residuals from our estimated time-series model to assess model fit.The autocorrelation between one time-series observation and another one at di
11、stance k in time is known as the kth order autocorrelation.A correctly specified autoregressive model will have residual autocorrelations that do not differ significantly from zero.Testing procedure:Estimate the AR model and calculate the error terms (residuals).Estimate the autocorrelations for the
12、 error terms (residuals).Test to see whether the autocorrelations are statistically different from zero.This is a t-test, which, if the null hypothesis of no correlation is rejected, mandates modification of the model or data.A failure to reject the null indicates that the model is statistically val
13、id.8Mean reversionA series is mean reverting if its values tend to fall when they are above the mean and rise when they are below the mean.For an AR(1) the values willStay constant whenRise whenFall when9Multiperiod forecastsWe can use the chain rule of forecasting to gain multiperiod forecasts with
14、 an AR(p) model.10In- and out-of-sample forecastingIn-sample forecast errors are simply the residuals from a fitted time series, whereas out-of-sample forecast errors are the difference between predicted values from outside the sample period and the actual values once realized.An in-sample forecast
15、uses the fitted model to obtain predicted values within the time period used to estimate model parameters.An out-of-sample forecast uses the estimated model parameters to forecast values outside of the time period covered by the sample.In both cases, the forecast error is the difference between the
16、forecast and the realized value of the variable.Ideally, we will select models based on out-of-sample forecasting error.Model accuracy is generally assessed by using the root mean squared error criterion.Calculate all the errors, square them, calculate the average, and then take the square root of t
17、hat average.The model with the lowest mean-squared error is judged the most accurate.11Coefficient instabilityTime-series coefficient estimates can be unstable across time. Accordingly, sample period selection becomes critical to estimating valuable models.This instability can also affect model esti
18、mation because changes in the underlying time-series process can mean that different time-series models work better over different time periods.Ex. A basic AR(1) model may work well in one period, but an AR(2) may fit better in another period. If we combine the two periods, we are likely to select e
19、ither the AR(1) or AR(2) model for the combined time span, thereby poorly fitting at least one time span of data.There are no clear-cut rules for selecting an appropriate time frame for a particular analysis.Rely on basic sampling theory Dont use two clearly different populations.Rely on basic time-
20、series properties Dont mix stationary and nonstationary series or series with different mean or variance terms.The longer the sample period The more likely the samples come from different populations.12Random walksAn AR(1) series where b0=0 and b1=1 is known as a random walk because the best predict
21、ion for tomorrow is the value today plus a random error term.Very prevalent in financeUndefined mean-reversion level because b0/(1 b1) = 0/0 undefinedNot covariance stationaryThere is another common variation, known as a random walk with a drift, where b0 is a constant number that is not zero.13Unit
22、 rootsFor an AR(1) time series to be covariance stationary, the absolute value of the b1 coefficient must be less than 1. When the absolute value of b1 is 1, the time series is said to have a unit root.Because a random walk is defined as having b1 = 1, all random walks have a unit root.We cannot est
23、imate a linear regression and then test for b1 = 1 because the estimation itself is invalid.Instead, we conduct a DickeyFuller test, which is available in most common statistics packages, to determine if we have a unit root.14Unit roots and estimation15Smoothing modelsThese models remove short-term
24、fluctuations by smoothing out a time series.An n-period moving average is calculated asConsider the returns on a given bond index as x0 = 0.12 , x-1 = 0.14, x-2 = 0.13, x-3 = 0.2.What is the three-period moving-average return for one period ago (t = 1)?What is the three-period moving-average return
25、for this period (t = 0)?16Moving-average time-series models17Determining the order of a MA(q)18LagAutocorrelationt-Statistic11.46096.891221.43845.458931.45896.120440.98750.234550.03560.0132AR(p) vs. MA(q)To determine whether a time series is an AR(p) or a MA(q), examine the autocorrelations.The auto
26、correlations for an AR model will generally begin as large values and gradually decline.The autocorrelations for a MA model will drop dramatically after q lags are reached, identifying both the MA process and its order.19seasonalityTime series that show regular patterns of movement within a year acr
27、oss years.Seasonal lags are most often included as a lagged value one year before the prior value.We detect such patterns through the autocorrelations in the data.For quarterly data, the fourth autocorrelation will not be statistically zero if there is quarterly seasonality.For monthly, the 12th, an
28、d so on.To correct for seasonality, we can include an additional lagged term to capture the seasonality.For quarterly data, we would include a prior year quarterly seasonal lag as 20Forecasting with seasonal lags21Autoregressive Moving-Average modelsIt is possible for a time series to have both AR a
29、nd MA processes in it, leading to a class of models known as ARMA (p,q) models (and beyond).22Autoregressive conditional heteroskedasticityHeteroskedasticity is the dependence of the error term variance on the independent variable.23Predicting variance24CointegrationTwo time series are cointegrated
30、when they have a financial or economic relationship that prevents them from diverging without bound in the long run.We will often formulate models that include more than one time series. If any time series in a regression contains a unit root, the ordinary least squares estimates may be invalid.If b
31、oth time series have a unit root and they are cointegrated, the error term will be stationary and we can proceed with caution to estimate the relationship via ordinary least squares and conduct valid hypothesis tests.The caution arises because the regression coefficients represent the long-term relationship between the variables and may not be useful for short-term forecasts.We can test for cointegration using either an EngleGranger or DickeyFuller test.2
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年浙科版七年級科學(xué)上冊階段測試試卷
- 2025年浙教版選擇性必修1語文下冊階段測試試卷含答案
- 2025年人教版選擇性必修三歷史上冊階段測試試卷
- 2025年冀教新版選修4歷史上冊月考試卷含答案
- 2025年滬科新版七年級數(shù)學(xué)上冊階段測試試卷含答案
- 技能拓展培訓(xùn)合同(2篇)
- 抵押變更合同(2篇)
- 承包的合同范本(2篇)
- 2025版農(nóng)場農(nóng)產(chǎn)品質(zhì)量安全追溯系統(tǒng)建設(shè)合同4篇
- 2025年度智能建筑項目搭建委托合同4篇
- 慈溪高一期末數(shù)學(xué)試卷
- 天津市武清區(qū)2024-2025學(xué)年八年級(上)期末物理試卷(含解析)
- 《徐霞客傳正版》課件
- 江西硅博化工有限公司年產(chǎn)5000噸硅樹脂項目環(huán)境影響評價
- 高端民用航空復(fù)材智能制造交付中心項目環(huán)評資料環(huán)境影響
- 貴州省黔東南州2024年七年級上學(xué)期數(shù)學(xué)期末考試試卷【附答案】
- 量子醫(yī)學(xué)成像學(xué)行業(yè)研究報告
- DB22T 3268-2021 糧食收儲企業(yè)安全生產(chǎn)標(biāo)準(zhǔn)化評定規(guī)范
- 辦事居間協(xié)議合同范例
- 正念減壓療法詳解課件
- 學(xué)校校本課程《英文電影鑒賞》文本
評論
0/150
提交評論