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 computationThu, 29 Nov 2018 12:02:55 +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/2018/Nov/29/t1543489915012nsulmnogb0jl.htm/, Retrieved Mon, 06 May 2024 03:46:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=315724, Retrieved Mon, 06 May 2024 03:46:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact102
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Random Number Generator - Normal Distribution] [] [2018-11-29 11:02:55] [9e2b27cf675a1d7b8e7da04c0e26bb6a] [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=315724&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=315724&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=315724&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







ParameterValueStandard Deviation
# simulated values112-
true mean2195.66071428571-
true standard deviation44.0252448769457-
mean2191.178588950723.79424068018464
standard deviation40.15446901637242.68293331441242

\begin{tabular}{lllllllll}
\hline
Parameter & Value & Standard Deviation \tabularnewline
# simulated values & 112 & - \tabularnewline
true mean & 2195.66071428571 & - \tabularnewline
true standard deviation & 44.0252448769457 & - \tabularnewline
mean & 2191.17858895072 & 3.79424068018464 \tabularnewline
standard deviation & 40.1544690163724 & 2.68293331441242 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=315724&T=1

[TABLE]
[ROW][C]Parameter[/C][C]Value[/C][C]Standard Deviation[/C][/ROW]
[ROW][C]# simulated values[/C][C]112[/C][C]-[/C][/ROW]
[ROW][C]true mean[/C][C]2195.66071428571[/C][C]-[/C][/ROW]
[ROW][C]true standard deviation[/C][C]44.0252448769457[/C][C]-[/C][/ROW]
[ROW][C]mean[/C][C]2191.17858895072[/C][C]3.79424068018464[/C][/ROW]
[ROW][C]standard deviation[/C][C]40.1544690163724[/C][C]2.68293331441242[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=315724&T=1

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

As an alternative you can also use a QR Code:  

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

ParameterValueStandard Deviation
# simulated values112-
true mean2195.66071428571-
true standard deviation44.0252448769457-
mean2191.178588950723.79424068018464
standard deviation40.15446901637242.68293331441242







Frequency Table (Histogram)
BinsMidpointAbs. FrequencyRel. FrequencyCumul. Rel. Freq.Density
[2080,2100[209030.0267860.0267860.001339
[2100,2120[211040.0357140.06250.001786
[2120,2140[213080.0714290.1339290.003571
[2140,2160[215050.0446430.1785710.002232
[2160,2180[2170180.1607140.3392860.008036
[2180,2200[2190280.250.5892860.0125
[2200,2220[2210180.1607140.750.008036
[2220,2240[2230150.1339290.8839290.006696
[2240,2260[2250110.0982140.9821430.004911
[2260,2280]227020.01785710.000893

\begin{tabular}{lllllllll}
\hline
Frequency Table (Histogram) \tabularnewline
Bins & Midpoint & Abs. Frequency & Rel. Frequency & Cumul. Rel. Freq. & Density \tabularnewline
[2080,2100[ & 2090 & 3 & 0.026786 & 0.026786 & 0.001339 \tabularnewline
[2100,2120[ & 2110 & 4 & 0.035714 & 0.0625 & 0.001786 \tabularnewline
[2120,2140[ & 2130 & 8 & 0.071429 & 0.133929 & 0.003571 \tabularnewline
[2140,2160[ & 2150 & 5 & 0.044643 & 0.178571 & 0.002232 \tabularnewline
[2160,2180[ & 2170 & 18 & 0.160714 & 0.339286 & 0.008036 \tabularnewline
[2180,2200[ & 2190 & 28 & 0.25 & 0.589286 & 0.0125 \tabularnewline
[2200,2220[ & 2210 & 18 & 0.160714 & 0.75 & 0.008036 \tabularnewline
[2220,2240[ & 2230 & 15 & 0.133929 & 0.883929 & 0.006696 \tabularnewline
[2240,2260[ & 2250 & 11 & 0.098214 & 0.982143 & 0.004911 \tabularnewline
[2260,2280] & 2270 & 2 & 0.017857 & 1 & 0.000893 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=315724&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][2080,2100[[/C][C]2090[/C][C]3[/C][C]0.026786[/C][C]0.026786[/C][C]0.001339[/C][/ROW]
[ROW][C][2100,2120[[/C][C]2110[/C][C]4[/C][C]0.035714[/C][C]0.0625[/C][C]0.001786[/C][/ROW]
[ROW][C][2120,2140[[/C][C]2130[/C][C]8[/C][C]0.071429[/C][C]0.133929[/C][C]0.003571[/C][/ROW]
[ROW][C][2140,2160[[/C][C]2150[/C][C]5[/C][C]0.044643[/C][C]0.178571[/C][C]0.002232[/C][/ROW]
[ROW][C][2160,2180[[/C][C]2170[/C][C]18[/C][C]0.160714[/C][C]0.339286[/C][C]0.008036[/C][/ROW]
[ROW][C][2180,2200[[/C][C]2190[/C][C]28[/C][C]0.25[/C][C]0.589286[/C][C]0.0125[/C][/ROW]
[ROW][C][2200,2220[[/C][C]2210[/C][C]18[/C][C]0.160714[/C][C]0.75[/C][C]0.008036[/C][/ROW]
[ROW][C][2220,2240[[/C][C]2230[/C][C]15[/C][C]0.133929[/C][C]0.883929[/C][C]0.006696[/C][/ROW]
[ROW][C][2240,2260[[/C][C]2250[/C][C]11[/C][C]0.098214[/C][C]0.982143[/C][C]0.004911[/C][/ROW]
[ROW][C][2260,2280][/C][C]2270[/C][C]2[/C][C]0.017857[/C][C]1[/C][C]0.000893[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=315724&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=315724&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
[2080,2100[209030.0267860.0267860.001339
[2100,2120[211040.0357140.06250.001786
[2120,2140[213080.0714290.1339290.003571
[2140,2160[215050.0446430.1785710.002232
[2160,2180[2170180.1607140.3392860.008036
[2180,2200[2190280.250.5892860.0125
[2200,2220[2210180.1607140.750.008036
[2220,2240[2230150.1339290.8839290.006696
[2240,2260[2250110.0982140.9821430.004911
[2260,2280]227020.01785710.000893



Parameters (Session):
par1 = 112 ; par2 = 2195.66071428571 ; par3 = 44.0252448769457 ; par4 = 2 ; par5 = N ; par6 = 0 ;
Parameters (R input):
par1 = 112 ; par2 = 2195.66071428571 ; par3 = 44.0252448769457 ; par4 = 2 ; par5 = N ; par6 = 0 ; par7 = ; par8 = ;
R code (references can be found in the software module):
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')