::Free Statistics and Forecasting Software::

v1.1.22-r6
 
  Black&White | Blue Theme | Normal Fontsize | Increase Fontsize | Decrease Fontsize | Toggle underline | Secure website (SSL)
 
 
This software module is powered by R

:: Testing Mean with known Variance - Sample Size - Free Statistics Software (Calculator) ::

All rights reserved. The non-commercial (academic) use of this software is free of charge. The only thing that is asked in return is to cite this software when results are used in publications.

This free online software (calculator) computes the sample size for the one-sided hypothesis test about the mean, given a user-defined type I and II error. In this test it is assumed that the population variance is known.

Click here to edit the underlying code of this R Module.

Send output to:
Population Variance 
Null Hypothesis about mean 
Alternative Hypothesis about mean 
Type I error (alpha) 
Type II error (beta) 

Click here to edit the underlying code of this R Module.






Cite this software as:
Wessa P., (2008), Testing Mean with known Variance (sample size) (v1.0.3) in Free Statistics Software (v1.1.22-r6), Office for Research Development and Education, URL http://www.wessa.net/rwasp_hypothesismean4.wasp/
The R code is based on :
Xycoon, Statistics - Econometrics - Forecasting, Office for Research Development and Education, http://www.xycoon.com/ht_mean_knownvar.htm#ex4

Source code of R module
1par1<-as.numeric(par1)
2par2<-as.numeric(par2)
3par3<-as.numeric(par3)
4par4<-as.numeric(par4)
5par5<-as.numeric(par5)
6c <- "NA"
7csn <- abs(qnorm(par5))
8if (par2 == par3)
9{
10conclusion <- "Error: the null hypothesis and alternative hypothesis must not be equal."
11}
12ua <- abs(qnorm(par4))
13ub <- qnorm(par5)
14c <- (par2+ua/ub*(-par3))/(1-(ua/ub))
15sqrtn <- ua*sqrt(par1)/(c - par2)
16samplesize <- sqrtn * sqrtn
17ua
18ub
19c
20sqrtn
21samplesize
22load(file="createtable")
23a<-table.start()
24a<-table.row.start(a)
25a<-table.element(a,hyperlink("http://www.xycoon.com/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)
26a<-table.row.end(a)
27a<-table.row.start(a)
28a<-table.element(a,"population variance",header=TRUE)
29a<-table.element(a,par1)
30a<-table.row.end(a)
31a<-table.row.start(a)
32a<-table.element(a,"null hypothesis about mean",header=TRUE)
33a<-table.element(a,par2)
34a<-table.row.end(a)
35a<-table.row.start(a)
36a<-table.element(a,"alternative hypothesis about mean",header=TRUE)
37a<-table.element(a,par3)
38a<-table.row.end(a)
39a<-table.row.start(a)
40a<-table.element(a,"type I error",header=TRUE)
41a<-table.element(a,par4)
42a<-table.row.end(a)
43a<-table.row.start(a)
44a<-table.element(a,"type II error",header=TRUE)
45a<-table.element(a,par5)
46a<-table.row.end(a)
47a<-table.row.start(a)
48a<-table.element(a,hyperlink("http://www.xycoon.com/ht_mean_knownvar.htm#ex4","sample size","example"),header=TRUE)
49a<-table.element(a,samplesize)
50a<-table.row.end(a)
51a<-table.end(a)
52table.save(a,file="mytable.tab")
Delete history
Server DateModuleCommand
Sat, 17 May 2008 14:33:25 -0600Start of session-

Please, send us your feedback!
Overall rating
What do you think about the response time?
Rate the facility with which you interact with our software.
Is the output presented in an understandable (clear) form?
How did you find this website/module?
Do you have any comments about our site?
Do you have any suggestions for our site?
Please enter the code that is displayed in this picture: captcha

To cite Wessa.net in publications use:
Wessa, P. (2008), Free Statistics Software, Office for Research Development and Education,
version 1.1.22-r6, URL http://www.wessa.net/

© Resa R&D, and the 'Office for Research, Development, and Education' - All rights reserved. Academic license for non-commercial use only.
This website is an intellectual and physical property of Resa R&D. This includes: html content, graphical illustrations (gif files), computer software, online or electronic documentation, associated media, and printed materials. The free use of the scientific content, services, and applications in this website is granted for non commercial use only. In any case, the source (url) should always be clearly displayed. Under no circumstances are you allowed to reproduce, copy or redistribute the design, layout, or any content of this website (for commercial use) including any materials contained herein without the express written permission of Resa R&D or the Office for Research, Development, and Education.

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, Resa R&D makes no warranties or representations as to the accuracy or completeness of such information (or software), and it assumes no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall Resa R&D be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.

Software Version : 1.1.22-r6
Algorithms & Software : Prof. dr. P. Wessa
Facilities : Resa R&D - Office for Research, Development, and Education
Server : www.wessa.net

Comments, Feedback & Errors | Privacy Policy | Statistics Resources | Wessa.net Home

 © Wessa.Net 2002-2008  
 
 

Home Page
Equation Plotter
Time Series Analysis (new)
Time Series Analysis (old)
Multiple Regression (new)
Multiple Regression (old)
Descriptive Statistics
Statistical Distributions
Hypothesis Testing

Academic citations
Computations Archive
Search Computations
FAQ
About Wessa.net
Powered by Linux

Server status page
History list
Edit R Code
Google
Web wessa.net