Can we use analysis of variance to replace of t test?

38 Views Asked by At

I know that we will get the same results whether use analysis of variance(ANOVA) or t tests when we are comparing the mean between two groups.
And this two methods have same assumption: normality and variance homogeneity.
Here is my question: Can we use ANOVA to replace of t tests? Anywhere we can use t tests correctly, we use ANOVA to instead of it. It's that right, why not?