excel and r formulas to be used

3
Calculate Mean AVERAGE(sample) Calculate Standard Deviation of Sample STDEV.S(sample) Calculate z-score for a sample (AVERAGE(sample)-Mean of Population(given in question))/(standard deviation of Calculate p-value for this z-score (in R) PNORM(z-score) Calculate t-dist for a sam 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 sample from t-table in book, find for df= n-1 at some significance level given in que Calculate p-value from t-dist in R, Use t.test(sample, mu=mean given in question, alternative="two.sided/gre Calculate f-dist VAR.S(sample1)/VAR.S(sample2) In R, use Var.Test (sample1, sample2, var.equal=TRUE/FALSE) Calculate f-critical from 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

Upload: parul-sharma

Post on 01-Feb-2016

222 views

Category:

Documents


0 download

DESCRIPTION

Formulas for regression and other methods of R program

TRANSCRIPT

Page 1: Excel and R Formulas to Be Used

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

Page 2: Excel and R Formulas to Be Used

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

Page 3: Excel and R Formulas to Be Used

50706070907250808555667080 mean = 674067

14.528490.85354966.1464567.853553.090473