Here is the illustration of the beta:
>> normspec([-inf,1.645],3,1)
ans =
0.0877
>> l=linspace(-4,4,100);
>> n=normpdf(l,0,1);
>> hold on;
>> plot(l,n,'r')
>> title("Power = 0.0877")
And here is for the power
>> normspec([1.645,inf],3,1)
ans =
0.9123
ans =
0.9123
>> plot(l,n,'r')
>> title('Power = 1-Beta = 0.9123')
No comments:
Post a Comment