Linear Model with t distributed errors in the StatsModels library

In this recipe, we explain Linear Model with T-Distributed Errors (TLinearModel) in StatsModels.

Recipe Objective - What is Linear Model with t-distributed errors (TLinearModel) in the StatsModels library?

TLinearModel is a class that shows that you can define a new model simply by specifying the log-likelihood method. All result statistics are inherited from standard likelihood models and result classes. The results were tested against R in a simple case.

TLinearModel is a Maximum Likelihood Estimation of Linear Model with t-distributed errors. This is an example of generic MLE. All methods and results are standard, except for the definition of the negative log-likelihood method. Gradients and Hessian matrices, and all the resulting statistics, are based on numerical differentiation.

Learn About the Application of ARCH and GARCH models in Real-World 

It belongs to a class statsmodels.miscmodels.tmodel.TLinearModel(endog, exog=None, loglike=None, score=None, hessian=None, missing='none', extra_params_names=None, **kwds)

For more related projects -

https://www.dezyre.com/projects/data-science-projects/deep-learning-projects
https://www.dezyre.com/projects/data-science-projects/neural-network-projects

Attributes:

endog_names
Names of endogenous variables.

exog_names
Names of exogenous variables.

Methods:

expandparams(params)
expand to full parameter array when some parameters are fixed

fit([start_params, method, maxiter, ...])
Fit method for likelihood based models

from_formula(formula, data[, subset, drop_cols])
Create a Model from a formula and dataframe.

hessian(params)
Hessian of log-likelihood evaluated at params

information(params)
Fisher information matrix of model.

predict(params[, exog])
After a model has been fit predict returns the fitted values.

predict_distribution(exog)
return frozen scipy.stats distribution with mu at estimated prediction

score(params)
Gradient of log-likelihood evaluated at params

What Users are saying..

profile image

Abhinav Agarwal

Graduate Student at Northwestern University
linkedin profile url

I come from Northwestern University, which is ranked 9th in the US. Although the high-quality academics at school taught me all the basics I needed, obtaining practical experience was a challenge.... Read More

Relevant Projects

Build a Collaborative Filtering Recommender System in Python
Use the Amazon Reviews/Ratings dataset of 2 Million records to build a recommender system using memory-based collaborative filtering in Python.

Deep Learning Project for Beginners with Source Code Part 1
Learn to implement deep neural networks in Python .

Machine Learning Project to Forecast Rossmann Store Sales
In this machine learning project you will work on creating a robust prediction model of Rossmann's daily sales using store, promotion, and competitor data.

Locality Sensitive Hashing Python Code for Look-Alike Modelling
In this deep learning project, you will find similar images (lookalikes) using deep learning and locality sensitive hashing to find customers who are most likely to click on an ad.

End-to-End Snowflake Healthcare Analytics Project on AWS-2
In this AWS Snowflake project, you will build an end to end retraining pipeline by checking Data and Model Drift and learn how to redeploy the model if needed

Forecasting Business KPI's with Tensorflow and Python
In this machine learning project, you will use the video clip of an IPL match played between CSK and RCB to forecast key performance indicators like the number of appearances of a brand logo, the frames, and the shortest and longest area percentage in the video.

Build an optimal End-to-End MLOps Pipeline and Deploy on GCP
Learn how to build and deploy an end-to-end optimal MLOps Pipeline for Loan Eligibility Prediction Model in Python on GCP

Recommender System Machine Learning Project for Beginners-4
Collaborative Filtering Recommender System Project - Comparison of different model based and memory based methods to build recommendation system using collaborative filtering.

MLOps using Azure Devops to Deploy a Classification Model
In this MLOps Azure project, you will learn how to deploy a classification machine learning model to predict the customer's license status on Azure through scalable CI/CD ML pipelines.

House Price Prediction Project using Machine Learning in Python
Use the Zillow Zestimate Dataset to build a machine learning model for house price prediction.