Regression with 15000 rows and 50 variables

2 views (last 30 days)
I have a dataset with 15000 entries. I like to run regression with 50 independent variables. Is it realistic that a PC (Bench 0.42, 0.31, 0.36, 0.45, 0.42, 0.33) can handle it?

Accepted Answer

John D'Errico
John D'Errico on 5 Dec 2020
Edited: John D'Errico on 5 Dec 2020
Trivial. Tiny fractions of a second.
I assume that you mean 50 INDEPENDENT variables, as you have not provided sufficient information otherwise.
A = randn(15000,50);b = randn(15000,1);
timeit(@() A\b)
ans =
0.0058952493235
So 0.006 seconds. Not fast enough? Sigh. And it looks like your computer is faster than mine on the bench figures.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!