Stats Exam 3

STAT 330 Exam Review Notes

Concepts/Objectives

ANOVA (Analysis of Variance)

  • Definition: ANOVA is a statistical method used when comparing more than two sample means/groups.

  • Null Hypothesis: The null hypothesis of ANOVA states that all population means are equal across the treatments: H<em>0:heta</em>1=heta<em>2=heta</em>3=…=hetakH<em>0: heta</em>1 = heta<em>2 = heta</em>3 = … = heta_k

    • Where hetaheta represents the population means for the groups being compared and kk is the total number of groups/sample means.

ANOVA Table

  • Source of Variation: The ANOVA table summarizes the sources of variation in the data.

    • Sum of Squares: Represents the total variation explained by different sources.

    • Degrees of Freedom (df): The number of independent values that can vary in an analysis without violating any given constraints.

    • Mean Squares: The average of the sum of squares divided by the corresponding degrees of freedom.

    • F-ratio: The ratio of variances that helps determine if the means are statistically different.

    • P-value: The probability value used to evaluate the statistical significance of results.

ANOVA Components

  • Mean Square Groups (MSTrt): It represents the variation among the sampled individuals belonging to different groups.

    • Defined as MSTrt=racSSTrdf<em>treatmentMSTrt = rac{SSTr}{df<em>{treatment}} where df</em>treatment=k−1df</em>{treatment} = k - 1

  • Mean Square Error (MSE): The pooled sample variance that measures the variation among individuals within the same groups.

    • Defined as MSE=racSSEdferrorMSE = rac{SSE}{df_{error}}

    • Where NN is the total number of observations.

F-Test (ANOVA)

  • F-ratio Definition: The F-test compares the variances between group means: F=racMSTrtMSEF = rac{MSTrt}{MSE}

    • This ratio is compared to a critical value from the F-Table to make hypothesis decisions.

    • Note: The F-Table does not provide exact p-values.

Example ANOVA

  • Task: Fill in the ANOVA table with provided statistics:

    • Source of Variation:

    • Groups (Treatment): 7.224

    • df: 2

    • Mean Squares: ???

    • F-ratio: ???

    • P-value: ???

    • Error:

    • Sum of Squares: 19

  • Calculating Additional Metrics:

    • Total df (dftotaldf_{total}): N−1N-1

    • df<em>total=df</em>treatment+dferrordf<em>{total} = df</em>{treatment} + df_{error}

    • dftotal=2+19=21df_{total} = 2 + 19 = 21

    • Sums of Squares Error (SSE):

    • SSE=SST−SStrtSSE = SST - SStrt

    • Derived: SSE=16.639−7.224=9.415SSE = 16.639 - 7.224 = 9.415

    • Mean Square Treatment (MSTrt):

    • MSTrt=racSStrtdftreatmentMSTrt = rac{SStrt}{df_{treatment}}

    • MSTrt=rac7.2242=3.6122MSTrt = rac{7.224}{2} = 3.6122

    • Mean Square Error (MSE):

    • MSE=racSSEdferrorMSE = rac{SSE}{df_{error}}

    • MSE=rac9.41519=0.4955MSE = rac{9.415}{19} = 0.4955

    • F Value Calculation:

    • F=racMSTrtMSEF = rac{MSTrt}{MSE}

    • F=rac3.61220.4955=7.29F = rac{3.6122}{0.4955} = 7.29

ANOVA Recap

  • In ANOVA:

    • When analyzing sample groups/means: kk represents the number of groups.

    • When analyzing regression: kk represents the number of estimated parameters.

    • Example in a simple linear regression model where you estimate 2 parameters: β<em>0\beta<em>0 and β</em>1\beta</em>1

    • Important to note: kk is NOT the number of independent variables.

Regression: Prediction Equation

  • Model Definition: The model is used for predicting the age of elephants based on the length of their tusks.

    • Prediction Equation:
      y=β<em>0+β</em>1x1y = \beta<em>0 + \beta</em>1 x_1

    • Where:

    • yy is the dependent variable (age of the elephant)

    • x1x_1 is the independent variable (length of the tusks)

    • β0\beta_0 is the y-intercept

    • β1\beta_1 is the slope of the regression line.

  • Interpretation:

    • If x<em>1x<em>1 = 0, the predicted age (yy) is equal to β</em>0\beta</em>0.

    • For each unit increase in x<em>1x<em>1, the predicted age increases by β</em>1\beta</em>1 units.

JMP Output: Prediction Equation

  • From lab results with tusk length and elephant age:

    • Prediction Equation:
      extAge=6.068784+0.1948207imesextLengthext{Age} = 6.068784 + 0.1948207 imes ext{Length}

Regression: Finding Fitted Values & Residuals

  • Fitted Values: To calculate, plug in your x variables and derive your output ildeyilde{y}.

  • Finding Residuals:

    • Residuals = Actual value - Predicted value: y−ildeyy - ilde{y}.

  • Mean Square Error (MSE):
    MSE=racSSEn−2=S2ext(Variance)MSE = rac{SSE}{n-2} = S^2 ext{(Variance)}

  • Sum of Squared Errors (SSE):
    SSE=extSum((y−ildey)2)SSE = ext{Sum}\bigg((y - ilde{y})^2\bigg)

Testing Significance of Variables

  • Objective: Determine the significance of a variable in the prediction model.

  • Hypotheses:

    • Null Hypothesis: H<em>0:β</em>1=0H<em>0: \beta</em>1 = 0 (variable has no effect)

    • If p<0.05p < 0.05: Reject H0H_0; conclude the variable is significant to the prediction of yy.

    • If p<br>ightarrow0.05p <br>ightarrow 0.05 or greater: Fail to reject H0H_0; conclude the variable is not significant in predicting yy.

Coefficient of Determination

  • Definition: The Coefficient of Determination (R2R^2) is the squared value of the correlation coefficient rr.

  • Range of Values: 0extto10 ext{ to } 1; indicates the proportion of variation in the dependent variable explained by the independent variable(s).

    • Interpretation: "The variation of yy explained by xx."

Multiple Regression

  • Model Structure: In a multiple regression analysis, it involves kk independent variables:

    • Model equation:
      Y=β<em>0+β</em>1X<em>1+β</em>2X<em>2+…+β</em>kXk+extεY = \beta<em>0 + \beta</em>1 X<em>1 + \beta</em>2 X<em>2 + … + \beta</em>k X_k + ext{ε} where extεext N(0,au2)ext{ε} ext{~} N(0, au^2).

  • Degrees of Freedom:

    • dftreatment=k−1df_{treatment} = k - 1 (where we estimate kk parameters and include the intercept)

    • For error: dferror=n−(k+1)df_{error} = n - (k + 1).