Home » date » 2008 » Dec » 09 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 09 Dec 2008 07:08:55 -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/09/t1228831769lw064b9co7nco04.htm/, Retrieved Tue, 09 Dec 2008 14:09:29 +0000
 
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/09/t1228831769lw064b9co7nco04.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},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
137.0 135.9 138.1 137.1 135.1 139.6 131.8 136.7 128.9 131.3 129.5 129.0 129.8 125.4 128.6 130.2 124.6 123.7 124.4 119.2 124.4 123.1 120.9 120.9 117.8 113.6 113.2 115.9 121.1 107.6 114.7 112.8 112.1 109.8 108.5 102.7 110.6 108.2 112.7 107.9 102.7 108.4 108.4 106.9 108.9 103.7 103.6 111.6 105.5 105.5 101.3 103.8 100.3 108.2 105.6 103.0 100.5 104.3 99.1 91.5
 
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.502856-3.86250.000141
20.0758950.5830.281072
3-0.056424-0.43340.333152
40.0042530.03270.487024
5-0.010018-0.07690.469463
60.1604981.23280.111268
7-0.19766-1.51830.067145
80.0790730.60740.272969
9-0.134516-1.03320.152854
100.2014691.54750.063543
110.086120.66150.255434
12-0.279351-2.14570.01801
130.1664621.27860.103019
14-0.141354-1.08580.141001
150.0035750.02750.489094
160.1755351.34830.091357
17-0.042373-0.32550.372988
18-0.153066-1.17570.122214
190.1478191.13540.130395
20-0.178628-1.37210.087618
210.2551431.95980.027375
22-0.30508-2.34340.01125
230.2011481.5450.063841
24-0.131603-1.01090.158105
250.0259690.19950.421291
260.0447560.34380.366118
270.1460871.12210.133179
28-0.270663-2.0790.020987
290.1637421.25770.106722
30-0.066067-0.50750.306857
310.0061210.0470.48133
32-0.030789-0.23650.406935
330.0501540.38520.350721
340.008340.06410.47457
35-0.017852-0.13710.4457
360.0035480.02730.489174
370.0438380.33670.368759
38-0.068456-0.52580.300491
390.0267070.20510.419084
400.0412980.31720.376099
41-0.113213-0.86960.19402
420.1460071.12150.133309
43-0.065818-0.50560.307525
440.0436090.3350.369419
45-0.087441-0.67160.252215
460.0867250.66610.253957
47-0.082637-0.63470.264024
480.0611780.46990.320074
49-0.039427-0.30280.381537
500.0254420.19540.422865
510.0096240.07390.470661
520.0094390.07250.471222
530.0128130.09840.460966
54-0.031714-0.24360.404193
550.0206730.15880.437187
56-0.011497-0.08830.464965
57-0.016529-0.1270.449701
580.0019710.01510.493987
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.502856-3.86250.000141
2-0.236864-1.81940.036964
3-0.18197-1.39770.083713
4-0.144032-1.10630.136536
5-0.121338-0.9320.177564
60.1415321.08710.140702
7-0.040521-0.31120.378355
8-0.03894-0.29910.382957
9-0.191726-1.47270.073077
100.0416570.320.37506
110.3089122.37280.010466
12-0.111281-0.85480.198068
130.0129290.09930.460616
14-0.122544-0.94130.175201
15-0.190161-1.46070.074707
160.0065920.05060.479893
170.1131130.86880.194227
18-0.005756-0.04420.482442
190.0384560.29540.384367
20-0.167526-1.28680.101596
21-0.009639-0.0740.470616
22-0.290511-2.23150.014732
23-0.00351-0.0270.48929
24-0.044394-0.3410.367159
25-0.031918-0.24520.403588
26-0.056829-0.43650.332029
270.0341520.26230.396991
28-0.030623-0.23520.407425
29-0.074385-0.57140.284962
300.0409670.31470.37706
310.0107290.08240.467298
32-0.188259-1.4460.076728
33-0.034797-0.26730.395091
34-0.024158-0.18560.426711
350.0797360.61250.271291
36-0.043819-0.33660.368815
37-0.054695-0.42010.337961
38-0.01825-0.14020.444496
390.006170.04740.481181
40-0.057079-0.43840.331336
41-0.01904-0.14620.442112
420.0636040.48860.313484
430.0196430.15090.440293
44-0.100376-0.7710.22189
45-0.082692-0.63520.263887
46-0.077207-0.5930.277712
47-0.000932-0.00720.497155
480.0037930.02910.488429
490.063360.48670.314146
50-0.146969-1.12890.131757
510.0511290.39270.347968
52-0.011215-0.08610.465823
530.0196190.15070.440364
54-0.032975-0.25330.400464
550.1246670.95760.17109
560.0270920.20810.417936
57-0.055125-0.42340.336764
58-0.060524-0.46490.32186
59NANANA
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228831769lw064b9co7nco04/1pyba1228831728.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228831769lw064b9co7nco04/1pyba1228831728.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228831769lw064b9co7nco04/2941e1228831728.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228831769lw064b9co7nco04/2941e1228831728.ps (open in new window)


 
Parameters (Session):
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; 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