Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_hypothesismean4.wasp
Title produced by softwareTesting Mean with known Variance - Sample Size
Date of computationTue, 07 Oct 2014 09:43:33 +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/2014/Oct/07/t141267142554r4chozmntr83j.htm/, Retrieved Fri, 10 May 2024 05:54:09 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=239101, Retrieved Fri, 10 May 2024 05:54:09 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact306
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Testing Mean with known Variance - Sample Size] [] [2010-10-25 22:03:32] [b98453cac15ba1066b407e146608df68]
- RMP     [Testing Mean with known Variance - Sample Size] [] [2014-10-07 08:43:33] [63a9f0ea7bb98050796b649e85481845] [Current]
-           [Testing Mean with known Variance - Sample Size] [] [2014-10-22 10:54:00] [784816b0c716a476fc48ddde921cf7ea]
-           [Testing Mean with known Variance - Sample Size] [] [2014-10-22 10:58:16] [784816b0c716a476fc48ddde921cf7ea]
-   P       [Testing Mean with known Variance - Sample Size] [q9] [2014-10-22 11:29:52] [673773038936aef3a5778d7e6bda5c1e]
-   P       [Testing Mean with known Variance - Sample Size] [q9] [2014-10-22 11:37:17] [673773038936aef3a5778d7e6bda5c1e]
- RM D        [Paired and Unpaired Two Samples Tests about the Mean] [2 sample ttest] [2014-12-12 14:41:22] [673773038936aef3a5778d7e6bda5c1e]
- RM D        [Paired and Unpaired Two Samples Tests about the Mean] [two sample t test] [2014-12-12 15:09:04] [673773038936aef3a5778d7e6bda5c1e]
-           [Testing Mean with known Variance - Sample Size] [WS4 - 9] [2014-10-22 12:14:04] [40df8d8b5657a9599acc6ccced535535]
-   P       [Testing Mean with known Variance - Sample Size] [WS 4 Q9] [2014-10-22 13:02:05] [0157b5c42b4f7eb2350035031c315d52]
-             [Testing Mean with known Variance - Sample Size] [WS 4 Q10] [2014-10-22 13:03:50] [0157b5c42b4f7eb2350035031c315d52]
-           [Testing Mean with known Variance - Sample Size] [] [2014-10-22 13:05:07] [bca3c6529212edfac3e771806c79a908]
- R P       [Testing Mean with known Variance - Sample Size] [WS4 Task 9] [2014-10-22 13:05:28] [074b0dbc8d3b700fa15927150828e345]
-   P       [Testing Mean with known Variance - Sample Size] [aantal] [2014-10-22 13:20:00] [2ba32e9656c7c3fdddad3ba3f1588288]
-   P       [Testing Mean with known Variance - Sample Size] [WS4-task9] [2014-10-22 13:23:40] [81f624c2f0b20a2549c93e7c3dccf981]
-             [Testing Mean with known Variance - Sample Size] [WS4-task10] [2014-10-22 13:26:34] [81f624c2f0b20a2549c93e7c3dccf981]
-   P       [Testing Mean with known Variance - Sample Size] [WS 4 Task 9] [2014-10-22 13:39:50] [fa1b8827d7de91b8b87087311d3d9fa1]
-   P         [Testing Mean with known Variance - Sample Size] [WS 4 Task 10] [2014-10-22 13:42:53] [fa1b8827d7de91b8b87087311d3d9fa1]
-   P       [Testing Mean with known Variance - Sample Size] [] [2014-10-22 13:40:51] [d253a55552bf9917a397def3be261e30]
-           [Testing Mean with known Variance - Sample Size] [Vraag 9] [2014-10-22 13:50:54] [36781f05c04c55e165b348994b753b95]
- R         [Testing Mean with known Variance - Sample Size] [Task9 WS4] [2014-10-22 14:18:08] [805021881bfa5340347077d26b077617]
-           [Testing Mean with known Variance - Sample Size] [9] [2014-10-22 14:18:20] [2568c9326b0361ae14a2b722dbd6de4e]
- R         [Testing Mean with known Variance - Sample Size] [Task10 WS4] [2014-10-22 14:20:35] [805021881bfa5340347077d26b077617]
- R         [Testing Mean with known Variance - Sample Size] [] [2014-10-22 14:21:54] [36c866d94170840abc594fd3e7d5794f]
-   P       [Testing Mean with known Variance - Sample Size] [] [2014-10-22 14:24:01] [e493208d2907342b139e6792bbaea494]
-             [Testing Mean with known Variance - Sample Size] [] [2014-10-22 14:28:34] [e493208d2907342b139e6792bbaea494]
- RM          [Minimum Sample Size - Testing Mean] [] [2014-10-22 14:33:04] [e493208d2907342b139e6792bbaea494]
- RM            [Testing Variance - Critical Value (Region)] [] [2014-10-22 14:49:19] [e493208d2907342b139e6792bbaea494]
-           [Testing Mean with known Variance - Sample Size] [WS4 Vraag 9] [2014-10-22 14:27:28] [36781f05c04c55e165b348994b753b95]
-           [Testing Mean with known Variance - Sample Size] [] [2014-10-22 14:37:11] [b2fe7fef0850359c2a41ad606a8f04c2]
-  M        [Testing Mean with known Variance - Sample Size] [] [2014-10-22 14:48:10] [ae96d02647dd9ad9c105f1fa6642e295]
-   P       [Testing Mean with known Variance - Sample Size] [berekening 9 ws 4] [2014-10-22 15:02:09] [b007041690f75f30ec26eb43925b7b35]
-           [Testing Mean with known Variance - Sample Size] [WS4 SHW] [2014-10-22 15:05:08] [cac6c5fb035463be46c296b46e439cb5]
-   P       [Testing Mean with known Variance - Sample Size] [WS4 Q9] [2014-10-22 15:05:25] [bcf5edf18529a33bd1494456d2c6cb9a]
-             [Testing Mean with known Variance - Sample Size] [WS4 Q9] [2014-10-22 15:06:57] [bcf5edf18529a33bd1494456d2c6cb9a]
-  M        [Testing Mean with known Variance - Sample Size] [] [2014-10-22 15:08:45] [eee95947b6243a1febfcd5f41483d733]
-  M        [Testing Mean with known Variance - Sample Size] [] [2014-10-22 15:10:00] [eee95947b6243a1febfcd5f41483d733]
-  M        [Testing Mean with known Variance - Sample Size] [] [2014-10-22 15:11:39] [eee95947b6243a1febfcd5f41483d733]
-  M        [Testing Mean with known Variance - Sample Size] [] [2014-10-22 15:13:57] [eee95947b6243a1febfcd5f41483d733]
-   P       [Testing Mean with known Variance - Sample Size] [] [2014-10-22 15:19:00] [eee95947b6243a1febfcd5f41483d733]
-   P         [Testing Mean with known Variance - Sample Size] [] [2014-10-22 15:22:20] [eee95947b6243a1febfcd5f41483d733]
-           [Testing Mean with known Variance - Sample Size] [] [2014-10-22 15:23:39] [cc401d1001c65f55a3dfc6f2420e9570]
-  M          [Testing Mean with known Variance - Sample Size] [] [2014-10-22 15:23:52] [cc401d1001c65f55a3dfc6f2420e9570]
- R P         [Testing Mean with known Variance - Sample Size] [] [2014-10-22 15:25:38] [cc401d1001c65f55a3dfc6f2420e9570]
- R P         [Testing Mean with known Variance - Sample Size] [] [2014-10-22 15:28:49] [cc401d1001c65f55a3dfc6f2420e9570]
-   P       [Testing Mean with known Variance - Sample Size] [] [2014-10-22 16:03:30] [99723d3e379f668157309b7b2091b15d]
- R P       [Testing Mean with known Variance - Sample Size] [] [2014-10-22 16:30:49] [bcf5edf18529a33bd1494456d2c6cb9a]
- RM          [Testing Mean with known Variance - Sample Size] [] [2014-12-25 20:37:37] [1601e79f56036968990446024a6397e5]
- R P       [Testing Mean with known Variance - Sample Size] [] [2014-10-22 16:33:25] [bcf5edf18529a33bd1494456d2c6cb9a]
- RMP       [Minimum Sample Size - Testing Mean] [] [2014-10-22 17:05:52] [bcf5edf18529a33bd1494456d2c6cb9a]

[Truncated]
Feedback Forum

Post a new message




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'George Udny Yule' @ yule.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 0 seconds \tabularnewline
R Server & 'George Udny Yule' @ yule.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=239101&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]0 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ yule.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=239101&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=239101&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 Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'George Udny Yule' @ yule.wessa.net







Testing Mean with known Variance
population variance13
null hypothesis about mean20
alternative hypothesis about mean21
type I error0.05
type II error0.05
sample size140.688259612962

\begin{tabular}{lllllllll}
\hline
Testing Mean with known Variance \tabularnewline
population variance & 13 \tabularnewline
null hypothesis about mean & 20 \tabularnewline
alternative hypothesis about mean & 21 \tabularnewline
type I error & 0.05 \tabularnewline
type II error & 0.05 \tabularnewline
sample size & 140.688259612962 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=239101&T=1

[TABLE]
[ROW][C]Testing Mean with known Variance[/C][/ROW]
[ROW][C]population variance[/C][C]13[/C][/ROW]
[ROW][C]null hypothesis about mean[/C][C]20[/C][/ROW]
[ROW][C]alternative hypothesis about mean[/C][C]21[/C][/ROW]
[ROW][C]type I error[/C][C]0.05[/C][/ROW]
[ROW][C]type II error[/C][C]0.05[/C][/ROW]
[ROW][C]sample size[/C][C]140.688259612962[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=239101&T=1

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

As an alternative you can also use a QR Code:  

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

Testing Mean with known Variance
population variance13
null hypothesis about mean20
alternative hypothesis about mean21
type I error0.05
type II error0.05
sample size140.688259612962



Parameters (Session):
par1 = 0.95 ; par2 = 20 ;
Parameters (R input):
par1 = 13 ; par2 = 20 ; par3 = 21 ; par4 = 0.05 ; par5 = 0.05 ;
R code (references can be found in the software module):
par1<-as.numeric(par1)
par2<-as.numeric(par2)
par3<-as.numeric(par3)
par4<-as.numeric(par4)
par5<-as.numeric(par5)
c <- 'NA'
csn <- abs(qnorm(par5))
if (par2 == par3)
{
conclusion <- 'Error: the null hypothesis and alternative hypothesis must not be equal.'
}
ua <- abs(qnorm(par4))
ub <- qnorm(par5)
c <- (par2+ua/ub*(-par3))/(1-(ua/ub))
sqrtn <- ua*sqrt(par1)/(c - par2)
samplesize <- sqrtn * sqrtn
ua
ub
c
sqrtn
samplesize
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ht_mean_knownvar.htm','Testing Mean with known Variance','learn more about Statistical Hypothesis Testing about the Mean when the Variance is known'),2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'population variance',header=TRUE)
a<-table.element(a,par1)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'null hypothesis about mean',header=TRUE)
a<-table.element(a,par2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alternative hypothesis about mean',header=TRUE)
a<-table.element(a,par3)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'type I error',header=TRUE)
a<-table.element(a,par4)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'type II error',header=TRUE)
a<-table.element(a,par5)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('ht_mean_knownvar.htm#ex4','sample size','example'),header=TRUE)
a<-table.element(a,samplesize)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')