10. (A) Program for Uniform distribution
| ||
| N=sum(obsfre); | ||
| xbar=sum(x*obsfre')/N; | ||
| prob(1)=1/(n+1); | ||
| for r=0:n | ||
| prob(r+1)=1/(n+1); | ||
| end | ||
| expfre=round(prob*N); | ||
| printf('expected frequencies\n'); | ||
| printf('------------------------------\n'); | ||
| return(expfre); | ||
| endfunction | ||
| x=[0,1,2,3,4,5]; | ||
| obsfre=[12,50,100,80,45,5]; | ||
| unifit(x,obsfre) | ||
10. (A) Program for Uniform distribution
Reviewed by admin
on
December 24, 2019
Rating:
Reviewed by admin
on
December 24, 2019
Rating:

No comments: