Home » date » 2008 » Dec » 21 »

*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, 21 Dec 2008 14:47:34 -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/21/t1229896075b32kxzeiohya4eo.htm/, Retrieved Sun, 21 Dec 2008 22:47:57 +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/21/t1229896075b32kxzeiohya4eo.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 «
1.8 1.7 1.4 1.2 1 1.7 2.4 2 2.1 2 1.8 2.7 2.3 1.9 2 2.3 2.8 2.4 2.3 2.7 2.7 2.9 3 2.2 2.3 2.8 2.8 2.8 2.2 2.6 2.8 2.5 2.4 2.3 1.9 1.7 2 2.1 1.7 1.8 1.8 1.8 1.3 1.3 1.3 1.2 1.4 2.2 2.9 3.1 3.5 3.6 4.4 4.1 5.1 5.8 5.9 5.4 5.5 4.8 3.2
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1079250.8360.20324
2-0.192576-1.49170.07051
30.0313870.24310.40437
4-0.022772-0.17640.43029
50.0594370.46040.323449
60.0006110.00470.49812
7-0.07265-0.56270.287853
8-0.05299-0.41050.341466
9-0.110194-0.85360.198371
100.1067520.82690.205786
110.1560931.20910.115686
12-0.36428-2.82170.003234
13-0.251864-1.95090.02787
140.046580.36080.359755
150.0531460.41170.341025
16-0.025099-0.19440.423253
17-0.136104-1.05430.147996
180.0185110.14340.443232
190.0600090.46480.321868
20-0.028632-0.22180.412617
210.0543560.4210.337615
220.0373710.28950.38661
23-0.148538-1.15060.127238
24-0.053942-0.41780.338781
250.1453311.12570.132382
26-0.009077-0.07030.472091
27-0.065726-0.50910.306272
280.0258260.20010.421059
29-0.019038-0.14750.441629
300.0186240.14430.442889
310.034260.26540.395816
320.087820.68030.249481
330.0010030.00780.496914
34-0.047963-0.37150.35578
35-0.030022-0.23250.408453
360.0585490.45350.325905
37-0.027464-0.21270.416127
380.0027110.0210.491657
390.0107670.08340.466904
40-0.00118-0.00910.496368
410.0940920.72880.234468
420.1119850.86740.194581
430.0723730.56060.28858
44-0.063148-0.48910.313261
45-0.099172-0.76820.222696
46-0.026854-0.2080.417963
470.0543110.42070.337741
48-0.021614-0.16740.433802


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1079250.8360.20324
2-0.206631-1.60060.057364
30.0832490.64480.260744
4-0.083295-0.64520.260628
50.1047420.81130.210193
6-0.052995-0.41050.341451
7-0.025944-0.2010.420704
8-0.065723-0.50910.306278
9-0.113534-0.87940.191339
100.1296541.00430.159635
110.0806470.62470.267273
12-0.372223-2.88320.002728
13-0.137063-1.06170.146316
14-0.042051-0.32570.372883
150.0318040.24640.403124
16-0.100848-0.78120.218888
17-0.125942-0.97550.166604
180.0568930.44070.330511
19-0.000594-0.00460.498173
20-0.073381-0.56840.28594
21-0.078879-0.6110.271756
220.045930.35580.361629
23-0.044487-0.34460.365803
24-0.172288-1.33450.093535
25-0.04006-0.31030.378703
26-0.121845-0.94380.174526
270.0087940.06810.47296
28-0.021785-0.16870.433282
29-0.223052-1.72780.044588
30-0.010171-0.07880.468732
310.0377470.29240.385499
320.0603050.46710.321053
33-0.153058-1.18560.120231
340.0007720.0060.497624
35-0.093058-0.72080.236907
36-0.0583-0.45160.326597
37-0.138983-1.07660.142993
38-0.048331-0.37440.354724
39-0.069183-0.53590.297007
40-0.00354-0.02740.489107
41-0.04752-0.36810.357052
420.0726610.56280.287823
430.0536670.41570.339555
44-0.005721-0.04430.482401
45-0.097759-0.75720.225937
46-0.111362-0.86260.195894
47-0.00392-0.03040.48794
48-0.046168-0.35760.360943
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229896075b32kxzeiohya4eo/1k9lc1229896052.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229896075b32kxzeiohya4eo/1k9lc1229896052.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229896075b32kxzeiohya4eo/2d8wx1229896052.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229896075b32kxzeiohya4eo/2d8wx1229896052.ps (open in new window)


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