<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Faizanbhs on Medium]]></title>
        <description><![CDATA[Stories by Faizanbhs on Medium]]></description>
        <link>https://medium.com/@faizanbhs1?source=rss-d867af7dde9a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*eIUCUUaJyVnDCDOA</url>
            <title>Stories by Faizanbhs on Medium</title>
            <link>https://medium.com/@faizanbhs1?source=rss-d867af7dde9a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:47:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@faizanbhs1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Beyond the IMDb Rating: What 85,855 Movies Taught Us About Success]]></title>
            <link>https://medium.com/@faizanbhs1/beyond-the-imdb-rating-what-85-855-movies-taught-us-about-success-aed833b6cc8e?source=rss-d867af7dde9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/aed833b6cc8e</guid>
            <dc:creator><![CDATA[Faizanbhs]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 12:42:56 GMT</pubDate>
            <atom:updated>2026-11-24T12:42:56.587Z</atom:updated>
            <content:encoded><![CDATA[<p><em>From exploring over a century of cinema to building machine learning models that predict audience ratings — our journey through the data behind movie success.</em></p><p><strong>By Faizan Ahmed Gill,Anza Rashid, Adina Batool and Ayesha Javed</strong></p><p>CS334 — Principles and Techniques of Data Science | Fall 2026</p><h3>It All Started With a Simple Question</h3><p>Think about the last time you wanted to watch a movie. Chances are, before deciding whether it was worth your time, you looked up its IMDb rating.</p><p>A rating above 8 might immediately catch your attention, while anything below 5 might make you reconsider. Without watching a single scene, we often allow a number to shape our expectations of an entire film.</p><p>But somewhere along the way, we began treating that number as more than just a rating. We started treating it as a measure of success.</p><p>And that is where our project began.</p><p>What actually makes a movie successful? Is it the appreciation it receives from audiences? The recognition it earns from critics? The number of people it reaches? Or simply how much money it makes?</p><p>Consider a critically acclaimed independent film that receives outstanding reviews but reaches a relatively small audience. Now compare it with a blockbuster that earns hundreds of millions of dollars despite receiving average reviews. Both movies have achieved something remarkable, yet their success looks completely different.</p><p>As part of our Principles and Techniques of Data Science course, we decided to investigate this question using real movie data. Rather than attempting to determine what makes a good movie from a purely subjective perspective, we wanted to see whether the data could reveal patterns that would help us understand the different dimensions of success.</p><p>What started as a relatively simple investigation into IMDb ratings eventually became a complete data science project involving data cleaning, exploratory analysis, statistical relationships, feature engineering and machine learning.</p><p>Along the way, we discovered that understanding movie success was considerably more complicated than we had initially imagined.</p><h3>Finding the Data Behind the Big Screen</h3><p>Our first challenge was finding a dataset that would allow us to look beyond ratings alone.</p><p>A collection of only the highest-rated IMDb movies would not have been particularly useful. We needed movies that had succeeded, movies that had failed, and everything in between.</p><p>We eventually settled on the publicly available IMDb Movies Extensive Dataset, which contained 85,855 movies and 22 original attributes. The movies spanned release years from 1894 to 2020, covering more than a century of cinema.</p><p>The dataset included information about movie genres, runtimes, release years, countries, languages, directors, actors, production budgets, worldwide earnings, critic scores and audience ratings.</p><p>This gave us an opportunity to investigate movie success from several perspectives.</p><p>We decided to focus on four main measurements:</p><ul><li><strong>IMDb rating:</strong> How positively audiences rated a movie.</li><li><strong>IMDb vote count:</strong> How much engagement a movie received on IMDb.</li><li><strong>Metascore:</strong> How positively professional critics reviewed a movie.</li><li><strong>Worldwide gross:</strong> How much reported box-office revenue a movie generated.</li></ul><p>These four variables became the foundation of our investigation.</p><p>Our initial proposal was built around understanding how these measurements related to one another. We wanted to know whether certain genres received better ratings, whether critics and audiences agreed, whether popularity was associated with audience appreciation, and whether any of these factors translated into commercial success.</p><p>Eventually, we also wanted to see whether machine learning could predict audience reception using information available before the results of a movie’s release were known.</p><p>However, before we could begin answering any of these questions, we needed to make sure the data was actually usable.</p><h3>The Reality of Working With Real-World Data</h3><p>When we first loaded the dataset into Python, the number of records was encouraging. With almost 86,000 movies, it seemed like we had more than enough information to answer our questions.</p><p>But as we started examining the individual columns, we quickly realized that having a large dataset does not necessarily mean having a complete dataset.</p><p>Using Pandas and NumPy, we began inspecting data types, duplicate records, missing values and inconsistencies.</p><p>The duplicate checks were straightforward. Every movie had a unique IMDb title identifier, and we found no repeated IDs or completely duplicate rows.</p><p>Missing values, however, were a completely different story.</p><p>Approximately 84.5% of movies had no recorded Metascore, 72.4% had no production budget, and 63.9% had no worldwide gross information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUwfxGMshEt4IUuUVt5uAQ.png" /></figure><p><em>Figure 1: Missing values across different attributes in the original IMDb dataset.</em></p><p>This immediately forced us to reconsider how we would approach our analysis.</p><p>One option was to remove every movie with missing information. While this would have produced a cleaner-looking dataset, it would also have meant throwing away thousands of perfectly useful movie records.</p><p>A movie without a reported production budget could still tell us something about audience preferences. Similarly, a movie without a Metascore could still contribute to our understanding of genre and popularity.</p><p>Instead of treating missing information as a reason to discard an entire observation, we decided to work with different subsets of the dataset depending on the question we were investigating.</p><p>This allowed us to retain all 85,855 movies while using only the relevant records for each comparison.</p><p>Missing information was not the only issue we encountered.</p><p>For instance, one movie, <em>Bad Education</em>, had its release year recorded as “TV Movie 2019” rather than a numerical year. We extracted the year 2019 while preserving the original information. We also found 4,562 publication-date entries that contained only a year, so we avoided introducing artificial dates just to make the column look consistent.</p><p>The financial columns required even more attention.</p><p>Budgets were recorded in different currencies, meaning that a numerical value expressed in dollars could not simply be compared with an equivalent numerical value expressed in rupees or pounds.</p><p>We extracted monetary amounts only from explicitly dollar-prefixed entries for our USD comparisons. This left us with 30,955 movies containing usable worldwide gross figures and 16,602 movies containing usable production budgets in dollars.</p><p>We also created additional variables, including release decades, scaled Metascores and logarithmic transformations of vote counts and revenue, to make the data easier to analyze.</p><p>By the end of this process, our cleaned dataset contained 85,855 movies and 31 columns.</p><p>Perhaps the biggest lesson from this stage was that data cleaning is not just about removing errors. It involves making decisions that directly influence the conclusions we can draw later.</p><h3>What Does the Average Movie Actually Look Like?</h3><p>With our dataset prepared, we could finally begin exploring it.</p><p>Before searching for relationships between different variables, we wanted to understand the distribution of the very measurement that had inspired our project: IMDb ratings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gvEd5OW7x97mX_UXGN4zyQ.png" /></figure><p><em>Figure 2: Distribution of IMDb ratings across all 85,855 movies.</em></p><p>The average IMDb rating in our dataset was approximately 5.90, with a median of 6.1. Ratings ranged from 1.0 to 9.9, although most movies were concentrated somewhere around the middle of the scale.</p><p>Exceptionally good and exceptionally bad ratings were relatively uncommon.</p><p>At this point, the distribution seemed like a fairly ordinary exploratory finding. However, it would become particularly important much later in the project when we discovered that our machine learning models struggled to predict precisely those uncommon, extreme ratings.</p><p>We also noticed that the lowest number of IMDb votes recorded for any movie was 99. This suggested that films receiving very little engagement were potentially underrepresented.</p><p>Our dataset was large, but it was not a perfectly representative sample of every movie ever made.</p><p>Keeping this in mind, we moved on to our first major question: do certain types of movies consistently receive better audience ratings?</p><h3>Does Genre Give a Movie an Advantage?</h3><p>Genre was one of the first characteristics we wanted to investigate.</p><p>It seemed reasonable to expect different genres to attract different audiences and, consequently, different rating patterns.</p><p>However, analyzing genre was not as simple as grouping movies into individual categories. Many movies belonged to several genres simultaneously. A film could be classified as both Drama and Romance, while another could combine Action, Adventure and Science Fiction.</p><p>Rather than assigning every movie to a single genre, we separated the genre labels so that each movie contributed to every category it belonged to.</p><p>We then calculated the average IMDb rating for each genre and focused on genres represented by at least 2,000 movies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QG8_VOM0b8uU5MsQNVBC_w.png" /></figure><p><em>Figure 3: Average IMDb rating by genre for categories containing at least 2,000 movies.</em></p><p>The differences were quite noticeable.</p><p>Biography had an average rating of 6.62, followed closely by History at 6.54. Science Fiction averaged 5.07, while Horror had an average rating of 4.83.</p><p>Across 2,377 biography movies and 9,557 horror movies, we observed a difference of approximately 1.79 rating points.</p><p>But what did this actually mean?</p><p>Would a filmmaker automatically improve their chances of receiving a higher IMDb rating simply by making a biography instead of a horror movie?</p><p>Probably not.</p><p>Different genres attract different audiences, create different expectations and may be more common in particular release periods. Genres also overlap considerably, meaning these groups cannot be treated as entirely independent.</p><p>The results did, however, suggest that genre carried useful information about audience reception.</p><p>This was one of the first indications that basic movie characteristics might eventually help us build a predictive model.</p><p>Before moving towards machine learning, we still wanted to understand how audience ratings interacted with the other dimensions of movie success.</p><h3>Being Watched Is Not the Same as Being Liked</h3><p>Think about a movie that dominated social media, generated countless discussions and seemed impossible to escape for several weeks.</p><p>Was it necessarily a good movie?</p><p>Popularity and quality are often discussed as though they represent the same thing. We wanted to investigate whether that assumption held up in our dataset.</p><p>To do this, we used IMDb vote count as an indicator of audience engagement.</p><p>One challenge was that vote counts varied enormously. Some movies received only hundreds of votes, while others attracted more than a million.</p><p>Plotting these values directly would have made it difficult to distinguish the majority of observations. We therefore used a logarithmic transformation to visualize vote counts more effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*otG5fYzcU6nBPrKSWwbqEw.png" /></figure><p><em>Figure 4: Relationship between logarithmic IMDb vote count and audience rating.</em></p><p>To quantify the relationship, we used Spearman rank correlation.</p><p>Unlike a measure that focuses specifically on linear relationships, Spearman correlation examines whether higher values of one variable generally correspond to higher or lower values of another based on their ranks. This made it useful for our comparisons involving highly uneven variables such as vote counts and revenue.</p><p>Across all 85,855 movies, the Spearman correlation between IMDb vote count and audience rating was <strong>0.282</strong>.</p><p>There was a positive relationship, but it was relatively modest.</p><p>Movies with more votes generally tended to receive somewhat better ratings, yet there were plenty of exceptions.</p><p>We decided to investigate whether movies with very few votes were influencing this result. After restricting the dataset to movies with at least 1,000 votes, we were left with 29,374 movies.</p><p>Interestingly, the correlation decreased to 0.213.</p><p>The relationship was still positive, but even weaker.</p><p>This was an important distinction. Vote count tells us how many IMDb users participated in rating a movie, while the rating tells us how positively those users evaluated it.</p><p>A movie can generate significant attention without receiving universal appreciation.</p><p>Popularity, it turned out, was only one part of the story.</p><h3>Critics and Audiences: More Agreement Than We Expected?</h3><p>Professional critics and general audiences are frequently portrayed as having completely different tastes.</p><p>A movie praised by critics might leave general audiences disappointed, while a commercially successful entertainment film might receive relatively poor professional reviews.</p><p>We wanted to find out whether these disagreements were typical or simply memorable exceptions.</p><p>For this part of our investigation, we used Metascore as our measure of critical reception.</p><p>Only 13,305 movies in our dataset had recorded Metascores. Since Metascore is measured on a scale of 0 to 100, we divided it by ten to make it easier to visualize alongside IMDb ratings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uy4mqN4IKrqOZl2Bvt7UhQ.png" /></figure><p><em>Figure 5: Relationship between scaled Metascores and IMDb audience ratings.</em></p><p>Unlike the previous graph comparing ratings with vote counts, this visualization revealed a much clearer upward pattern.</p><p>The Spearman correlation between Metascore and IMDb rating was <strong>0.683</strong>.</p><p>Among the relationships involving audience ratings that we investigated, this was the strongest observed association.</p><p>Although critics and audiences certainly disagree about individual movies, their overall preferences appeared to be considerably more aligned within our sample than the modest relationship between popularity and ratings suggested.</p><p>However, we could not ignore the missing data problem we had discovered earlier.</p><p>Only around 15.5% of movies had a recorded Metascore. Movies receiving sufficient professional critical coverage may differ from those that receive little or none.</p><p>Our finding therefore described the movies with available critic scores rather than every movie in the dataset.</p><p>Nevertheless, it provided an interesting answer to one of our original questions: critical appreciation and audience appreciation frequently move in the same direction.</p><p>But would either of these forms of appreciation translate into money?</p><h3>Following the Money</h3><p>Imagine two movies with identical IMDb ratings.</p><p>The first earns over two billion dollars at the box office, while the second earns almost six hundred million dollars more.</p><p>Would we still consider them equally successful?</p><p>In our dataset, <em>Titanic</em> (1997) and <em>Avatar</em> (2009) both had an IMDb rating of 7.8. However, their reported worldwide earnings were approximately $2.20 billion and $2.79 billion, respectively.</p><p>This example illustrates why audience ratings alone cannot capture commercial performance.</p><p>To investigate this relationship more broadly, we used the 30,955 movies with usable worldwide gross figures in US dollars.</p><p>Like vote counts, revenue varied across several orders of magnitude, making a logarithmic scale useful for visualization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjE-2KHUdqMy10-mUgvxoQ.png" /></figure><p><em>Figure 6: Relationship between reported worldwide box-office revenue and IMDb audience rating.</em></p><p>The resulting Spearman correlation was just <strong>0.129</strong>.</p><p>This was considerably weaker than we might expect if better-rated movies consistently generated greater revenue.</p><p>When we restricted the analysis to movies receiving at least 1,000 IMDb votes, the correlation dropped further to 0.052 across 18,268 movies.</p><p>In other words, knowing that a movie was highly rated did not necessarily tell us much about its commercial performance.</p><p>That led us to reconsider how we were approaching the question.</p><p>Perhaps commercial success was associated less with how positively people rated a movie and more with how many people it reached.</p><p>We returned to our dataset and compared worldwide gross with IMDb vote count instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcJOWMbcFzDfQZiYFQqKag.png" /></figure><p><em>Figure 7: Relationship between IMDb vote count and reported worldwide gross.</em></p><p>This time, the Spearman correlation was <strong>0.544</strong>.</p><p>The difference was striking.</p><p>Using exactly the same 30,955 movies, worldwide gross had a considerably stronger association with the number of IMDb votes than with the average IMDb rating.</p><p>This does not establish that receiving more IMDb votes causes a movie to earn more money. A commercially successful movie may reach a larger audience, naturally creating more opportunities for people to rate it.</p><p>Marketing, distribution, franchise recognition and accessibility could also contribute to both outcomes, although we did not directly measure these factors.</p><p>What our results did establish was that audience engagement and reported commercial performance were more closely associated than audience ratings and commercial performance in our sample.</p><p>We were beginning to see a clearer picture of movie success.</p><p>The movies people liked most were not necessarily the movies that earned the most. Critical reception appeared closely connected to audience appreciation, while commercial earnings appeared more closely connected to audience engagement.</p><p>Success was not one measurement. It was several measurements telling different stories.</p><h3>When the Missing Data Became a Finding of Its Own</h3><p>Throughout our exploration, we had repeatedly encountered missing financial and critic-related information.</p><p>Rather than simply accepting this as a limitation, we decided to examine whether the missing information followed a pattern.</p><p>Considering that our dataset covered more than a century of cinema, we investigated how the availability of financial and critic data changed across different release periods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtMRzGekbxkAFbBpZ0AKAw.png" /></figure><p><em>Figure 8: Availability of worldwide gross and Metascore information across different release periods.</em></p><p>Only 5.2% of movies released before 1980 contained usable worldwide gross figures.</p><p>For movies released between 2000 and 2009, this increased to 56.5%, while movies released between 2010 and 2020 had a coverage rate of 51.5%.</p><p>This revealed a systematic difference in data availability.</p><p>Our financial analysis was disproportionately based on movies from more recent periods. Older films were much less likely to have the information required for our comparisons.</p><p>Moreover, the financial values were not adjusted for inflation. A dollar earned several decades ago does not have the same purchasing power as a dollar earned in a more recent year.</p><p>We were also measuring revenue rather than profit. A movie’s worldwide gross does not account for all the expenses associated with producing, marketing and distributing it.</p><p>These observations reminded us that the limitations of a dataset are themselves part of the analysis.</p><p>A graph can accurately represent the available information while still offering an incomplete picture of the wider phenomenon.</p><p>Understanding what the data could not tell us became just as important as understanding what it could.</p><h3>From Understanding the Past to Predicting the Unknown</h3><p>By the end of our exploratory data analysis, we had answered several of our original questions.</p><p>Genre appeared to contain useful information about audience preferences. Critics and audiences tended to agree. Popularity was only modestly associated with audience ratings, while commercial performance was more closely associated with engagement.</p><p>We had documented these findings in our mid-project blog.</p><p>However, we still had one major question left unanswered.</p><p>Could we take everything we had learned and use it to predict how audiences would rate a movie?</p><p>Imagine a filmmaker preparing for an upcoming release. The movie has a genre, a runtime, a production country, a language and a planned release year.</p><p>What it does not yet have is an established audience rating.</p><p>Could a machine learning model use these characteristics to provide a reasonable estimate of how the movie might eventually be received?</p><p>Our initial proposal considered classifying movies as highly rated or not. However, as we progressed through the project, we decided that predicting the actual numerical rating would provide a more informative outcome.</p><p>Instead of simply deciding whether a movie would be rated above a particular threshold, we wanted to estimate its rating on the IMDb scale and measure how close our predictions came to the actual values.</p><p>This transformed our question into a regression problem.</p><p>The target variable was avg_vote, representing the recorded IMDb audience rating.</p><p>We now had to decide what information our model should be allowed to use.</p><h3>Why We Left Out Some of Our Strongest Variables</h3><p>One of the most interesting decisions in our machine learning phase was deliberately excluding some of the variables that appeared most informative during our exploratory analysis.</p><p>For example, we had discovered that Metascore had a strong association with IMDb ratings.</p><p>Surely including Metascore would help our model make better predictions?</p><p>Possibly. But doing so would change the problem we were attempting to solve.</p><p>Our objective was to predict movie ratings using information available around release time, before audience reception had been established.</p><p>Variables such as IMDb vote count, user reviews, critic scores and box-office earnings are post-release outcomes or cannot be assumed to be consistently available at the intended prediction time.</p><p>Including them would allow the model to benefit from information that a filmmaker might not yet possess.</p><p>This is a form of data leakage: using information that would not legitimately be available when making the intended prediction.</p><p>Instead of trying to achieve the highest possible performance by including every available column, we chose to make our prediction problem more realistic.</p><p>Our final feature set consisted of:</p><ul><li>Movie runtime in minutes</li><li>Release year</li><li>All associated genre labels</li><li>First-listed production country</li><li>First-listed language</li></ul><p>These were basic characteristics that could reasonably be known around the time of a movie’s release.</p><p>Our goal was to find out how much predictive information these characteristics contained on their own.</p><h3>Teaching a Machine to Understand Movies</h3><p>Although our cleaned dataset was suitable for exploratory analysis, some additional preparation was required before it could be used by machine learning algorithms.</p><p>A computer cannot directly interpret categories such as Drama, Comedy or Horror as meaningful numerical inputs.</p><p>We needed to convert these categories into a representation that our models could process.</p><p>Since a movie could belong to several genres, we created a binary indicator for each of the 25 distinct genre tags in our dataset.</p><p>For example, a movie classified as Drama and Romance would have a value of 1 for those two genre indicators and 0 for the remaining genres.</p><p>This allowed us to preserve multiple genre labels rather than reducing each movie to a single category.</p><p>Country and language introduced a similar challenge. Many movies were international productions or featured multiple languages.</p><p>For simplicity, we retained the first-listed country and language, assigning an Unknown category where necessary. These categorical variables were then transformed using one-hot encoding.</p><p>While this approach did not fully capture the complexity of international productions, it provided a manageable representation for our initial models.</p><p>Altogether, we had 29 predictor columns before the final categorical encoding: 25 genre indicators, runtime, release year, country and language.</p><p>We then divided the dataset into two separate groups.</p><p>The training set consisted of 68,684 movies, representing 80% of the dataset. The remaining 17,171 movies formed our testing set.</p><p>We used a random seed of 42 to ensure that the split could be reproduced.</p><p>Using Scikit-learn pipelines, we applied median imputation and standardization to numerical features, along with categorical imputation and one-hot encoding for categorical features.</p><p>Importantly, these preprocessing components were fitted on the training data rather than the complete dataset. This prevented information from the held-out test movies from influencing the fitted preprocessing parameters.</p><p>With our features prepared and the test set held aside, we were finally ready to see whether machine learning could uncover useful predictive patterns.</p><h3>How Difficult Could Predicting a Movie Rating Be?</h3><p>Rather than immediately training a complex model, we started with the simplest prediction strategy we could think of.</p><p>What if we predicted the average IMDb rating for every movie?</p><p>A horror movie released in 1980? Approximately 5.9.</p><p>A biography released in 2015? Approximately 5.9.</p><p>A romantic comedy? Still approximately 5.9.</p><p>Obviously, this approach completely ignores the characteristics of individual movies.</p><p>But that was exactly why it was useful.</p><p>Implemented using Scikit-learn’s DummyRegressor, this mean-based baseline gave us a reference point against which we could evaluate more sophisticated models.</p><p>If our machine learning models could not outperform a strategy that simply guessed the average, they would not be learning particularly useful information.</p><p>Our next approach was Ridge Regression.</p><p>Ridge Regression is a regularized form of linear regression that estimates how different features contribute to a numerical prediction. Its regularization penalty discourages excessively large coefficients, helping control model complexity when several related features are present.</p><p>We used a regularization parameter of 100.</p><p>This model allowed us to explore whether movie characteristics could explain audience ratings through relatively simple additive relationships.</p><p>However, we suspected that movie reception might involve more complicated interactions.</p><p>For example, the effect of runtime might differ across genres. A three-hour historical drama might be received differently from a three-hour comedy. Similarly, the relationship between genre and audience reception could change across release periods.</p><p>To capture these potentially nonlinear patterns, we introduced our third model: Random Forest Regression.</p><p>A Random Forest combines predictions from multiple decision trees. Each tree learns different patterns from the data, and their predictions are averaged to produce a final estimate.</p><p>Our Random Forest consisted of 25 decision trees, with a maximum depth of 13, a minimum of 15 samples per leaf and a maximum feature fraction of 0.7.</p><p>These restrictions were intended to control model complexity and reduce the risk of overfitting.</p><p>We trained all three models on the same training set and evaluated them using the same 17,171 held-out movies. Predictions were also restricted to the valid IMDb rating scale of 1 to 10.</p><p>The question was no longer whether we could produce a prediction. It was whether those predictions were meaningfully better than simply guessing.</p><h3>The Moment of Truth</h3><p>To evaluate our models, we used three regression metrics.</p><p><strong>Mean Absolute Error (MAE)</strong> measured how far our predictions were from the actual ratings on average.</p><p><strong>Root Mean Squared Error (RMSE)</strong> also measured prediction error but penalized larger mistakes more heavily.</p><p><strong>R-squared (R²)</strong> measured how much variation in the actual ratings our predictions accounted for relative to a constant mean benchmark.</p><p>After training and testing all three models, the results were as follows:</p><p><strong>Mean Baseline</strong></p><ul><li>MAE: 0.9718</li><li>RMSE: 1.2410</li><li>R²: Approximately 0</li></ul><p><strong>Ridge Regression</strong></p><ul><li>MAE: 0.7737</li><li>RMSE: 1.0172</li><li>R²: 0.3281</li></ul><p><strong>Random Forest Regression</strong></p><ul><li>MAE: 0.7310</li><li>RMSE: 0.9711</li><li>R²: 0.3876</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A0dYvqUmlhZ-sXGaTcYBLQ.png" /></figure><p><em>Figure 9: Comparison of Mean Absolute Error across our three machine learning models. Lower values indicate better prediction performance.</em></p><p>Random Forest performed best across all three evaluation metrics.</p><p>Instead of missing the actual rating by approximately 0.97 points on average, as our baseline did, Random Forest reduced that error to approximately 0.73 points.</p><p>This represented a <strong>24.8% reduction in average prediction error</strong>.</p><p>Its R² score of approximately 0.388 indicated that the model accounted for around 39% of the variation in audience ratings within the test set.</p><p>Considering that the model had no access to audience reviews, critic scores, box-office earnings or information about the actual quality of a movie, these results demonstrated that basic movie characteristics contained meaningful predictive information.</p><p>However, there was another interesting detail hidden within the results.</p><p>Ridge Regression performed surprisingly close to Random Forest.</p><p>The difference in their Mean Absolute Error was only around 0.043 rating points.</p><p>Despite Random Forest’s ability to capture nonlinear relationships and interactions, much of the improvement over the baseline had already been achieved by the simpler regression model.</p><p>This challenged the assumption that increasing model complexity necessarily leads to dramatically better results.</p><p>Sometimes a simpler model can learn a considerable amount of the available signal.</p><p>At this point, we could have concluded that Random Forest was our best model and ended the investigation.</p><p>But an average error does not tell us the whole story.</p><p>Just as an IMDb rating can hide the different dimensions of movie success, a single evaluation metric can hide the different ways a model succeeds and fails.</p><p>We wanted to look more closely.</p><h3>When Our Model Met The Godfather</h3><p>To better understand our Random Forest’s behavior, we plotted its predicted ratings against the actual IMDb ratings of our test movies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dBLx0OXy8Nr8Kb3ShhQgBg.png" /></figure><p><em>Figure 10: Actual versus predicted IMDb ratings on the Random Forest test set. The dashed diagonal represents perfect predictions.</em></p><p>Ideally, all observations would fall along the diagonal line.</p><p>Instead, we noticed an interesting pattern.</p><p>Our model was relatively comfortable predicting movies near the middle of the rating distribution. However, its predictions became less reliable towards the extreme ends.</p><p>Highly rated movies were frequently underestimated, while poorly rated movies were frequently overestimated.</p><p>Remember the rating distribution we examined at the beginning of our project?</p><p>Most movies were concentrated around the middle of the scale, while exceptional ratings were relatively uncommon.</p><p>This pattern was now appearing in our model’s predictions.</p><p>One particularly interesting example was <em>The Godfather</em> (1972), listed as <em>Il padrino</em> in our dataset.</p><p>Its actual IMDb rating was 9.2.</p><p>Our Random Forest predicted 7.28.</p><p>The model recognized characteristics associated with a relatively well-rated movie, but it failed to capture just how exceptionally well the movie had been received.</p><p>From the model’s perspective, The Godfather was represented through its release year, runtime, genre, country and language.</p><p>It knew nothing about the quality of its screenplay, the effectiveness of its performances or its influence on cinema.</p><p>Those are precisely the kinds of characteristics that may separate a good movie from an extraordinary one.</p><p>The opposite problem appeared with <em>Prema Panjaram</em> (1991).</p><p>Despite having an actual IMDb rating of just 1.0, our model predicted approximately 6.81.</p><p>With an absolute error of 5.81 rating points, this was the largest individual error in our Random Forest test results.</p><p>These examples raised an important question: were these isolated mistakes, or were they part of a broader pattern?</p><p>To investigate, we examined all 247 test movies with actual IMDb ratings above 8.</p><p>Their average actual rating was 8.36, but their average predicted rating was only 6.71.</p><p>We then examined the 449 movies with actual ratings below 3.</p><p>Their average actual rating was 2.36, while their average predicted rating was 4.87.</p><p>The model systematically pulled predictions for unusually high and unusually low ratings towards the middle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N_ZLWuQq_xCc84g8e7Zi-A.png" /></figure><p><em>Figure 11: Distribution of Random Forest prediction errors across all 17,171 held-out test movies.</em></p><p>Although most prediction errors were relatively concentrated around zero, the distribution also contained considerably larger individual mistakes.</p><p>Our model had learned patterns associated with typical movie reception, but it struggled to identify movies that were truly exceptional, whether positively or negatively.</p><p>This became one of the most meaningful discoveries of the entire project.</p><p>Basic characteristics can help us estimate how a movie might generally be received. However, identifying the difference between an ordinary movie and an extraordinary one requires information that goes beyond simple metadata.</p><h3>How Far Can We Trust Our Predictions?</h3><p>Although our results were encouraging, we wanted to be careful about what they actually meant.</p><p>Our Random Forest was evaluated on historical movies that had been held aside during training. It was not evaluated on movies released after the training period.</p><p>Because we used a random training-testing split, the training data could contain movies released after some of the test movies.</p><p>Consequently, while our model demonstrated useful retrospective predictive performance, we cannot yet claim that it would achieve the same performance when predicting genuinely upcoming movie releases.</p><p>A more realistic future experiment would involve training on older movies and testing exclusively on newer releases.</p><p>This would allow us to investigate whether the patterns learned from historical movies remain useful as audience preferences change.</p><p>Our features also represented only a small part of what defines a movie.</p><p>We did not directly incorporate plot descriptions, director histories, acting performances, production quality or marketing information.</p><p>Some of these variables could potentially improve future predictions. Natural language processing, for example, might allow us to extract useful information from movie descriptions.</p><p>Historical information about directors and actors might also provide additional predictive signals, provided that it only included information available at the intended prediction time.</p><p>Further hyperparameter tuning and cross-validation could help us investigate whether alternative model configurations produce more reliable results.</p><p>However, adding more information or more complex algorithms would not necessarily solve the fundamental problem.</p><p>Some aspects of audience reception are difficult to measure. A movie’s emotional impact, originality or cultural significance cannot easily be reduced to a few structured variables.</p><p>Our model’s limitations were therefore not simply technical shortcomings. They also reflected the complexity of the question we had chosen to investigate.</p><h3>What the Project Taught Us About Data Science</h3><p>Looking back, the most valuable part of this project was not simply obtaining a collection of graphs or training a Random Forest model.</p><p>It was experiencing how a data science problem evolves.</p><p>We began with a broad question about movie success. We then had to translate that question into measurable variables, identify suitable data, assess its quality and make decisions about how to prepare it.</p><p>Our exploratory analysis revealed patterns that helped us formulate a more specific predictive question.</p><p>Our machine learning experiments then introduced new challenges involving feature representation, data leakage, model selection and evaluation.</p><p>Finally, examining the prediction errors forced us to reconsider what our models could actually achieve.</p><p>Each stage influenced the next.</p><p>The missing values we discovered during data cleaning affected the interpretation of our correlations. The genre patterns observed during exploration helped motivate our predictive features. The original rating distribution helped us understand why our model struggled with extreme ratings.</p><p>Perhaps most importantly, we learned that a model with better numerical performance is not necessarily answering a better question.</p><p>Including post-release critic scores and vote counts might have produced more accurate predictions, but it would have undermined our original objective of estimating audience reception using information available around release time.</p><p>Similarly, reporting only our Random Forest’s average error would have overlooked its difficulty with exceptional movies.</p><p>These decisions showed us that data science is as much about defining problems, understanding assumptions and communicating limitations as it is about writing code and training algorithms.</p><h3>So, What Really Makes a Movie Successful?</h3><p>After analyzing 85,855 movies, exploring more than a century of cinema and comparing three prediction models, we returned to the question that started our project.</p><p>What actually makes a movie successful?</p><p>The answer depends on what we choose to measure.</p><p>If we are interested in audience appreciation, critical reception showed the strongest observed relationship with IMDb ratings among the measures we examined.</p><p>If we are interested in commercial performance, IMDb vote count was considerably more closely associated with worldwide gross than average audience rating was.</p><p>If we are interested in predicting audience reception, basic movie characteristics can provide useful information. Our Random Forest reduced average prediction error by almost 25% compared with simply predicting the mean.</p><p>Yet it could not reliably distinguish the most exceptional movies from the rest.</p><p>Perhaps this is what makes cinema such an interesting subject for data science.</p><p>Movies possess characteristics that can be measured, categorized and analyzed. But they also involve creativity, emotion, cultural context and human interpretation — aspects that are considerably harder to capture in a dataset.</p><p>We began this project hoping to understand the factors behind a successful movie.</p><p>We ended it with a better understanding of why success itself is so difficult to define.</p><p>The next time we look up a movie’s IMDb rating, we will probably still use that number to help decide what to watch.</p><p>But we will also remember that behind that single number are thousands of individual opinions, different audience expectations, historical influences and characteristics that no single statistic can fully explain.</p><p><strong>Data can tell us a great deal about how movies perform. What it cannot completely tell us is why a particular movie becomes unforgettable.</strong></p><p>And perhaps that is what makes the story behind the rating even more interesting than the rating itself.</p><h3>Project Resources</h3><p>This project was completed as part of CS334 — Principles and Techniques of Data Science, Fall 2026.</p><p><strong>Dataset:</strong> <a href="https://github.com/sahildit/IMDB-Movies-Extensive-Dataset-Analysis">IMDb Movies Extensive Dataset</a></p><p><strong>Our mid-project article:</strong> <a href="https://medium.com/@faizanbhs1/beyond-the-imdb-rating-what-really-makes-a-movie-successful-51684544dd7b">Beyond the IMDb Rating: What Really Makes a Movie Successful?</a></p><p><strong>Tools and libraries:</strong> Python, Pandas, NumPy, Matplotlib, Seaborn and Scikit-learn.</p><p><strong>Machine learning models:</strong> DummyRegressor, Ridge Regression and Random Forest Regression.</p><p>All statistics, visualizations and prediction results presented in this article are based on our project’s historical IMDb dataset rather than live IMDb ratings or box-office figures.</p><p><strong>Meet the Team</strong></p><p>Faizan Ahmed Gill</p><p>Anza Rashid</p><p>Adina Batool</p><p>Ayesha Javed</p><p><em>Thank you for following our journey through the data behind the big screen!</em> 🎬</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aed833b6cc8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the IMDb Rating: What Really Makes a Movie Successful?]]></title>
            <link>https://medium.com/@faizanbhs1/beyond-the-imdb-rating-what-really-makes-a-movie-successful-51684544dd7b?source=rss-d867af7dde9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/51684544dd7b</guid>
            <dc:creator><![CDATA[Faizanbhs]]></dc:creator>
            <pubDate>Sun, 18 Oct 2026 14:17:09 GMT</pubDate>
            <atom:updated>2026-10-18T18:26:49.490Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. A movie can be successful in more than one way</h3><p>Some movies become huge box-office hits even though the reviews are mixed. Others become critic favorites without making particularly impressive amounts of money. That contrast gave our group a question: <strong>when we call a movie “successful,” what are we actually measuring?</strong></p><p>For our project, we decided not to rely on a single definition. Instead, we compared four ways of thinking about movie success: the <strong>IMDb audience rating</strong>, the <strong>number of votes submitted on IMDb</strong>, the <strong>Metascore awarded by critics</strong>, and <strong>reported worldwide box-office earnings</strong>. We also wanted to explore whether movie characteristics such as genre, runtime, and release year were related to those outcomes.</p><p>This article describes our initial data cleaning and exploratory data analysis (EDA). The goal at this stage is to identify patterns worth investigating, rather than claim that we have proved what causes a movie to succeed.</p><h3>2. Getting to know the dataset</h3><p>We worked with the publicly shared <strong>IMDb Movies Extensive Dataset</strong>. It contains <strong>85,855 movie records</strong> and <strong>22 original columns</strong>, with release years spanning <strong>1894–2020</strong>. Each row represents one movie identified by an IMDb title ID.</p><p>The fields most relevant to our research were:</p><p>· avg_vote: average rating submitted by IMDb users (1–10).</p><p>· votes: number of IMDb ratings submitted, which we treated as an indicator of <strong>engagement on IMDb</strong>, not total viewers.</p><p>· metascore: a critic-based score on a 0–100 scale.</p><p>· worlwide_gross_income: reported worldwide box-office gross (the source column really is spelled this way).</p><p>· budget, genre, duration, and year: potential explanations or useful contextual variables.</p><p>Unlike a list of only the top-rated films, this sample includes a broad range of IMDb ratings: from <strong>1.0 to 9.9</strong>. The mean rating is <strong>5.90</strong> and the median is <strong>6.1</strong>. That wider spread gives us a better starting point for comparing audience reception, although this is still a selected IMDb listing, not a random sample of every movie ever released.</p><h3>3. Cleaning the data before asking questions</h3><p>Our first step was to inspect column types, missing values, duplicate records, and suspicious entries. We found 0 repeated title IDs and 0 completely duplicate rows, so there was no reason to remove films as duplicates.</p><p>The more serious issue was missing data. <strong>Metascore is missing for 84.5% of films</strong>, while <strong>worldwide gross is missing for 63.9%</strong> and <strong>budget is missing for 72.4%</strong>. Removing every row with even one missing value would have discarded a large amount of useful information. Instead, we kept all movie records and created smaller subsets for analyses requiring critic scores or revenue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*z7UGFP27jpW70nQFOMDsww.png" /></figure><p>We also checked inconsistent formats. One movie, <strong>Bad Education</strong>, has TV Movie 2019 in its year field instead of a simple four-digit year; we extracted <strong>2019</strong> and preserved the original value for transparency. There were <strong>4,562</strong> entries in the publication-date field containing just a year.</p><p>The monetary columns needed particular care. Some budgets use different currencies, and a few worldwide gross values are not dollar-denominated. We extracted numeric amounts only from explicitly dollar-prefixed strings for our USD comparisons. That left <strong>30,955</strong> movies with usable USD worldwide gross and <strong>16,602</strong> with USD budgets. We did <strong>not</strong> pretend a budget recorded in rupees or pounds was already in dollars. Historical inflation adjustment was not attempted, which is a limitation when comparing different release periods.</p><p>Finally, we derived a release <strong>decade</strong> and separated comma-delimited genre labels for later comparisons. We retained all <strong>85,855</strong> original rows in the cleaned data; individual figures use only the rows with the values required for that question.</p><h3>4. What do movie ratings look like?</h3><p>Before comparing features, we plotted the distribution of IMDb ratings. The overall average is <strong>5.90</strong>. While the data contains both low and high scores, the most extreme ratings are uncommon compared with the middle of the distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*njKlKyzgAF9mJogb3dUsww.png" /></figure><p>We also noticed that the lowest number of IMDb votes in the dataset is <strong>99</strong>. This matters because films with very little engagement may not be represented. Any conclusion about “all movies” would therefore be stronger than our evidence allows.</p><h3>5. Does genre make a difference?</h3><p>We expected movie genres to show different patterns. Because films can carry several labels, we split multi-genre entries so that a film tagged Drama, Romance contributes to both genres. We then calculated the mean IMDb rating and number of movies in each category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*1RTj2r0fL9_glOvEJAFlrg.png" /></figure><p>Among genres with substantial representation, <strong>Biography</strong> averaged <strong>6.62</strong> across <strong>2,377</strong> movies, while <strong>Horror</strong> averaged <strong>4.83</strong> across <strong>9,557</strong>. <strong>History </strong>averaged <strong>6.54</strong>, and <strong>Sci-Fi</strong> averaged <strong>5.07</strong>.</p><p>These differences are interesting, but they do not mean a biography automatically becomes a better film than a horror movie. Genres have different audiences, release eras, and styles of participation. They also overlap, so these are not independent categories. Our final project could test whether selected differences persist after considering some of those other factors.</p><h3>6. Are more popular movies rated more highly?</h3><p>Our next question was whether popularity and quality describe the same movies. We used <strong>IMDb vote count</strong> as our available measure of engagement. Vote counts are extremely uneven: a few films attract enormous numbers of ratings while many have only hundreds. For clearer visualization, we plotted the number of votes on a logarithmic scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*8mZpY068lgOysOlJA6an_g.png" /></figure><p>Across all <strong>85,855</strong> films, the <strong>Spearman rank correlation</strong> between IMDb rating and vote count was <strong>0.282</strong>. This is a modest positive association: movies that receive more votes tend to be somewhat more highly rated, but vote count clearly does not determine a film’s rating.</p><p>We also repeated the comparison after restricting the dataset to films with at least <strong>1,000 votes</strong>. The association decreased to <strong>0.213</strong> across <strong>29,374 </strong>films. This sensitivity check shows that the strength of an observed relationship can depend on which movies are included. It is one reason not to over-interpret a single correlation value.</p><h3>7. Do critics and audiences agree?</h3><p>IMDb audience ratings and Metascores measure reception from different perspectives, so we wanted to see how closely they aligned. We used only the <strong>13,305</strong> movies with available Metascores and divided the critic score by ten to display it on the same numerical range as IMDb ratings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*4lMuvSZicPnuB92Qj_rRFg.png" /></figure><p>We found a <strong>Spearman correlation of 0.683</strong>, which was considerably stronger than the rating–votes relationship. In this subset, movies that critics rate more positively also tend to receive higher IMDb audience ratings.</p><p>This is one of our strongest preliminary observations. However, <strong>84.5%</strong> of the dataset has no Metascore, and the movies with critic scores may differ from those without them. We should not assume this exact relationship would hold for every film.</p><h3>8. Does a good rating translate into box-office money?</h3><p>We then turned to commercial performance. Worldwide gross is not the same as a movie’s profit, and a figure recorded in dollars decades ago is not directly comparable in purchasing power with today’s dollars. Still, it is a useful descriptive measure of reported earnings.</p><p>For this comparison, we used <strong>30,955</strong> movies with a reported USD worldwide gross. Because gross spans huge differences in scale, we plotted its logarithm against IMDb rating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*4TVbdSkSu1khgz_bcyiWsg.png" /></figure><p>The Spearman correlation between IMDb rating and reported worldwide gross was only <strong>0.129</strong>. A higher audience rating therefore did not correspond consistently to much greater revenue in this sample. This is descriptive evidence, not a claim that reviews have no effect on ticket sales.</p><p>When we restricted the sample to movies with at least <strong>1,000 IMDb votes</strong>, the correlation fell to <strong>0.052</strong>, based on <strong>18,268</strong> movies. That reinforces our caution about interpreting a single population-wide number.</p><p>We also compared vote count directly with reported worldwide gross:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*BoykiFvHbiMDur9OBOL9JA.png" /></figure><p>Here, the Spearman correlation was <strong>0.544</strong> across the same <strong>30,955</strong> gross-reporting movies. Vote count was more closely associated with reported revenue than rating itself was. This makes intuitive sense as a potential relationship between awareness, scale, and engagement, but it cannot establish which direction any influence runs. Popular blockbusters may simply attract more people to IMDb to rate them.</p><h3>9. A big limitation: which movies have earnings data?</h3><p>We checked whether financial and critic data was equally available across release periods. It was not. Only <strong>5.2%</strong> of movies released before 1980 had a usable USD worldwide gross, compared with <strong>56.5%</strong> for movies from 2000–2009 and <strong>51.5%</strong> for 2010–2020.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*IKcHn_iGctK3YSM4hg_7ow.png" /></figure><p>This is not just a cleaning inconvenience. It affects which movies enter the revenue analysis and may bias comparisons. We therefore chose to report sample sizes, keep incomplete rows for other analyses, and treat the financial results as findings about the <strong>gross-reporting subset</strong>, not the entire dataset.</p><h3>10. What we learned and where we go next</h3><p>At this checkpoint, three patterns stood out:</p><p>1. <strong>Critics and IMDb audiences broadly move together</strong> for movies with reported Metascores (Spearman ρ = <strong>0.683</strong>).</p><p>2. <strong>IMDb engagement and ratings are not interchangeable</strong> (rating–vote Spearman ρ = <strong>0.282</strong>).</p><p>3. <strong>Box office gross seems more closely tied to IMDb engagement than to audience rating</strong> within the movies that report USD grosses (ρ = <strong>0.544</strong> versus <strong>0.129</strong>).</p><p>So far, the answer to our opening question seems to be that <strong>movie success has several related but distinct dimensions</strong>. A movie can achieve wide engagement, critical appreciation, high audience scores, or large reported revenue without necessarily leading in all four.</p><p>We also discovered why thoughtful preparation matters: financial columns contain different currencies, critics’ scores are missing for most records, older movies are less likely to have gross figures, genre labels overlap, and our movie listing does not represent every film ever made. We will carry these limitations forward rather than treating charts as unquestionable facts.</p><p>For the final checkpoint, we plan to test selected relationships more formally and investigate whether variables available before a film’s release, such as genre, duration, and year, can help predict higher audience ratings. We will avoid using post-release votes and Metascores as predictors for a supposed pre-release model, because that would make the prediction unrealistic.</p><p>Ultimately, our project is not about identifying one magical formula for producing a hit movie. It is about asking more carefully <strong>what kind of success we mean</strong>, and what IMDb data can actually tell us about it.</p><p><strong>Source and methods:</strong> Public IMDb movies dataset shared through <a href="https://github.com/sahildit/IMDB-Movies-Extensive-Dataset-Analysis">IMDB-Movies-Extensive-Dataset-Analysis</a>, file IMDb movies.csv; analysis conducted in Python using Pandas, NumPy, Matplotlib, and Seaborn.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51684544dd7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>