STA258 Lecture 13
- Previously:
- Hypothesis testing for one sample
- Diet Cola Example:
- Artificial sweetness index
before during and after storage. - Score is Before - After
- Suppose we have a normal dist with
is average loss of sweetness. - If colas always lose sweetness, then score is
can also be used - But
is easier and more intuitive to interpret - Fallback to two sided if you can't tell.
- p-value
- Follows same inequality direction as
- Follows same inequality direction as
- Should we reject
at ? - Yes, because p-value is less than
- So we accept the alternative that the average loss of sweetness is greater than 0.
- Artificial sweetness index
- Deer Example:
- Find the average weight of deer in and around UTM.
kg - Healthy deer:
kg - With
- Determine whether UTM deer are underweight.
kg - p-value
- In
Rpnorm(-2.82285714285714)=0.002379889
so we reject and accept that the average weight of deer in and around UTM is less than 45kg.
- Blood Pressure Example:
- In
R pnorm(-1.09177287015203)=0.1374665
- In
- p-value
so we fail to reject and do not have enough evidence to support the claim that the average blood pressure is different from 128.
- Examples of Hypotheses and their P-Values:
- P-Value
then then then
- Example:
- P-Value
- In
R pnorm(-2.12132034355965)=0.01694743
- In
so we reject and accept that the average is less than 20.
so we fail to reject and do not have enough evidence to support the claim that the average is less than 20.
- Time series complexities: STA457.
- Suppose we get P-Value as
but , should we reject ? - Yes, because
. - When you reject the first model, then the sequential models can't be accepted.
- We might need to use subjectivity to accept the p-value to reject
or accept it.
- Suppose we get P-Value as
- Example:
- Two sided hypothesis test
- P-Value
- In
R pnorm(-2.00346921336188)=0.02256347so we reject and accept that the average is different from 15.
so we fail to reject and do not have enough evidence to support the claim that the average is different from 15.
- Confidence Intervals
- The true mean lies in there. But
- Because our
we have to reject the null hypothesis. - A Level
two sided hypothesis test rejects exactly when falls outisde of a level CI for . - Confidence Intervals don't allow subjectivity, but p-value and hypothesis testing does. We have a little more control.
- Mean variance optimization model for economics. After the internet this model stopped working.
- There were two other guys who came up with another model which allowed some subjective control. This model is called the Black-Litterman model. It allows you to use your own subjective beliefs to adjust the model. You can use the p-value to reject the null hypothesis and then use the confidence interval to find a range of values for the mean. Then you can use the Black-Litterman model to adjust your portfolio based on your beliefs about the mean.
- It's not just the math, it's also the subjectivity that allows you to make better decisions. You can use the math to inform your decisions, but you also need to use your judgement and experience to make the final decision.w