Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
7.7 7.5 8.3 7.8 7.9 6.6 7 8.2 8.2 9.1 9 7.1 8.9 8.5 9.8 8.8 9.2 7.4 8.3 9.7 9.7 10.8 9.8 7.9 9.8 9 10.5 9.5 9.7 8.1 10.1 11.1 11.2 12.6 12.2 9.9 11.8 11.1 12.6 11.9 11.9 10 10.8 12.9 12.5 13.8 13.1 10.5 12.9 12.9 14.4 12.7 13.3 11 11.9 14.1 14.4 14.9 15.7 12 14.3 14.2 17.4 15.1 15.3 12.6 14 16.6 16.7 17.6 18.3 13.6 15.8 16.1 18.6 17.3 17 13.9 15.2 17.8 18 19.4 21.8 16.2 19.2 19.5 22 20 19.2 16.9 20 20.4 21.8 25 25.8 19.4 22.6 24.1 26.9 24.9 23.3 20.3 22.3 23.7 24.3 31.7 32.2 25.4 28.6 28.7 30.9 31.4 29.1 26.3 28.9 28.9 31 33.4 35.9 25.8 31.2 31.7 36.2 32 32.1 28.1 31.1 31.9 32 36.6 38.1 28.1 32.9 30.7 35.4 33.7 31.6 27.9 32.2 32.3 35.3 37.2 39.6 28.4 33.9 33.7 38.3 34.6 32.7 29.5 32 33.2 36.7 38.6 38.1 29.8 35.6 33.2 38.9 34.8 37.2 29.7 32.2 32.1 36.3 38.4 40.8 31.3 36.2 35.1 44.1 39.3 34.1 32.4 36.3 36.8 40.5 46 43.9 37.2 40.7 42 49.2 42.3 40.8 37.6
Data Y:
277 260.6 291.6 275.4 275.3 231.7 238.8 274.2 277.8 299.1 286.6 232.3 294.1 267.5 309.7 280.7 287.3 235.7 256.4 289 290.8 321.9 291.8 241.4 295.5 258.2 306.1 281.5 283.1 237.4 274.8 299.3 300.4 340.9 318.8 265.7 322.7 281.6 323.5 312.6 310.8 262.8 273.8 320 310.3 342.2 320.1 265.6 327 300.7 346.4 317.3 326.2 270.7 278.2 324.6 321.8 343.5 354 278.2 330.2 307.3 375.9 335.3 339.3 280.3 293.7 341.2 345.1 368.7 369.4 288.4 341 319.1 374.2 344.5 337.3 281 282.2 321 325.4 366.3 380.3 300.7 359.3 327.6 383.6 352.4 329.4 294.5 333.5 334.3 358 396.1 387 307.2 363.9 344.7 397.6 376.8 337.1 299.3 323.1 329.1 347 462 436.5 360.4 415.5 382.1 432.2 424.3 386.7 354.5 375.8 368 402.4 426.5 433.3 338.5 416.8 381.1 445.7 412.4 394 348.2 380.1 373.7 393.6 434.2 430.7 344.5 411.9 370.5 437.3 411.3 385.5 341.3 384.2 373.2 415.8 448.6 454.3 350.3 419.1 398 456.1 430.1 399.8 362.7 384.9 385.3 432.3 468.9 442.7 370.2 439.4 393.9 468.7 438.8 430.1 366.3 391 380.9 431.4 465.4 471.5 387.5 446.4 421.5 504.8 492.1 421.3 396.7 428 421.9 465.6 525.8 499.9 435.3 479.5 473 554.4 489.6 462.2 420.3
Chart options
Title:
Label y-axis:
Label x-axis:
R Code
bitmap(file='test1.png') histx <- hist(x, plot=FALSE) histy <- hist(y, plot=FALSE) maxcounts <- max(c(histx$counts, histx$counts)) xrange <- c(min(x),max(x)) yrange <- c(min(y),max(y)) nf <- layout(matrix(c(2,0,1,3),2,2,byrow=TRUE), c(3,1), c(1,3), TRUE) par(mar=c(4,4,1,1)) plot(x, y, xlim=xrange, ylim=yrange, xlab=xlab, ylab=ylab) par(mar=c(0,4,1,1)) barplot(histx$counts, axes=FALSE, ylim=c(0, maxcounts), space=0) par(mar=c(4,0,1,1)) barplot(histy$counts, axes=FALSE, xlim=c(0, maxcounts), space=0, horiz=TRUE) dev.off() lx = length(x) makebiased = (lx-1)/lx varx = var(x)*makebiased vary = var(y)*makebiased corxy <- cor.test(x,y,method='pearson') cxy <- as.matrix(corxy$estimate)[1,1] load(file='createtable') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Pearson Product Moment Correlation - Ungrouped Data',3,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Statistic',1,TRUE) a<-table.element(a,'Variable X',1,TRUE) a<-table.element(a,'Variable Y',1,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean.htm','Mean',''),header=TRUE) a<-table.element(a,mean(x)) a<-table.element(a,mean(y)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/biased.htm','Biased Variance',''),header=TRUE) a<-table.element(a,varx) a<-table.element(a,vary) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/biased1.htm','Biased Standard Deviation',''),header=TRUE) a<-table.element(a,sqrt(varx)) a<-table.element(a,sqrt(vary)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/covariance.htm','Covariance',''),header=TRUE) a<-table.element(a,cov(x,y),2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/pearson_correlation.htm','Correlation',''),header=TRUE) a<-table.element(a,cxy,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/coeff_of_determination.htm','Determination',''),header=TRUE) a<-table.element(a,cxy*cxy,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/ttest_statistic.htm','T-Test',''),header=TRUE) a<-table.element(a,as.matrix(corxy$statistic)[1,1],2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'p-value (2 sided)',header=TRUE) a<-table.element(a,(p2 <- as.matrix(corxy$p.value)[1,1]),2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'p-value (1 sided)',header=TRUE) a<-table.element(a,p2/2,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Degrees of Freedom',header=TRUE) a<-table.element(a,lx-2,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Number of Observations',header=TRUE) a<-table.element(a,lx,2) a<-table.row.end(a) a<-table.end(a) table.save(a,file='mytable.tab')
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation