Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_rngnorm.wasp
Title produced by softwareRandom Number Generator - Normal Distribution
Date of computationWed, 14 Dec 2016 19:15:44 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2016/Dec/14/t1481739365vor9udc2qe6obzj.htm/, Retrieved Fri, 03 May 2024 20:46:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=299678, Retrieved Fri, 03 May 2024 20:46:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact69
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Random Number Generator - Normal Distribution] [] [2016-12-14 18:15:44] [219800a2f11ddd28e3280d87dbde8c8d] [Current]
Feedback Forum

Post a new message




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time3 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=299678&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]3 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=299678&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=299678&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R ServerBig Analytics Cloud Computing Center







IndexValue
1102.168513753338
2100.082179802824
3100.908910344258
4101.207531578659
5101.091778436593
699.9741833635919
799.8588146860565
8100.622606669554
9101.952955063899
10102.719650786251
11100.910100817835
1298.480515573287
13101.000800281438
14100.173182596702
1599.2108937609429
16100.738397408484
1798.5488641778565
18100.272041307859

\begin{tabular}{lllllllll}
\hline
Index & Value \tabularnewline
1 & 102.168513753338 \tabularnewline
2 & 100.082179802824 \tabularnewline
3 & 100.908910344258 \tabularnewline
4 & 101.207531578659 \tabularnewline
5 & 101.091778436593 \tabularnewline
6 & 99.9741833635919 \tabularnewline
7 & 99.8588146860565 \tabularnewline
8 & 100.622606669554 \tabularnewline
9 & 101.952955063899 \tabularnewline
10 & 102.719650786251 \tabularnewline
11 & 100.910100817835 \tabularnewline
12 & 98.480515573287 \tabularnewline
13 & 101.000800281438 \tabularnewline
14 & 100.173182596702 \tabularnewline
15 & 99.2108937609429 \tabularnewline
16 & 100.738397408484 \tabularnewline
17 & 98.5488641778565 \tabularnewline
18 & 100.272041307859 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=299678&T=1

