excel and r formulas to be used

Post on 01-Feb-2016

222 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Formulas for regression and other methods of R program

TRANSCRIPT

Calculate MeanAVERAGE(sample)

Calculate Standard Deviation of SampleSTDEV.S(sample)

Calculate z-score for a sample(AVERAGE(sample)-Mean of Population(given in question))/(standard deviation of population (given in question)/n^0.5)

Calculate p-value for this z-score (in R)PNORM(z-score)

Calculate t-dist for a sample Useful when standard deviation in not in question(AVERAGE(sample)-Mean of Population(given in question))/(STDEV.S(sample)/n^0.5)

Calculate t-critical for the samplefrom t-table in book, find for df= n-1 at some significance level given in question

Calculate p-value from t-distin R, Use t.test(sample, mu=mean given in question, alternative="two.sided/greater/less"

Calculate f-distVAR.S(sample1)/VAR.S(sample2)In R, use Var.Test (sample1, sample2, var.equal=TRUE/FALSE)

Calculate f-criticalfrom Book table, dF1/dF2

Significance level=alpha=0.05 if not given

Confidence interval=95% if not given

For two sample tests, use excel data analysis t-test assuming equal variances

(AVERAGE(sample)-Mean of Population(given in question))/(standard deviation of population (given in question)/n^0.5)

50706070907250808555667080 mean = 674067

14.528490.85354966.1464567.853553.090473

top related