Salary: DS vs SWE
I've noticed in levels.fyi that, ON AVERAGE, senior level Software engineers have much higher compensation (salary + stock + bonus) than equivalent data scientist with similar seniority level.
For example, as noted in the End of Year Pay Report 2021, staff engineers (IV) are racking up more than half a million dollars, on average, in major tech companies. https://www.levels.fyi/2021/?level=Senior%20Engineer%20(III)
Compare that to senior-level data scientist, it's more anomalous than usual to see similar compensation (as noted by reports from other organizations like Harnham).
Is this trend true, or am I making this up: Do senior level SWEs make more, on average, at major tech companies (let's say at FAANG) than DSs with similar number of year of experience? The question, of course, assumes that we'd be accounting for other variables like city, gender, company, etc..