Home » date » 2008 » Dec » 15 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 15 Dec 2008 09:03:01 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/15/t122935727573x7tsomxuf4p8x.htm/, Retrieved Mon, 15 Dec 2008 17:07:55 +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/2008/Dec/15/t122935727573x7tsomxuf4p8x.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
118.3 127.3 112.3 114.9 108.2 105.4 122.1 113.5 110 125.3 114.3 115.6 127.1 123 122.2 126.4 112.7 105.8 120.9 116.3 115.7 127.9 108.3 121.1 128.6 123.1 127.7 126.6 118.4 110 129.6 115.8 125.9 128.4 114 125.6 128.5 136.6 133.1 124.6 123.5 117.2 135.5 124.8 127.8 133.1 125.7 128.4 131.9 146.3 140.6 129.5 132.4 125.9 126.9 135.8 129.5 130.2 133.8 123.3 140.6
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.300328-2.10230.020345
2-0.032801-0.22960.409676
30.2407411.68520.049156
4-0.120291-0.8420.20193
50.1833651.28360.102667
60.0207030.14490.442683
7-0.146003-1.0220.155895
8-0.088697-0.62090.268777
90.2491781.74420.043693
10-0.231791-1.62250.055553
11-0.01079-0.07550.470051
120.0739930.5180.303411
13-0.171798-1.20260.117457
140.0924150.64690.260357
150.0432550.30280.381669
16-0.133617-0.93530.177106
17-0.02481-0.17370.43142
180.1713371.19940.118078
19-0.22964-1.60750.057187
200.0469790.32890.371835
21-0.007545-0.05280.479048
22-0.131826-0.92280.180322
230.2484731.73930.04413
24-0.296426-2.0750.02163
25-0.075083-0.52560.300775
260.1275920.89310.188073
27-0.116414-0.81490.209537
28-0.042881-0.30020.382659
29-0.018588-0.13010.448503
30-0.015528-0.10870.456945
31-0.040342-0.28240.389414
320.1698641.18910.120075
33-0.141315-0.98920.163712
340.0575820.40310.344324
350.1097580.76830.222995
36-0.032374-0.22660.410831
370.1145320.80170.213292
380.0319110.22340.412084
39-0.067944-0.47560.318234
40-0.012373-0.08660.465667
410.1489671.04280.151086
42-0.142644-0.99850.16147
430.0172730.12090.452129
440.003850.0270.489304
45-0.07219-0.50530.307797
460.1029160.72040.237348
47-0.067743-0.47420.318731
480.0170950.11970.452618
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.300328-2.10230.020345
2-0.135192-0.94630.174308
30.2115561.48090.072519
40.0191840.13430.446863
50.2029531.42070.080873
60.0916820.64180.262006
7-0.098987-0.69290.245818
8-0.301818-2.11270.019872
90.1418010.99260.16289
10-0.123527-0.86470.195711
11-0.028755-0.20130.420655
120.0062810.0440.482555
130.0053170.03720.485232
14-0.063203-0.44240.330065
150.0882540.61780.269791
16-0.0226-0.15820.437474
17-0.096885-0.67820.250418
180.065790.46050.323587
19-0.113676-0.79570.215013
20-0.094324-0.66030.256087
21-0.117521-0.82260.207347
22-0.003328-0.02330.490754
230.1871141.30980.098185
24-0.22091-1.54640.064225
25-0.163894-1.14730.128424
26-0.01384-0.09690.461609
27-0.122526-0.85770.197621
28-0.094816-0.66370.254992
29-0.015195-0.10640.457864
300.0672110.47050.32005
31-0.062749-0.43920.331208
320.0415870.29110.386099
330.0146460.10250.459382
340.0441690.30920.379246
35-0.050406-0.35280.36286
360.0779850.54590.293808
370.0482410.33770.36852
38-0.002248-0.01570.493754
39-0.063182-0.44230.33012
40-0.103729-0.72610.235614
41-0.076364-0.53450.29769
420.0192280.13460.446742
43-0.027683-0.19380.423574
44-0.09634-0.67440.25162
45-0.032133-0.22490.411484
460.0038460.02690.489315
470.035790.25050.401613
480.0248520.1740.431306
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122935727573x7tsomxuf4p8x/13eyj1229356973.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122935727573x7tsomxuf4p8x/13eyj1229356973.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122935727573x7tsomxuf4p8x/2iels1229356973.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t122935727573x7tsomxuf4p8x/2iels1229356973.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ;
 
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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x,par1,main='Autocorrelation',xlab='lags',ylab='ACF')
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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