Home » date » 2009 » Aug » 16 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 16 Aug 2009 09:34:29 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Aug/16/t1250436922k9rx5juf89fh09t.htm/, Retrieved Sun, 16 Aug 2009 17:35:22 +0200
 
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/2009/Aug/16/t1250436922k9rx5juf89fh09t.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
105.46 104.66 103.52 103.71 103.78 103.67 103.66 102.76 102 101.5 101.5 99.22 98.97 98.9 99.78 104.4 106.21 105.46 108.33 111.72 111.88 112.86 113.09 116.9 114.62 118.86 124.71 122.53 127.89 136.16 134.12 130.26 135.35 131.43 129.61 123.96 121.1 125.38 123.1 129.92 136.68 131.17 124.82 122.47 126.15 118.74 116.8 116.64 116.53 117.68 119.46 126.19 124.39 121.9 122.53 122.93 124.66 124.41 120.93 120.18 123.44 126.1 125.82 122.18 117.27 117.86 119.09 123.08 125.42 121.81 121.66 121.27 120.92 122.16 124.17 127.26 134.16 134.09 135.57 136.13 136.23 140.6 136.5 130.59 129.5 135.25 138.06 146.28 145.04 147.96 156.71 160.97 168.17 163.91 153.05 151.76
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9420359.230
20.8693888.51820
30.7874767.71570
40.6987266.84610
50.6254346.1280
60.5561075.44870
70.5008454.90732e-06
80.4529794.43831.2e-05
90.4104394.02155.8e-05
100.3857113.77920.000137
110.3582113.50970.000342
120.3131523.06830.001399
130.2624332.57130.005833
140.2105142.06260.020925
150.1466851.43720.076954
160.0953660.93440.176223
170.0492910.4830.315114
180.0058450.05730.477225
19-0.026444-0.25910.398057
20-0.055122-0.54010.295195
21-0.07003-0.68620.247135
22-0.079755-0.78140.218235
23-0.089362-0.87560.191727
24-0.091525-0.89680.186045
25-0.098378-0.96390.168758
26-0.109342-1.07130.143354
27-0.109999-1.07780.141919
28-0.11001-1.07790.141895
29-0.102507-1.00440.158864
30-0.081646-0.80.212854
31-0.064657-0.63350.263955
32-0.052835-0.51770.302936
33-0.038752-0.37970.352508
34-0.026989-0.26440.396005
35-0.014616-0.14320.443213
36-0.004805-0.04710.481273
37-0.002224-0.02180.491329
380.0006980.00680.497278
39-0.002647-0.02590.48968
40-0.001735-0.0170.493237
410.010640.10430.458593
420.0116290.11390.454762
430.0076410.07490.470239
440.0090280.08850.464849
450.018880.1850.426815
460.0378980.37130.355607
470.0583310.57150.28449
480.0747650.73250.232811


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9420359.230
2-0.160261-1.57020.059826
3-0.107579-1.05410.147252
4-0.091942-0.90080.184963
50.1072331.05070.148026
6-0.033921-0.33240.370172
70.0643090.63010.265064
8-0.017393-0.17040.432522
90.0064020.06270.475056
100.10721.05030.1481
11-0.066673-0.65330.257576
12-0.199204-1.95180.026938
13-0.048973-0.47980.316216
140.0338750.33190.370341
15-0.135863-1.33120.093142
160.0832290.81550.208411
17-0.016823-0.16480.43471
18-0.049615-0.48610.313991
190.0286120.28030.389909
20-0.010777-0.10560.458061
210.0122480.120.452364
220.0071630.07020.472099
230.0089310.08750.465227
240.0105440.10330.458965
25-0.013523-0.13250.447433
26-0.022481-0.22030.413067
270.0729490.71480.238249
28-0.005983-0.05860.476687
290.0655110.64190.261242
300.084530.82820.2048
31-0.059787-0.58580.279694
32-0.086219-0.84480.200169
330.0530730.520.302127
340.0077630.07610.469764
35-0.024023-0.23540.407211
360.0278640.2730.392718
37-0.053096-0.52020.30205
38-0.011865-0.11630.453846
39-0.004097-0.04010.48403
400.0196240.19230.423966
410.0212310.2080.417826
42-0.080557-0.78930.215944
43-0.047754-0.46790.320461
440.0667880.65440.257215
450.1407621.37920.085522
460.0428590.41990.337737
47-0.014339-0.14050.444284
48-0.03608-0.35350.362241
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250436922k9rx5juf89fh09t/182jo1250436865.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250436922k9rx5juf89fh09t/182jo1250436865.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250436922k9rx5juf89fh09t/2mme21250436865.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250436922k9rx5juf89fh09t/2mme21250436865.ps (open in new window)


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