I understand from one of the post that t-test is preferred over z-test. Based on this assumption can anyone help me answer the below queries
- will t-test works better than z-test when we take sample size >=30, if not what should be ideal sample size to be taken.
- Do we need to carry out hypothesis tests before carrying out prediction like regression - to ensure that samples taken are coming from the same population. If not, when these tests are carried out.
- Regression requires normality of the residuals. If the residuals are not normally distributed , do we take one more sample until residuals attain normality? Are they any other pre-requisites for regression.
- Do we go with Box and whisker plot only to identify outliers.If they are outliers are we going with median and if they are no outliers we go with mean? If not, do we have any other measure
- For z-test, we plot Histogram to check if the plot is normally distributed or not. Similarly do we have any plot that we can visualize for t-test. If yes, what do we need to look into the plot to make inferences