Home » date » 2007 » Nov » 29 » attachments

workshop3

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Nov 2007 11:07:12 -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/29/t1196359054q3pxz5rw3qttf2o.htm/, Retrieved Thu, 29 Nov 2007 18:57:34 +0100
 
User-defined keywords:
bridome
 
Dataseries X:
» Textbox « » Textfile « » CSV «
91,0 85,3 89,5 76,1 76,1 91,5 85,4 80,0 94,0 72,6 80,8 94,1 94,9 91,9 99,2 84,7 93,7 106,7 93,5 104,8 103,5 83,1 89,6 105,7 110,7 110,4 109,0 106,0 100,9 114,3 101,2 109,2 111,6 91,7 93,7 105,7 109,5 105,3 102,8 100,6 97,6 110,3 107,2 107,2 108,1 97,1 92,2 112,2 111,6 115,7 111,3 104,2 103,2 112,7 106,4 102,6 110,6 95,2 89,0 112,5 116,8 107,2 113,6 101,8 102,6 122,7 110,3 110,5 121,6 100,3 100,7 123,4 127,1 124,1 131,2 111,6 114,2 130,1 125,9 119,0 133,8 107,5 113,5 134,4 126,8 135,6 139,9 129,8 131,0 153,1 134,1 144,1 155,9 123,3 128,1 144,3 153,0 149,9 150,9 141,0 138,9 157,4 142,7 151,5 160,8 138,6
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
0110.2470
1-0.322018-3.29970.999339
2-0.356291-3.65090.999795
30.4070664.17123.1e-05
4-0.364216-3.73210.999846
5-0.141583-1.45080.925091
60.60086.15640
7-0.193547-1.98330.975026
8-0.262058-2.68530.995788
90.3734783.8270.00011
10-0.426891-4.37430.999986
11-0.172031-1.76280.959578
120.7377327.55950
13-0.231107-2.36810.990146
14-0.274541-2.81320.997072
150.3335733.41810.000449
16-0.341195-3.49620.999654
17-0.107976-1.10640.864464
180.5220125.3490
19-0.180034-1.84480.966057
20-0.193864-1.98650.975209
210.2775222.84380.00268
22-0.370451-3.7960.999877
23-0.09641-0.98790.837266
240.5627485.76640
25-0.157662-1.61560.945404
26-0.212286-2.17530.984074
270.2403612.4630.007703
28-0.277757-2.84620.997339
29-0.058808-0.60260.725963
300.3797273.8918.8e-05
31-0.106265-1.08890.860652
32-0.155672-1.59520.943159
330.2163062.21650.014408
34-0.291372-2.98570.998239
35-0.102941-1.05480.853039
360.4537694.64975e-06
37-0.086772-0.88910.812022
38-0.211132-2.16350.983613
390.1869871.9160.02904
40-0.188379-1.93030.971867
41-0.078161-0.80090.787504
420.310513.18180.000963
43-0.071422-0.73190.767058
44-0.143816-1.47370.92822
450.1690811.73260.043054
46-0.204807-2.09860.980877
47-0.106113-1.08730.860311


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.322018-3.29970.999339
1-0.513204-5.25881
20.1032841.05830.146164
3-0.488518-5.00580.999999
4-0.396146-4.05930.999953
50.1241071.27170.103142
60.1397581.43210.077543
7-0.029562-0.30290.618726
80.1837831.88320.03122
9-0.286552-2.93630.997959
10-0.416162-4.26440.999978
110.205172.10240.018956
120.2526212.58860.005501
130.0552750.56640.286166
14-0.078376-0.80310.788137
150.0211750.2170.414325
160.0688230.70520.241117
17-0.032559-0.33360.630336
18-0.012029-0.12330.54893
19-0.078809-0.80760.789414
20-0.175275-1.7960.962318
21-0.112293-1.15070.873758
220.0096550.09890.460691
23-0.007286-0.07470.529685
240.0416730.4270.335117
250.0060890.06240.475183
26-0.023257-0.23830.593947
270.0060570.06210.475313
280.1267421.29870.098443
29-0.11469-1.17520.878719
30-0.085212-0.87320.807716
31-0.138584-1.42010.920725
320.0842410.86320.194993
330.0508650.52120.301657
34-0.036832-0.37740.646685
35-0.046641-0.47790.683154
360.0617170.63240.264247
37-0.085048-0.87150.80726
38-0.048508-0.49710.689907
39-0.049126-0.50340.692129
40-0.016077-0.16470.565267
41-0.114065-1.16880.877437
42-0.062425-0.63970.738109
43-0.056846-0.58250.71926
44-0.042342-0.43390.667366
45-0.038916-0.39880.654565
460.0325650.33370.36964
47-0.029418-0.30140.618164
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196359054q3pxz5rw3qttf2o/1atny1196359628.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196359054q3pxz5rw3qttf2o/1atny1196359628.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196359054q3pxz5rw3qttf2o/2ty4h1196359628.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196359054q3pxz5rw3qttf2o/2ty4h1196359628.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; 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 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