Home » date » 2007 » Nov » 30 » attachments

partial autocorrelation

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 30 Nov 2007 06:12:13 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/30/t1196427682r5oh4up5pxryxks.htm/, Retrieved Fri, 30 Nov 2007 14:01:26 +0100
 
User-defined keywords:
q1
 
Dataseries X:
» Textbox « » Textfile « » CSV «
12710.3 12120.8 12469.5 12054.6 12112.9 9617.2 12645.8 13581.3 12162.3 10969.7 11880.0 11887.6 12926.9 12300.0 12092.8 12380.8 12196.9 9455.0 13168.0 13427.9 11980.5 11884.8 11691.7 12233.8 14341.4 13130.7 12421.1 14285.8 12864.6 11160.2 14316.2 14388.7 14013.9 13419.0 12769.6 13315.5 15332.9 14243.0 13824.4 14962.9 13202.9 12199.0 15508.9 14199.8 15169.6 14058.0 13786.2 14147.9 16541.7 13587.5 15582.4 15802.8 14130.5 12923.2 15612.2 16033.7 16036.6 14037.8 15330.6 15038.3 17401.8
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
0170
10.1008010.70560.241887
20.2730761.91150.030897
30.4724123.30690.000886
40.1890041.3230.095983
50.2594851.81640.037715
60.2469821.72890.045064
7-0.137754-0.96430.830179
80.1463111.02420.15539
90.0425620.29790.383507
10-0.211872-1.48310.927775
11-0.129899-0.90930.816178
12-0.169947-1.18960.880038
13-0.238429-1.6690.949252
14-0.070071-0.49050.687013
15-0.28042-1.96290.972328
16-0.33148-2.32040.987736
17-0.059531-0.41670.660647
18-0.129527-0.90670.815496
19-0.217639-1.52350.932966
20-0.136809-0.95770.828533
210.0150150.10510.458361
22-0.199052-1.39340.915101
230.143821.00670.159502
24-0.088284-0.6180.730277
25-0.124036-0.86830.805255
260.163191.14230.129434
27-0.007752-0.05430.521528
28-0.063746-0.44620.671298
290.1101470.7710.222196
30-0.054983-0.38490.649005
310.0685480.47980.316739
320.0238180.16670.434136
33-0.091612-0.64130.737837
340.055780.39050.348945
350.0609030.42630.335871


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1008010.70560.241887
10.2656141.85930.034497
20.4624143.23690.001085
30.1413830.98970.163597
40.0632050.44240.330062
5-0.022298-0.15610.561697
6-0.463275-3.24290.998934
7-0.232067-1.62450.944654
8-0.06217-0.43520.667332
9-0.069383-0.48570.68532
10-0.127365-0.89160.811505
11-0.065976-0.46180.676877
120.0184880.12940.448779
130.2156951.50990.06875
140.1580461.10630.136995
15-0.116734-0.81710.791098
16-0.083817-0.58670.719958
170.0492450.34470.365892
18-0.008152-0.05710.522636
19-0.184589-1.29210.898812
200.1471391.030.154041
21-0.252706-1.76890.958436
220.0599910.41990.338184
230.0156310.10940.45666
24-0.102573-0.7180.76192
25-0.050535-0.35370.637477
26-0.075472-0.52830.700164
270.0086040.06020.476108
28-0.00509-0.03560.514138
290.1515541.06090.146974
300.0723420.50640.307425
31-0.172195-1.20540.883074
32-0.067506-0.47250.68068
330.0805630.56390.287684
340.0110910.07760.469215
35-0.051576-0.3610.640186
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196427682r5oh4up5pxryxks/1s0ub1196428331.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196427682r5oh4up5pxryxks/1s0ub1196428331.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196427682r5oh4up5pxryxks/2cz9t1196428331.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196427682r5oh4up5pxryxks/2cz9t1196428331.ps (open in new window)


 
Parameters:
par1 = 36 ; par2 = 0.0 ; par3 = 0 ; par4 = 1 ; 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 1:par1) {
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(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-1,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(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:

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