I raised this question after a project that I made on DataCamp.com where a linear regression was trained to model the relationship between movie genre revenues (dependent variable) and movie genre(independent variable). The first answer I gave to myself is No.
As a self-taught data scientist, I wanted to prove it, and I spent several days reading questions and trying to understand where formally was the fallacy.
Dataset Composition
We have a dataset containing some of the Disney Films since 1935 and their inflation-adjusted revenues, movie rating, and movie genre; the dataset is freely available here. The dataset is not complete just as an example Dumbo-Robin Hood-Bambi are missing.
Goal
Build a linear regression model to predict the adjusted gross using dummy variables obtained from movie genres. From the regression model, check the effect of each genre by looking at its coefficient given in units of box office gross dollars.
Process and Thesis
"Since linear regression requires numerical variables and the genre variable is a categorical variable, we will use a technique called one-hot encoding to convert the categorical variables to numerical. This technique transforms each category value into a new column and assigns a 1 or 0 to the column. For this dataset, there will be 11 dummy variables, one for each genre except the action genre which we will use as a baseline. For example, if a movie is an adventure movie, like The Lion King, the adventure variable will be 1 and other dummy variables will be 0. Since the action genre is our baseline, if a movie is an action movie, such as The Avengers, all dummy variables will be 0."
But mathematically what happens?
If we call $y$ our target, $\theta_i$ our coefficients and $x_i$ our dummy variables we will have the following equation: $$y=\theta_0*x_0 + \theta_1*x_1 + \theta_2*x_2 + ... + \theta_n*x_n $$ So what happens when we want to estimate the value of a genre, like an horror movie based on our hypothesis: $$y_{horror}=\theta_{action} + \theta_{adventure}*x_{adventure} + \theta_{musical}*x_{musical} + ... + \theta_{horror}*x_{horror} $$ The author used the action movies as baseline. So it follows: $$y_{horror}=\theta_{action} + 0 + 0 + ... + \theta_{horror}*x_{horror} $$