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 computationWed, 12 Nov 2008 03:54:06 -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/12/t1226487297y7ehb1s80qacvjx.htm/, Retrieved Sun, 19 May 2024 10:43:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=24106, Retrieved Sun, 19 May 2024 10:43:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact206
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Testing Mean with known Variance - Type II Error] [case:the pork qua...] [2008-11-12 09:48:26] [9ea94c8297ec7e569f27218c1d8ea30f]
F RMP     [Testing Sample Mean with known Variance - Confidence Interval] [blok 9 q5 porc te...] [2008-11-12 10:54:06] [1237f4df7e9be807e4c0a07b90c45721] [Current]
Feedback Forum
2008-11-23 16:43:47 [c97d2ae59c98cf77a04815c1edffab5a] [reply
er is een verkeerde grafiek gebruikt. je moet bij deze oefening de grafiek 'Testing Population Mean with known Variance' gebruiken omdat het gaat om het 'echte' vetpercentage.
hier de link: http://www.freestatistics.org/blog/index.php?v=date/2008/Nov/17/t12269374296m3ywzc8i7tvgna.htm
Om een 2-zijdig betrouwbaarheidsinterval van 95% te bekomen van het werkelijke vetpercentage(15%) bevinden we ons tussen een vetpercentage van 11.33% en 19.59%.Als die waarde rechts wordt overschreden, of onder de linkse waarde ligt, dan is er sprake van fraude. Zolang het binnen dat betrouwbaarheidsinterval zit, spreken we over goed vlees. Als het binnen dat betrouwbaarheidsinterval ligt van 95%, dan is er 95% kans dat het vlees dat aangeduid wordt daarbinnen te liggen, ook werkelijk daarbinnen ligt en dus ‘goed’ vlees is.
Maar in het geval van het vermoeden van fraude, is er enkel een afwijking naar boven en maken we gebruik van het ‘Right one-sided confidence interval at 0.95’. uit de tabel kunnen we afleiden dat het vetpercentage zich zal bevinden tussen –inf en 18,93% met een waarschijnlijkheid van 95%. Het vetpercentage van 18,93% mag dus niet overschreden worden. Zo wel, kunnen we spreken van fraude.
2008-11-24 14:44:45 [c00776cbed2786c9c4960950021bd861] [reply
De studente heeft hier de 2-sided confidence interval gebruikt maar dit is niet correct. je moet hier de right one-sided confidence interval gebruiken omdat men enkel fraude van te veel vet kan hebben.
Dit betrouwbaarheidsinterval is [-oneindig, 0.1892...] omdat we een nulhypothese gebruiken van 0.1546 en niet van 0.15

Post a new message




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 1 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24106&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24106&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24106&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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Testing Sample Mean with known Variance
Population variance0.012
Sample size27
Null hypothesis (H0)0.15
Confidence interval0.95
Type of IntervalLeft tailRight tail
Two-sided confidence interval at 0.950.1086803311796960.191319668820304
Left one-sided confidence interval at 0.950.115323440808296+inf
Right one-sided confidence interval at 0.95-inf0.184676559191704
more information about confidence interval

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

[TABLE]
[ROW][C]Testing Sample Mean with known Variance[/C][/ROW]
[ROW][C]Population variance[/C][C]0.012[/C][/ROW]
[ROW][C]Sample size[/C][C]27[/C][/ROW]
[ROW][C]Null hypothesis (H0)[/C][C]0.15[/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.108680331179696[/C][C]0.191319668820304[/C][/ROW]
[ROW][C]Left one-sided confidence interval at  0.95[/C][C]0.115323440808296[/C][C]+inf[/C][/ROW]
[ROW][C]Right one-sided confidence interval at  0.95[/C][C]-inf[/C][C]0.184676559191704[/C][/ROW]
[ROW][C]more information about confidence interval[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24106&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24106&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.012
Sample size27
Null hypothesis (H0)0.15
Confidence interval0.95
Type of IntervalLeft tailRight tail
Two-sided confidence interval at 0.950.1086803311796960.191319668820304
Left one-sided confidence interval at 0.950.115323440808296+inf
Right one-sided confidence interval at 0.95-inf0.184676559191704
more information about confidence interval



Parameters (Session):
par1 = 0.012 ; par2 = 27 ; par3 = 0.15 ; par4 = 0.95 ;
Parameters (R input):
par1 = 0.012 ; par2 = 27 ; par3 = 0.15 ; 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')