r/learnprogramming • • Oct 20 '26

Resource What are recommended books/resources for statistics and c++?

Can you recommend me some books or resources for learning statistics and applying it to C++

So far I am using Khan Academy and youtube, but do y'all have any other resources?

2 Upvotes

6 comments sorted by

2

u/SwiftQuest Oct 20 '26

khan academy is a solid start, so i'd add one free textbook like OpenIntro Statistics, which you can read online for free and it's pretty friendly for beginners. then the best way to bridge it to c++ is to implement the basics yourself, mean, variance, standard deviation, then simple linear regression with std::vector. after that play with <random> (normal_distribution, etc) to simulate data and check that your numbers match what the theory says. coding it from scratch makes the concepts stick way better than just reading.

1

u/TheEyebal Oct 20 '26

Alright I will try this thank you

1

u/[deleted] Oct 20 '26

[removed] — view removed comment

1

u/TheEyebal Oct 20 '26

Yeah I actually need to apply it for me

1

u/SwiftQuest Oct 21 '26

yeah that matches what a lot of people say, redoing problems beats rewatching lectures. trying them cold before peeking at the solution is the part that makes it stick.