MATLAB Equivalent of Linregress in Python?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a vector and I want to find out the p-value of the data. In python, linregress(X,Y), gives one of the outputs as p-value. What is the MATLAB equivalent of the same?
0 Commenti
Risposte (1)
Star Strider
il 9 Ago 2020
2 Commenti
Star Strider
il 9 Ago 2020
I was under the impression that you actually had a matrix of two vectors (or two separate vectors) that would correspond to the ‘x’ and ‘y’ arguments that the linear regression function requires. You cannot do a regression on one vector. That is just how regression works.
If you want to use the t-statistic to find out if the mean of your vector is different from zero, use the ttest function. That will give you the p-value and a number of other statistics.
Vedere anche
Categorie
Scopri di più su Descriptive Statistics in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!