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 06:33:39 -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/t122882970366uyqlpt920u0e9.htm/, Retrieved Tue, 09 Dec 2008 13:35:03 +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/t122882970366uyqlpt920u0e9.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 «
75 38 20 6 11 38 54 44 37 39 4 49 45 29 20 9 16 3 56 53 35 49 11 54 47 31 21 14 9 16 61 57 40 42 7 43 56 29 34 14 25 39 53 39 32 40 1 47 39 39 20 7 43 43 21 39 35 38 12 37 34
 
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.1227220.95850.170799
2-0.159202-1.24340.109237
3-0.315882-2.46710.008222
4-0.332105-2.59380.005934
50.1212990.94740.173593
60.137031.07020.144365
70.1417231.10690.136342
8-0.229555-1.79290.038975
9-0.243614-1.90270.030902
10-0.128994-1.00750.158844
110.1744551.36250.08902
120.6141224.79645e-06
130.0731470.57130.284948
14-0.095978-0.74960.228185
15-0.265697-2.07520.021098
16-0.313457-2.44820.008625
170.0756610.59090.278375
180.148661.16110.125068
190.0812520.63460.264031
20-0.167935-1.31160.097282
21-0.150318-1.1740.122475
22-0.054437-0.42520.336107
230.1122470.87670.19205
240.384483.00290.001937
250.0621750.48560.314494
26-0.073217-0.57180.284765
27-0.235004-1.83540.035659
28-0.269728-2.10660.019635
290.0982240.76720.222973
300.1376831.07530.14323
310.0928040.72480.235667
32-0.064072-0.50040.309291
33-0.079672-0.62230.268044
34-0.035003-0.27340.39274
350.0372050.29060.386178
360.2401951.8760.032722
370.0057670.0450.48211
38-0.04863-0.37980.352701
39-0.15647-1.22210.113192
40-0.095441-0.74540.229442
410.1091090.85220.198727
420.0721910.56380.287468
430.033560.26210.39706
440.003720.02910.488458
45-0.054918-0.42890.334746
46-0.075334-0.58840.279227
470.0685070.53510.297277
480.087290.68180.248987
49-0.00484-0.03780.484985
50-0.044743-0.34950.363975
51-0.061391-0.47950.316657
520.0034160.02670.489402
530.0064390.05030.480028
54-0.007598-0.05930.476436
550.0388850.30370.381196
560.0141450.11050.456198
570.001450.01130.495501
58-0.049912-0.38980.349011
590.0106070.08280.467123
600.0029760.02320.490765


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1227220.95850.170799
2-0.176928-1.38190.086029
3-0.284219-2.21980.015079
4-0.329653-2.57470.006238
50.0825460.64470.260767
6-0.073763-0.57610.283332
7-0.014099-0.11010.456339
8-0.357701-2.79370.003476
9-0.182892-1.42840.079134
10-0.277111-2.16430.017182
11-0.014001-0.10930.456643
120.3937573.07530.001572
13-0.063747-0.49790.310178
140.0454590.3550.361891
150.0757740.59180.278081
16-0.066316-0.51790.303186
17-0.041738-0.3260.372777
180.0142610.11140.45584
19-0.13277-1.0370.151922
20-0.118729-0.92730.178711
21-0.001085-0.00850.496632
22-0.009325-0.07280.471088
23-0.17438-1.36190.089111
24-0.045211-0.35310.362611
25-0.038859-0.30350.381272
26-0.091228-0.71250.239432
27-0.122036-0.95310.172142
28-0.119198-0.9310.17777
29-0.056501-0.44130.330282
30-0.077804-0.60770.272831
31-0.023429-0.1830.427709
32-0.022064-0.17230.431877
330.0032120.02510.490032
340.0135530.10590.458024
35-0.064523-0.50390.308058
36-0.064693-0.50530.307594
37-0.115187-0.89960.185925
38-0.056894-0.44440.329178
39-0.08027-0.62690.266523
400.1113910.870.193859
410.0146270.11420.45471
42-0.015042-0.11750.453431
43-0.087457-0.68310.248576
440.1141180.89130.188139
45-0.053985-0.42160.337387
46-0.118957-0.92910.178254
470.0505220.39460.34726
48-0.078544-0.61340.270932
490.007460.05830.476864
50-0.01243-0.09710.461491
510.0493250.38520.350698
520.0027090.02120.491595
53-0.098708-0.77090.22186
54-0.125932-0.98360.164608
550.0006260.00490.498059
56-0.102381-0.79960.213516
570.052080.40680.342806
58-0.057269-0.44730.328126
59-0.038108-0.29760.383499
600.0442750.34580.365341
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t122882970366uyqlpt920u0e9/1ktn11228829614.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t122882970366uyqlpt920u0e9/1ktn11228829614.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t122882970366uyqlpt920u0e9/25reb1228829614.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t122882970366uyqlpt920u0e9/25reb1228829614.ps (open in new window)


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