Home » date » 2010 » Dec » 18 »

opgave 6bis.2 stap 2 degree of non-seasonal differencing op 1

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 18 Dec 2010 13:56:19 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/18/t1292680788c1c0mwc7bq1zsx3.htm/, Retrieved Sat, 18 Dec 2010 14:59:51 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/18/t1292680788c1c0mwc7bq1zsx3.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100.4 97.7 97 96.5 98.4 106.3 103.1 102.4 95 98.1 106.1 99.1 101.2 95.5 99.8 97.1 97.5 96.8 97.7 100.9 94.3 99.5 100.8 97 99.2 101 102.3 97 91.2 97.6 95.7 100.5 94.4 102.9 105.1 98.8 100.7 99.6 107.7 102.9 101.6 102.7 110.5 109.8 94.3 102.5 105 102.3 107.7 100.3 99.5 95 97.7 96.3 97.8 106.4 96.1 106.2 114.7 111.9 121 117.7 115.4 114.3 109.5 108.1 108.2 99.1 101.2 98.1 95.5 97.9 98.2 98.7 95.6 95.8 94.4 96.5 103.3 104.3 104.5 102.3 103.8 103.1 102.2 106.3 102.1 94 102.6 102.6 106.7 107.9 109.3 105.9 109.1 108.5 111.7 109.8 109.1 108.5 108.5 106.2 117.1 109.8 115.2 115.9 119.2 121 118.6 117.6 114.6 110.6 102.5 101.6 107.4 105.8 102.8 104 100.4 100.6
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.323623-3.53030.000296
2-0.017327-0.1890.4252
30.0590990.64470.260183
4-0.101128-1.10320.136089
50.1908332.08170.019755
6-0.194064-2.1170.018172
70.0683420.74550.228714
8-0.06741-0.73540.231785
9-0.029379-0.32050.374581
10-0.04783-0.52180.301404
11-0.203783-2.2230.014052
120.3162343.44970.000389
13-0.129062-1.40790.080883
14-0.020321-0.22170.412471
15-0.028697-0.3130.377398
16-0.03238-0.35320.362274
170.1745551.90420.029651
18-0.175605-1.91560.028906
190.0954391.04110.149967
200.0264130.28810.386873
210.0220460.24050.405181
22-0.083091-0.90640.183272
23-0.058244-0.63540.263204
240.214032.33480.010615
25-0.129801-1.4160.079699
260.0711890.77660.219475
27-0.088109-0.96120.169212
280.0234810.25620.399138
29-0.003029-0.0330.486849
30-0.092379-1.00770.157813
310.099871.08950.139077
32-0.084367-0.92030.179629
330.0842870.91950.179857
34-0.103807-1.13240.129872
35-0.110796-1.20860.114598
360.2031432.2160.014296
37-0.017337-0.18910.425158
38-0.010513-0.11470.454445
39-0.049151-0.53620.296418
40-0.033146-0.36160.359155
41-0.041896-0.4570.324239
420.0552440.60260.273948
430.0661240.72130.236061
44-0.009425-0.10280.459142
450.0193350.21090.416656
46-0.068318-0.74530.22879
470.0808140.88160.189891
480.0578280.63080.264682


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.323623-3.53030.000296
2-0.136338-1.48730.069794
30.0097930.10680.45755
4-0.08947-0.9760.16552
50.1526781.66550.04922
6-0.10844-1.18290.119595
70.0006830.00750.497033
8-0.101997-1.11270.134049
9-0.052478-0.57250.284043
10-0.154601-1.68650.04716
11-0.270151-2.9470.001931
120.1458121.59060.057174
130.0141830.15470.438652
14-0.023999-0.26180.396965
15-0.107777-1.17570.12103
16-0.042546-0.46410.321705
170.0252850.27580.39158
18-0.099364-1.08390.140293
19-0.023408-0.25540.399446
200.0332440.36270.358754
210.0542930.59230.277396
22-0.129782-1.41580.079729
23-0.027136-0.2960.383864
240.0845050.92180.179237
25-0.052774-0.57570.282955
260.0260420.28410.38842
27-0.028219-0.30780.379375
280.0411790.44920.32705
29-0.165713-1.80770.036589
30-0.044121-0.48130.315592
310.0281680.30730.379586
32-0.060275-0.65750.256058
33-0.019945-0.21760.414067
34-0.035924-0.39190.347922
35-0.114404-1.2480.10724
36-0.030484-0.33250.370032
370.088540.96590.168037
38-0.042514-0.46380.321827
39-0.041417-0.45180.326116
40-0.161912-1.76620.039959
41-0.209708-2.28760.011962
420.0237350.25890.398073
430.0085270.0930.463022
440.0543120.59250.27733
45-0.052748-0.57540.283048
46-0.026933-0.29380.384709
470.082580.90080.184747
480.0182790.19940.421145
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292680788c1c0mwc7bq1zsx3/16i0r1292680577.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292680788c1c0mwc7bq1zsx3/16i0r1292680577.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292680788c1c0mwc7bq1zsx3/2hrhc1292680577.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292680788c1c0mwc7bq1zsx3/2hrhc1292680577.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292680788c1c0mwc7bq1zsx3/3hrhc1292680577.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292680788c1c0mwc7bq1zsx3/3hrhc1292680577.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by