4 Exploratory data analysis

  • Mapping out the underlying structure
  • Identifying the most important variables
  • Univariate visualizations
  • Multivariate visualizations
  • Summary tables

4.1 Mapping out the underlying structure

The final dataset has 3704 movie records with 8 variables. movieId shows the identifiers of the related movie on the MovieLens, title shows the original title, budget shows the estimated budget of movie, profit indicates the worldwide gross profit, studio shows the company that releases the movie. The last three numerical columns show the numbers of genders of the first two characters (stars) of the movie.

#> tibble [3,704 x 10] (S3: tbl_df/tbl/data.frame)
#>  $ movieId     : num [1:3704] 1 2 3 4 5 6 9 10 11 16 ...
#>  $ title       : chr [1:3704] "Toy Story" "Jumanji" "Grumpier Old "..
#>  $ year        : num [1:3704] 1995 1995 1995 1995 1995 ...
#>  $ genres      : chr [1:3704] "Adventure|Animation|Children|Comedy"..
#>  $ budget      : num [1:3704] 3.0e+07 6.5e+07 2.5e+07 1.6e+07 3.0e+..
#>  $ profit      : num [1:3704] 3.75e+08 1.98e+08 4.65e+07 6.55e+07 4..
#>  $ studio      : chr [1:3704] "Walt Disney Pictures, Pixar Animati"..
#>  $ star_female : int [1:3704] 0 0 0 2 1 0 0 0 1 1 ...
#>  $ star_male   : int [1:3704] 2 2 2 0 1 2 2 2 1 1 ...
#>  $ star_unknown: int [1:3704] 0 0 0 0 0 0 0 0 0 0 ...

4.2 Identifying the most important variables

The main question is based on the relation of budget with the profit, so most important variables are ww_gross (worldwide income) and budget.

4.3 Univariate and Multivariate Visualizations

The budgets and worldwide revenues of the films range predominantly between $ 10 million and $ 100 million. Both variables show negative skewness with partially normal distribution.

There appears to be a logarithm-scale correlation between film budgets and worldwide revenue.

Warner Bros, Universal Pictures and Columbia Pictures are in the top three when the studios with the most films are ranked.

Created with Highcharts 8.1.2studioNumber of MoviesUniversal PicturesParamount PicturesWarner Bros.Columbia PicturesTwentieth Century FoxNew Line CinemaWalt Disney PicturesTouchstone PicturesRelativity MediaDreamworks PicturesMetro-Goldwyn-Mayer (MGM)New Regency ProductionsMiramaxVillage Roadshow PicturesAmblin EntertainmentFox Searchlight PicturesFox 2000 PicturesTriStar PicturesStudioCanalScreen Gems050100150200250300350

According to the data used, the top 5 studios make up about 10% of all films shot.

Created with Highcharts 8.1.2studioPercentages of MoviesUniversal PicturesParamount PicturesWarner Bros.Columbia PicturesTwentieth Century FoxNew Line CinemaWalt Disney PicturesTouchstone PicturesRelativity MediaDreamworks PicturesMetro-Goldwyn-Mayer (MGM)New Regency ProductionsMiramaxVillage Roadshow PicturesAmblin EntertainmentFox Searchlight PicturesFox 2000 PicturesTriStar PicturesStudioCanalScreen Gems00.010.020.030.04

Most of the movies are Drama. This genre is followed by Comedy, Thriller and Action. Documentary and Film-noir genres are the least frequently used tags.

Created with Highcharts 8.1.2genresNumber of MoviesDramaComedyActionThrillerAdventureRomanceCrimeSci-FiHorrorFantasyChildrenMysteryAnimationIMAXWarMusicalWesternDocumentaryFilm-Noir(no genres listed)02505007501000125015001750

Many films can be defined by more than one genre. In the correlation chart below, the frequency of using the genres together is shown. As expected, the Children and Animation genres are often used together, while Thriller and Comedy are rarely used together.

4.4 Summary Tables

The summary table below includes the number of movies produced by each studio (n_movies), the average of their budget (mean_budget) and their standard deviation (sd_budget), the average of their income (mean_income) and the standard deviation (sd_income).

studio
mean_budget
sd_budget
mean_income
sd_income
n_movies
Marvel Studios
187772727
48062392
663459881
399559161
22
Pixar Animation Studios
153800000
49662651
512309425
242311933
20
Roth Films
153571429
64789035
300244924
298096881
7
Marvel Entertainment
148692308
47814546
415070573
198022685
13
Laura Ziskin Productions
146166667
101879177
431418972
285289762
6
DC Entertainment
143812500
103164895
277345105
294894328
8
Lightstorm Entertainment
142333333
63317191
899119368
1087778119
6
WingNut Films
137555556
78681496
614919574
343978219
9
Syncopy
136667667
78589686
431832162
296979401
6
Jerry Bruckheimer Films
133782609
73558855
264400163
248025405
23

The table below contains the numerical and financial summaries of the films according to the gender combination of the stars in the film.

star_cast
mean_budget
sd_budget
mean_income
sd_income
n_movies
Male-Male
42668639
48718593
106876104
176655372
1548
Female-Male
35779439
43883587
94222554
169039384
1777
Other
27748517
46965710
83400670
145284825
114
Female-Female
23561993
27303872
69116467
115508112
265

The summary table below includes the number of movies tagged with each genres (n_movies), the average of their budget (mean_budget) and their standard deviation (sd_budget), the average of their income (mean_income) and the standard deviation (sd_income).

genres
mean_budget
sd_budget
mean_income
sd_income
n_movies
IMAX
135200000
61518475
369597966
360840893
143
Adventure
81226403
67471012
220346516
289378712
653
(no genres listed)
81185167
128889687
192207959
322747254
3
Animation
74398121
57236035
224335966
240958358
224
Sci-Fi
72620370
69643820
186006701
289234989
427
Fantasy
70201710
64705943
181545470
255562137
353
Action
65251167
60754085
156197955
237460300
964
Children
63150842
55153110
168839632
210827556
322
War
43407592
44556321
90685479
130749452
136
Thriller
40289562
42214899
95515616
150715011
955
1–10 of 20 rows