If you want stats I highly recommend Statistical Inference by Casella & Berger -- it's extremely dry but so many stats books out there try to "make it easy" but the simplification means that you can't actually grok what's really going on. HOWEVER if you want to actually apply anything in this book you'll need to grab something more practical as well. Going through an applied stats book after having done SI is like having superpowers.
Anyone that says “it’s just a calculus book; it’s not good for introductory real analysis” is invited to go solve every problem in, for example, the chapter which defines integration, and compare the difficulty with problems in “traditional” analysis books.
Spivak at least has the nice property that it doesn't assume you know much.
I constantly assert that I'd have actually been successful with mathematics throughout school if I were able apply it in code (which was not a thing in my educational environment); not with my broken brain where I fuck up numbers on paper and use my fingers for arithmetic.
https://www.manning.com/books/math-for-programmers
There is also the coding based Linear Algebra course that is available online (there's an accompanying print book).
And somebody who posts here on HN recently published a book with a title something like "Mathematics for Computer Programmers" or something to that effect. I forget the username and the exact title though. If you search around you can probably find it.
Edit: here's that last one. A Programmer's Introduction to Mathematics
http://billsix.github.io/modelviewprojection/intro.html
Most of it is done but I’m updating the content in web form weekly
This is the second time today I'm recommending Knuth's "The Art of Computer Programming". It really is a math book, and it includes answers to ALL the exercises. For example, the last 150 pages of Volume 1 are solutions to the exercises.
However, if your goal is to learn mathematics for the sake of art, I recommend Kolmogorov's Elements of the Theory of Functions and Functional Analysis.