Home » date » 2009 » May » 08 »

Opgave 6 bis, oefening 2, stap 1, Sara Vandenberghe

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 08 May 2009 05:40:01 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/08/t124178287172ie08x3ca8g5su.htm/, Retrieved Fri, 08 May 2009 13:41:13 +0200
 
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/2009/May/08/t124178287172ie08x3ca8g5su.htm/},
    year = {2009},
}
@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 = {2009},
    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,54 1,55 1,53 1,55 1,55 1,53 1,54 1,54 1,54 1,53 1,53 1,53 1,54 1,53 1,53 1,54 1,55 1,53 1,53 1,53 1,53 1,52 1,54 1,53 1,52 1,54 1,53 1,54 1,54 1,53 1,54 1,54 1,52 1,52 1,57 1,6 1,59 1,6 1,6 1,62 1,61 1,61 1,62 1,61 1,62 1,61 1,62 1,61 1,61 1,58 1,57 1,57 1,66 1,66 1,67 1,68 1,66 1,66 1,64 1,61 1,58 1,57 1,54 1,61 1,65 1,6 1,57 1,56 1,55 1,54 1,51 1,5 1,5 1,49 1,47 1,47 1,49 1,49 1,49 1,51 1,49 1,48 1,46 1,46 1,45 1,45 1,44 1,47 1,47 1,45 1,43 1,44 1,38 1,4 1,37 1,41
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9256659.06960
20.841968.24950
30.770487.54910
40.7026576.88460
50.6535746.40370
60.6119435.99580
70.5796825.67970
80.5669955.55540
90.5452875.34270
100.5034474.93282e-06
110.4657884.56387e-06
120.4139884.05625.1e-05
130.3417823.34880.00058
140.2783162.72690.0038
150.2366182.31840.011276
160.1952351.91290.02937
170.1605411.5730.059507
180.1186361.16240.12398
190.0745360.73030.233494
200.0245850.24090.405081
21-0.028606-0.28030.389931
22-0.08037-0.78750.216474
23-0.126385-1.23830.109309
24-0.16728-1.6390.052243
25-0.228933-2.24310.013596
26-0.282434-2.76730.003391
27-0.317824-3.1140.001216
28-0.358262-3.51020.000342
29-0.383793-3.76040.000146
30-0.401524-3.93417.9e-05
31-0.415699-4.0734.8e-05
32-0.399955-3.91878.3e-05
33-0.402707-3.94577.6e-05
34-0.433013-4.24262.5e-05
35-0.452308-4.43171.2e-05
36-0.462197-4.52869e-06
37-0.465676-4.56277e-06
38-0.44951-4.40431.4e-05
39-0.424009-4.15443.5e-05
40-0.397949-3.89918.9e-05
41-0.347476-3.40460.000484
42-0.313615-3.07280.00138
43-0.282436-2.76730.003391
44-0.258606-2.53380.006451
45-0.261145-2.55870.006035
46-0.269571-2.64120.004822
47-0.263787-2.58460.005628
48-0.242328-2.37430.009785


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9256659.06960
2-0.104064-1.01960.155236
30.0447080.4380.331169
4-0.025833-0.25310.400362
50.0969260.94970.17233
60.0065070.06380.474648
70.0551370.54020.295145
80.117681.1530.125881
9-0.066078-0.64740.259451
10-0.117916-1.15530.12541
110.0327770.32110.374399
12-0.117423-1.15050.126397
13-0.16835-1.64950.051158
140.0049670.04870.480642
150.0998340.97820.165224
16-0.102251-1.00190.159467
17-0.022576-0.22120.412704
18-0.068543-0.67160.251733
19-0.045734-0.44810.327545
20-0.134174-1.31460.095884
210.0077770.07620.46971
22-0.004233-0.04150.483502
23-0.057905-0.56740.2859
24-0.025079-0.24570.40321
25-0.193808-1.89890.030289
26-0.035406-0.34690.364712
270.0166140.16280.435514
28-0.085962-0.84230.20087
290.0809580.79320.214801
300.0075380.07390.470638
310.0168590.16520.434573
320.1624251.59140.0574
33-0.142015-1.39150.083652
34-0.170743-1.67290.048799
350.0480890.47120.319292
360.0959630.94020.174728
370.0543710.53270.297727
380.0777610.76190.223993
390.0613480.60110.274601
40-0.045393-0.44480.328748
410.1215171.19060.118369
42-0.037453-0.3670.357228
430.0753760.73850.230996
44-0.081584-0.79940.21303
45-0.073295-0.71810.237207
46-0.023467-0.22990.409318
47-0.031629-0.30990.378655
480.0171540.16810.433438
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/08/t124178287172ie08x3ca8g5su/1ml1q1241782798.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/08/t124178287172ie08x3ca8g5su/1ml1q1241782798.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/08/t124178287172ie08x3ca8g5su/204vs1241782798.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/08/t124178287172ie08x3ca8g5su/204vs1241782798.ps (open in new window)


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