Difference between revisions of "Manuals/calci/ZTESTEQUALMEANS"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''ZTESTTWOSAMPLEFORMEANS('''Array1, Array2, Variance1, Variance2, Alpha, NewTableFlag) where, '''Array1 '''-...")
 
Line 1: Line 1:
 +
<div style="font-size:30px">'''ZTESTTWOSAMPLEFORMEANS(ar1,ar2,v1,v2,md,alpha,lv)'''</div><br/>
 +
*<math>ar1</math> and  <math>ar2</math>  are  array of values.
 +
*<math>v1</math>  and <math>v2</math>  are value of variances.
 +
*<math>md</math> is the  Hypothesized Mean Difference.
 +
*<math>alpha</math> is the significance level.
 +
*<math>lv</math> 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 <math> ZTESTTWOSAMPLEFORMEANS(ar_1,ar_2,v_1,v_2,md,alpha,lv)</math>,<math> ar_1 </math> and <math>ar_2</math> are the set of values,<math>v_1</math> is the variance of <math>ar_1</math>,<math>v_2</math> is the variance of <math>ar_2</math>.
 +
*<math> md <math>  is the Hypothesized Mean Difference. If testing is for equal means,then <math>md = 0</math>.
 +
*<math>alpha</math> is the significance level which ranges from 0 to 1.
 +
*<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.
 +
*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}}}
 +
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.
 +
*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 
 +
 +
 +
 +
 +
 +
 
<div id="6SpaceContent" class="zcontent" align="left">
 
<div id="6SpaceContent" class="zcontent" align="left">
  
Line 25: Line 56:
 
Lets see an example in (Column4Row5)
 
Lets see an example in (Column4Row5)
  
<nowiki>=ZTESTTWOSAMPLESFORMEANS (R1C1:R4C1, R1C2:R4C2, R1C3:R4C3, R1C4:R4C3, 0, 0.05, TRUE)</nowiki>
+
UNIQbb01b3076906c32b-nowiki-00000004-QINU
  
 
ZTESTTWOSAMPLESFORMEANS returns the result in new sheet(5Space).
 
ZTESTTWOSAMPLESFORMEANS returns the result in new sheet(5Space).
  
<nowiki>=ZTESTTWOSAMPLESFORMEANS(R1C1:R4C1, R1C2:R4C2, R1C3:R4C3, R1C4:R4C3, 0, -0.055, TRUE)</nowiki>
+
UNIQbb01b3076906c32b-nowiki-00000005-QINU
  
 
ZTESTTWOSAMPLESFORMEANS returns the #ERROR(Alpha = -0.055).
 
ZTESTTWOSAMPLESFORMEANS returns the #ERROR(Alpha = -0.055).

Revision as of 00:37, 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: and Failed to parse (unknown function "\math"): {\displaystyle 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