Maximum Likelihood estimators of simple linear regression weights
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi, Sorry if this question is too simple. I am new to matlab and statistics aswell. I have a to train a simple linear regression model which has n features. This means that I have to calculate n weights for the features. So what I need to ask is that how can I calculate the maximum likelihood estimators of the weights in matlab.
Thanks
댓글 수: 0
답변 (1개)
Image Analyst
2012년 10월 6일
Try polyfit().
댓글 수: 1
Tom Lane
2012년 10월 8일
Or backslash or a Statistics Toolbox function such as regress, if n represents the number of columns in your matrix of features. These yield least squares estimates, which are the maximum likelihood estimators if the output (response) has a normal distribution.
참고 항목
카테고리
Help Center 및 File Exchange에서 Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!