Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_hypothesismean6.wasp
Title produced by softwareTesting Sample Mean with known Variance - Confidence Interval
Date of computationTue, 11 Nov 2008 10:28:02 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/11/t12264245088uao09m5at5ozb2.htm/, Retrieved Sun, 19 May 2024 10:45:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=23755, Retrieved Sun, 19 May 2024 10:45:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact171
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Box-Cox Linearity Plot] [Q3] [2008-11-11 16:15:27] [299afd6311e4c20059ea2f05c8dd029d]
F    D  [Box-Cox Linearity Plot] [Q4] [2008-11-11 16:18:23] [299afd6311e4c20059ea2f05c8dd029d]
F RMPD    [Testing Mean with known Variance - Type II Error] [Q3] [2008-11-11 17:07:30] [299afd6311e4c20059ea2f05c8dd029d]
F RM          [Testing Sample Mean with known Variance - Confidence Interval] [Q6 - 2 ] [2008-11-11 17:28:02] [5e2b1e7aa808f9f0d23fd35605d4968f] [Current]
-   P           [Testing Sample Mean with known Variance - Confidence Interval] [Q6 - Verbetering] [2008-11-23 17:32:27] [299afd6311e4c20059ea2f05c8dd029d]
Feedback Forum
2008-11-14 14:23:20 [Dana Molenberghs] [reply
Net zoals in Q5 is hier je population variance fout. Deze zou 0,012 zijn, daarom bekom je een fout resultaat;

Opl: http://www.freestatistics.org/blog/index.php?v=date/2008/Nov/07/t1226060290jvl0s3jdn76l9tx.htm
2008-11-23 00:00:45 [Kenny Simons] [reply
Ook hier heb je weer dezelfde fout gemaakt als in vraag 5. Dana heeft ook hier het juiste antwoord al gegeven. Dit antwoord kan je als volgt interpreteren:
We moeten ook hier een one-sided confidence interval van de right-tail gebruiken, omdat enkel de afwijking van het vetpercentage naar boven toe een economisch voordeel voor de producent kan betekenen.

Ook al gaan we uit van een nulhypothese van 15.2% i.p.v. 15%, dan nog ligt het gemiddelde van de steekproef 0.1546 lager dan 0.189276559191704 en dus binnen het 95%-betrouwbaarheidsinterval.

Post a new message




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 2 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=23755&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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=23755&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=23755&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 time2 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Testing Sample Mean with known Variance
Population variance0.12
Sample size27
Null hypothesis (H0)0.152
Confidence interval0.95
Type of IntervalLeft tailRight tail
Two-sided confidence interval at 0.950.02133573436399640.282664265636004
Left one-sided confidence interval at 0.950.0423430915365685+inf
Right one-sided confidence interval at 0.95-inf0.261656908463431
more information about confidence interval

\begin{tabular}{lllllllll}
\hline
Testing Sample Mean with known Variance \tabularnewline
Population variance & 0.12 \tabularnewline
Sample size & 27 \tabularnewline
Null hypothesis (H0) & 0.152 \tabularnewline
Confidence interval & 0.95 \tabularnewline
Type of Interval & Left tail & Right tail \tabularnewline
Two-sided confidence interval at  0.95 & 0.0213357343639964 & 0.282664265636004 \tabularnewline
Left one-sided confidence interval at  0.95 & 0.0423430915365685 & +inf \tabularnewline
Right one-sided confidence interval at  0.95 & -inf & 0.261656908463431 \tabularnewline
more information about confidence interval \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=23755&T=1

[TABLE]
[ROW][C]Testing Sample Mean with known Variance[/C][/ROW]
[ROW][C]Population variance[/C][C]0.12[/C][/ROW]
[ROW][C]Sample size[/C][C]27[/C][/ROW]
[ROW][C]Null hypothesis (H0)[/C][C]0.152[/C][/ROW]
[ROW][C]Confidence interval[/C][C]0.95[/C][/ROW]
[ROW][C]Type of Interval[/C][C]Left tail[/C][C]Right tail[/C][/ROW]
[ROW][C]Two-sided confidence interval at  0.95[/C][C]0.0213357343639964[/C][C]0.282664265636004[/C][/ROW]
[ROW][C]Left one-sided confidence interval at  0.95[/C][C]0.0423430915365685[/C][C]+inf[/C][/ROW]
[ROW][C]Right one-sided confidence interval at  0.95[/C][C]-inf[/C][C]0.261656908463431[/C][/ROW]
[ROW][C]more information about confidence interval[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=23755&T=1

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

As an alternative you can also use a QR Code:  

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

Testing Sample Mean with known Variance
Population variance0.12
Sample size27
Null hypothesis (H0)0.152
Confidence interval0.95
Type of IntervalLeft tailRight tail
Two-sided confidence interval at 0.950.02133573436399640.282664265636004
Left one-sided confidence interval at 0.950.0423430915365685+inf
Right one-sided confidence interval at 0.95-inf0.261656908463431
more information about confidence interval



Parameters (Session):
par1 = 8 ; par2 = 0 ;
Parameters (R input):
par1 = 0.12 ; par2 = 27 ; par3 = 0.152 ; par4 = 0.95 ;
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)
sigma <- sqrt(par1)
sqrtn <- sqrt(par2)
ua <- par3 - abs(qnorm((1-par4)/2))* sigma / sqrtn
ub <- par3 + abs(qnorm((1-par4)/2))* sigma / sqrtn
ua
ub
ul <- par3 - qnorm(par4) * sigma / sqrtn
ul
ur <- par3 + qnorm(par4) * sigma / sqrtn
ur
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ht_mean_knownvar.htm','Testing Sample Mean with known Variance','learn more about Statistical Hypothesis Testing about the Mean when the Variance is known'),3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Population variance',header=TRUE)
a<-table.element(a,par1,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Sample size',header=TRUE)
a<-table.element(a,par2,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Null hypothesis (H0)',header=TRUE)
a<-table.element(a,par3,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Confidence interval',header=TRUE)
a<-table.element(a,par4,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Type of Interval',header=TRUE)
a<-table.element(a,'Left tail',header=TRUE)
a<-table.element(a,'Right tail',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('Two-sided confidence interval at ',par4), header=TRUE)
a<-table.element(a,ua)
a<-table.element(a,ub)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('Left one-sided confidence interval at ',par4), header=TRUE)
a<-table.element(a,ul)
a<-table.element(a,'+inf')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('Right one-sided confidence interval at ',par4), header=TRUE)
a<-table.element(a,'-inf')
a<-table.element(a,ur)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, hyperlink('ht_mean_knownvar.htm#ex6', 'more information about confidence interval','example'),3,TRUE)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')