[TABLE]
[ROW][C]Index[/C][C]Value[/C][/ROW]
[ROW][C]1[/C][C]102.168513753338[/C][/ROW]
[ROW][C]2[/C][C]100.082179802824[/C][/ROW]
[ROW][C]3[/C][C]100.908910344258[/C][/ROW]
[ROW][C]4[/C][C]101.207531578659[/C][/ROW]
[ROW][C]5[/C][C]101.091778436593[/C][/ROW]
[ROW][C]6[/C][C]99.9741833635919[/C][/ROW]
[ROW][C]7[/C][C]99.8588146860565[/C][/ROW]
[ROW][C]8[/C][C]100.622606669554[/C][/ROW]
[ROW][C]9[/C][C]101.952955063899[/C][/ROW]
[ROW][C]10[/C][C]102.719650786251[/C][/ROW]
[ROW][C]11[/C][C]100.910100817835[/C][/ROW]
[ROW][C]12[/C][C]98.480515573287[/C][/ROW]
[ROW][C]13[/C][C]101.000800281438[/C][/ROW]
[ROW][C]14[/C][C]100.173182596702[/C][/ROW]
[ROW][C]15[/C][C]99.2108937609429[/C][/ROW]
[ROW][C]16[/C][C]100.738397408484[/C][/ROW]
[ROW][C]17[/C][C]98.5488641778565[/C][/ROW]
[ROW][C]18[/C][C]100.272041307859[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=299678&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=299678&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

IndexValue
1102.168513753338
2100.082179802824
3100.908910344258
4101.207531578659
5101.091778436593
699.9741833635919
799.8588146860565
8100.622606669554
9101.952955063899
10102.719650786251
11100.910100817835
1298.480515573287
13101.000800281438
14100.173182596702
1599.2108937609429
16100.738397408484
1798.5488641778565
18100.272041307859







Frequency Table (Histogram)
BinsMidpointAbs. FrequencyRel. FrequencyCumul. Rel. Freq.Density
[98,99[98.520.1111110.1111110.111111
[99,100[99.530.1666670.2777780.166667
[100,101[100.570.3888890.6666670.388889
[101,102[101.540.2222220.8888890.222222
[102,103]102.520.11111110.111111

\begin{tabular}{lllllllll}
\hline
Frequency Table (Histogram) \tabularnewline
Bins & Midpoint & Abs. Frequency & Rel. Frequency & Cumul. Rel. Freq. & Density \tabularnewline
[98,99[ & 98.5 & 2 & 0.111111 & 0.111111 & 0.111111 \tabularnewline
[99,100[ & 99.5 & 3 & 0.166667 & 0.277778 & 0.166667 \tabularnewline
[100,101[ & 100.5 & 7 & 0.388889 & 0.666667 & 0.388889 \tabularnewline
[101,102[ & 101.5 & 4 & 0.222222 & 0.888889 & 0.222222 \tabularnewline
[102,103] & 102.5 & 2 & 0.111111 & 1 & 0.111111 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=299678&T=2

[TABLE]
[ROW][C]Frequency Table (Histogram)[/C][/ROW]
[ROW][C]Bins[/C][C]Midpoint[/C][C]Abs. Frequency[/C][C]Rel. Frequency[/C][C]Cumul. Rel. Freq.[/C][C]Density[/C][/ROW]
[ROW][C][98,99[[/C][C]98.5[/C][C]2[/C][C]0.111111[/C][C]0.111111[/C][C]0.111111[/C][/ROW]
[ROW][C][99,100[[/C][C]99.5[/C][C]3[/C][C]0.166667[/C][C]0.277778[/C][C]0.166667[/C][/ROW]
[ROW][C][100,101[[/C][C]100.5[/C][C]7[/C][C]0.388889[/C][C]0.666667[/C][C]0.388889[/C][/ROW]
[ROW][C][101,102[[/C][C]101.5[/C][C]4[/C][C]0.222222[/C][C]0.888889[/C][C]0.222222[/C][/ROW]
[ROW][C][102,103][/C][C]102.5[/C][C]2[/C][C]0.111111[/C][C]1[/C][C]0.111111[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=299678&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=299678&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Frequency Table (Histogram)
BinsMidpointAbs. FrequencyRel. FrequencyCumul. Rel. Freq.Density
[98,99[98.520.1111110.1111110.111111
[99,100[99.530.1666670.2777780.166667
[100,101[100.570.3888890.6666670.388889
[101,102[101.540.2222220.8888890.222222
[102,103]102.520.11111110.111111



Parameters (Session):
par1 = 18 ; par2 = 100.189 ; par3 = 1.34 ; par4 = 8 ; par5 = Y ; par6 = 0 ; par7 = 97 ; par8 = 104 ;
Parameters (R input):
par1 = 18 ; par2 = 100.189 ; par3 = 1.34 ; par4 = 8 ; par5 = Y ; par6 = 0 ; par7 = 97 ; par8 = 104 ;
R code (references can be found in the software module):
par8 <- ''
par7 <- ''
par6 <- '0'
par5 <- 'Y'
par4 <- '8'
par3 <- '1.34'
par2 <- '100.189'
par1 <- '18'
library(MASS)
library(msm)
par1 <- sub(',','.',par1)
par2 <- sub(',','.',par2)
par3 <- sub(',','.',par3)
par4 <- sub(',','.',par4)
par1 <- as.numeric(par1)
if (par1 > 10000) par1=10000 #impose restriction on number of random values
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
if (par6 == '0') par6 = 'Sturges' else {
par6 <- as.numeric(par6)
if (par6 > 50) par6 = 50 #impose restriction on the number of bins
}
if (par7 == '') par7 <- -Inf else par7 <- as.numeric(par7)
if (par8 == '') par8 <- Inf else par8 <- as.numeric(par8)
x <- rtnorm(par1,par2,par3,par7,par8)
x <- as.ts(x) #otherwise the fitdistr function does not work properly
if ((par7 == -Inf) & (par8 == Inf)) (r <- fitdistr(x,'normal'))
bitmap(file='test1.png')
myhist<-hist(x,col=par4,breaks=par6,main=main,ylab=ylab,xlab=xlab,freq=F)
if ((par7 == -Inf) & (par8 == Inf)) {
curve(1/(r$estimate[2]*sqrt(2*pi))*exp(-1/2*((x-r$estimate[1])/r$estimate[2])^2),min(x),max(x),add=T)
}
dev.off()
load(file='createtable')
if (par5 == 'Y')
{
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Index',1,TRUE)
a<-table.element(a,'Value',1,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,x[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
}
if ((par7 == -Inf) & (par8 == Inf)) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Parameter',1,TRUE)
a<-table.element(a,'Value',1,TRUE)
a<-table.element(a,'Standard Deviation',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'# simulated values',header=TRUE)
a<-table.element(a,par1)
a<-table.element(a,'-')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'true mean',header=TRUE)
a<-table.element(a,par2)
a<-table.element(a,'-')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'true standard deviation',header=TRUE)
a<-table.element(a,par3)
a<-table.element(a,'-')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'mean',header=TRUE)
a<-table.element(a,r$estimate[1])
a<-table.element(a,r$sd[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'standard deviation',header=TRUE)
a<-table.element(a,r$estimate[2])
a<-table.element(a,r$sd[2])
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,'Frequency Table (Histogram)',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Bins',header=TRUE)
a<-table.element(a,'Midpoint',header=TRUE)
a<-table.element(a,'Abs. Frequency',header=TRUE)
a<-table.element(a,'Rel. Frequency',header=TRUE)
a<-table.element(a,'Cumul. Rel. Freq.',header=TRUE)
a<-table.element(a,'Density',header=TRUE)
a<-table.row.end(a)
crf <- 0
mynumrows <- (length(myhist$breaks)-1)
for (i in 1:mynumrows) {
a<-table.row.start(a)
dum <- paste('[',myhist$breaks[i],sep='')
dum <- paste(dum,myhist$breaks[i+1],sep=',')
if (i==mynumrows)
dum <- paste(dum,']',sep='')
else
dum <- paste(dum,'[',sep='')
a<-table.element(a,dum,header=TRUE)
a<-table.element(a,myhist$mids[i])
a<-table.element(a,myhist$counts[i])
rf <- myhist$counts[i]/par1
crf <- crf + rf
a<-table.element(a,round(rf,6))
a<-table.element(a,round(crf,6))
a<-table.element(a,round(myhist$density[i],6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable3.tab')