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:32:11 -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/t1228829634m26h663ls7ns6u2.htm/, Retrieved Tue, 09 Dec 2008 13:33:54 +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/t1228829634m26h663ls7ns6u2.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 «
108.9 110.5 111.0 110.7 110.0 111.4 107.7 110.4 110.5 106.4 107.5 108.8 107.1 107.9 107.2 106.3 106.7 105.4 109.4 106.7 105.2 107.0 105.4 106.1 105.8 104.2 102.7 102.7 104.9 102.3 104.0 101.2 102.2 101.4 101.1 97.2 99.7 99.4 98.0 103.1 99.4 100.8 96.4 99.7 100.9 101.3 102.6 105.6 107.2 104.0 108.7 104.9 105.3 105.0 106.1 103.7 102.1 97.2 99.5 102.9
 
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'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8028286.21870
20.7506855.81480
30.6516745.04782e-06
40.5728114.4372e-05
50.5081253.93590.000109
60.44653.45860.000503
70.3917363.03440.00178
80.3006412.32880.011629
90.2737472.12040.019056
100.2180561.68910.0482
110.2402381.86090.033832
120.148911.15350.12665
130.1570751.21670.114241
140.1347011.04340.150476
150.1243410.96310.16967
160.0987580.7650.223642
170.0334610.25920.398189
180.0001330.0010.499592
19-0.053075-0.41110.341225
20-0.035081-0.27170.39338
21-0.076168-0.590.278705
22-0.098932-0.76630.223245
23-0.135887-1.05260.148378
24-0.211334-1.6370.053434
25-0.212975-1.64970.052116
26-0.217445-1.68430.048658
27-0.256135-1.9840.025917
28-0.268917-2.0830.020759
29-0.273124-2.11560.019269
30-0.300746-2.32960.011606
31-0.300525-2.32790.011655
32-0.29248-2.26550.013551
33-0.338265-2.62020.005558
34-0.334706-2.59260.005973
35-0.334489-2.59090.006
36-0.28095-2.17620.016743
37-0.272981-2.11450.019318
38-0.260457-2.01750.024062
39-0.235191-1.82180.036737
40-0.204114-1.58110.059561
41-0.17693-1.37050.08782
42-0.127009-0.98380.164581
43-0.073525-0.56950.285564
44-0.069409-0.53760.296406
45-0.026662-0.20650.41854
46-0.013566-0.10510.458331
47-0.001211-0.00940.496275
48-0.010962-0.08490.466306
49-0.041341-0.32020.374954
50-0.065024-0.50370.308167
51-0.078408-0.60730.272956
52-0.092901-0.71960.23728
53-0.104633-0.81050.210432
54-0.114616-0.88780.189094
55-0.12265-0.950.172952
56-0.112338-0.87020.193838
57-0.083881-0.64970.259171
58-0.036892-0.28580.388021
59-0.008487-0.06570.473902
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8028286.21870
20.2986292.31320.012079
3-0.033262-0.25760.39878
4-0.037534-0.29070.386129
50.0154580.11970.452546
60.0010580.00820.496745
7-0.009757-0.07560.470004
8-0.136413-1.05660.147454
90.0690520.53490.297357
10-0.001267-0.00980.4961
110.1675311.29770.099681
12-0.225496-1.74670.042905
130.0786810.60950.272261
140.0557640.43190.333663
150.0272760.21130.416693
16-0.104768-0.81150.210134
17-0.17341-1.34320.092129
18-0.025148-0.19480.423107
190.0385160.29830.383235
200.0932060.7220.236558
21-0.080982-0.62730.266427
22-0.136857-1.06010.146677
230.0618250.47890.316877
24-0.211033-1.63470.053679
250.0760820.58930.278927
260.0348060.26960.394195
27-0.151463-1.17320.12267
280.0512420.39690.346417
29-0.010398-0.08050.468035
30-0.05517-0.42730.335329
31-0.062877-0.4870.314
320.0708580.54890.292567
33-0.163996-1.27030.10444
34-0.021061-0.16310.43548
350.1228830.95180.172497
360.0335730.26010.397855
37-0.041078-0.31820.375722
380.0253390.19630.42253
390.0074650.05780.477039
400.1060570.82150.207302
41-0.065987-0.51110.305566
420.055130.4270.33544
430.0020540.01590.493679
440.1004950.77840.219687
45-0.008336-0.06460.474364
46-0.093177-0.72170.236627
47-0.019543-0.15140.440094
48-0.05522-0.42770.335189
49-0.123495-0.95660.171307
50-0.024755-0.19180.424291
51-0.095838-0.74240.230383
52-0.030979-0.240.405589
530.0470860.36470.3583
54-0.044889-0.34770.364637
55-0.045027-0.34880.364239
560.0506880.39260.347994
570.0288990.22390.411817
580.0161910.12540.450306
590.0556770.43130.333909
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228829634m26h663ls7ns6u2/158641228829526.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228829634m26h663ls7ns6u2/158641228829526.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228829634m26h663ls7ns6u2/2cktv1228829526.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228829634m26h663ls7ns6u2/2cktv1228829526.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