Smartphone Price Drivers
A Kaggle smartphone dataset published as "cleaned" turned out to be one-third duplicates with invented specs. Power Query audits and fixes it, then an Excel multiple regression (LINEST) measures what each spec adds to price and powers a price estimator.

The problem
The Kaggle Mobile Price Prediction dataset ships a cleaned_data.csv of Indian smartphone listings: rating, RAM, storage, screen size, cameras, battery and price. The obvious next step is to model price. But “cleaned” is a claim, not a fact, so I audited the file first.
Data quality audit (Power Query)
- 264 exact duplicate rows (33%) removed.
- A clear price gap. Only 33 of 543 phones are priced between ₹2,000 and ₹7,000, so phones under ₹5,000 are feature phones.
- 341 of those 343 feature phones had specs that were filled in, mostly 6 GB RAM with a 48 or 64 MP camera on phones costing ₹600-1,500. That is what you get when missing values are filled with the most common value. They are kept apart, not modelled.
- Screen size of 44 inches (7 rows) fixed to 4.4.
- Impossible values excluded from the model:
- RAM of 0 (2 rows)
- storage sizes that don’t exist, such as 25, 35 or 51 GB (35 rows)
- screens under 3 inches (6 rows)
- Every row keeps its source line number and an Issues column, so each decision can be traced back to the raw file.

How it works
Regression: LINEST fits ln(price) on seven specs for 197 clean smartphones:
- RAM
- storage, entered as log2 so its effect is per doubling
- screen
- battery
- main camera
- selfie camera
- rating
The workbook turns the raw output into readable effects (EXP(coefficient) − 1) with standard errors, t-statistics and a “Reliable?” flag for |t| ≥ 2. Simple correlations sit alongside, to show how one-variable views can mislead.
Diagnostics: predicted price and gap are added as formula columns beside the query table, with an actual-vs-predicted chart on log scales and a list of the phones furthest from the model.
Price estimator: enter a phone’s specs to get an estimated price, a typical range (± one standard error) and a warning if the specs are outside the data range. Below it, a FILTER + SORTBY table lists real phones with the same RAM and storage.

Key insights
- RAM drives price: each extra GB adds about 17.5% (t = 7.5), holding the other specs fixed.
- Rating matters: each 0.1 star is worth about 6.7%, and the selfie camera adds about 3% per megapixel.
- Main camera megapixels add nothing measurable (−0.2%, not significant), despite being the headline spec in adverts.
- Bigger batteries go with lower prices (−12% per 1,000 mAh). That reflects budget models with large batteries, not batteries reducing value.
- The model explains 65% of price variation (R² 0.65). The largest misses, such as a 3 GB / 32 GB phone listed at ₹103,000, look like data errors worth checking at source.
Checking it
I recalculated every cleaning count, all eight regression coefficients, R² and the standard error independently in Python. All of them matched LINEST exactly.