Difference between revisions of "Manuals/calci/ZTESTEQUALMEANS"

From ZCubes Wiki
Jump to navigation Jump to search
Line 17: Line 17:
 
*<math>lv</math> is the logical value like TRUE or FALSE.TRUE is indicating the result will display in new worksheet.
 
*<math>lv</math> is the logical value like TRUE or FALSE.TRUE is indicating the result will display in new worksheet.
 
*Suppose we are omitted the <math>lv</math> value it will consider the value as FALSE.  
 
*Suppose we are omitted the <math>lv</math> value it will consider the value as FALSE.  
*ZTEST two sample for means is calculated by:<math> z=\frac{\bar{x_1}-\bar{x_2}-\Delta}{\sqrt{\frac{\sigma_1^2}{n_1}+\frac{\sigma_2^2}{n_2}}}  
+
*ZTEST two sample for means is calculated by:<math> z=\frac{\bar{x_1}-\bar{x_2}-\Delta}{\sqrt{\frac{\sigma_1^2}{n_1}+\frac{\sigma_2^2}{n_2}}}</math>
where <math>\bar{x_1}</math> and <math>x_2<\math> are average of two samples,<math>\Delta</math> is the Hypothesized Mean Difference between two means of the population. <math>\sigma_1</math> and <math>\sigma_2</math> are the standard deviation of two population. <math>n_1<\math> and <math>n_2<\math> are the sizes of the samples.  
+
where <math>\bar{x_1}</math> and <math>\bar{x_2}<\math> are average of two samples,<math>\Delta</math> is the Hypothesized Mean Difference between two means of the population. <math>\sigma_1</math> and <math>\sigma_2</math> are the standard deviation of two population. <math>n_1<\math> and <math>n_2<\math> are the sizes of the samples.  
 
*This function will give the result as error when  
 
*This function will give the result as error when  
 
   1. any one of the argument is nonnumeric.
 
   1. any one of the argument is nonnumeric.
   2.alpha>1
+
   2. alpha>1
  
 
  and ar2 are array of values, and v2 ,  ,  and   
 
  and ar2 are array of values, and v2 ,  ,  and   

Revision as of 00:40, 10 February 2014

ZTESTTWOSAMPLEFORMEANS(ar1,ar2,v1,v2,md,alpha,lv)


  • and are array of values.
  • and are value of variances.
  • is the Hypothesized Mean Difference.
  • is the significance level.
  • is the logical value.

Description

  • This function gives the z-test two sample for means.
  • We can use this test when
1.The samples can be different sizes.
2.The two samples are independent.
3.Both populations are normally distributed or both sample sizes are large enough that the means are normally distributed.
  • In , and are the set of values, is the variance of , is the variance of .
  • .
  • is the significance level which ranges from 0 to 1.
  • is the logical value like TRUE or FALSE.TRUE is indicating the result will display in new worksheet.
  • Suppose we are omitted the value it will consider the value as FALSE.
  • ZTEST two sample for means is calculated by:

where and Failed to parse (unknown function "\math"): {\displaystyle \bar{x_2}<\math> are average of two samples,<math>\Delta} is the Hypothesized Mean Difference between two means of the population. and are the standard deviation of two population. <math>n_1<\math> and <math>n_2<\math> are the sizes of the samples.

  • This function will give the result as error when
 1. any one of the argument is nonnumeric.
 2. alpha>1
and ar2 are array of values, and v2 ,  ,  and  




ZTESTTWOSAMPLEFORMEANS(Array1, Array2, Variance1, Variance2, Alpha, NewTableFlag)

where,

Array1 - Input range should be one block.

Array2 - Input range should be one block.

Variance1 - Input range should be one block.

Variance2 - Input range should be one block.

HypothesizeDiff - represents the Hypothesized Mean Difference.A value 0 indicates that sample means are hypothesized to be equal.

Alpha - represents the significance level and value in range 0 to 1.

' 'NewTableFlag - is the TRUE or FALSE.If set as TRUE,the result in new sheet. If NewTableFlag is omitted, it assumed to be FALSE.

T-Test: Two Sample for unequal variances determines whether two sample means are distinct.

Lets see an example in (Column4Row5)

?UNIQbb01b3076906c32b-nowiki-00000004-QINU?

ZTESTTWOSAMPLESFORMEANS returns the result in new sheet(5Space).

?UNIQbb01b3076906c32b-nowiki-00000005-QINU?

ZTESTTWOSAMPLESFORMEANS returns the #ERROR(Alpha = -0.055).


Z-TEST : TWO SAMPLE  FOR MEANS


Syntax

Remarks

Examples

Description

If the Alpha < 0 or Alpha >1, ZTESTTWOSAMPLEFORMEANS returns the #ERROR.


Column1 Column2 Column3
Column4
Row1 10 3 1 8
Row2 7 8 2 9
Row3 12 8 3 10
Row4 17 18 4 11
Row5 46 34 5Space
Row6 6 7 #ERROR

z-Test: Two Sample for Means
Variable1 Variable2
Mean 11.5 9.25
Known Variance 1,2,3,4 8,9,10,11
Observations 4 4
Hypothesized Mean Difference 0
z Value NaN
P(T<=t) One-tail 0
z Critical One-tail 1.6448536269514715
P(T<=t) Two-tail 0
z Critical Two-tail 1.9599639845400536