Why does boxcox give a vector of identical values?

4 vues (au cours des 30 derniers jours)
Masoud
Masoud le 6 Fév 2017
Modifié(e) : Carl le 8 Fév 2017
I use boxcox for a positive vector with the size of 160711. I get Lambda=1.2500e-04, and a vector of transformed data, whose all elements are the same and equal to 2.5956757119. Could someone help me understand why I get such results? I have attached the data, and I use following commands:
[NewData,L]=boxcox(Data);

Réponse acceptée

Carl
Carl le 8 Fév 2017
Modifié(e) : Carl le 8 Fév 2017
See the documentation for boxcox here:
It states that the data vector must be positive and specified as a column data vector. So you simply need to transpose your current Data vector:
Data = Data';
Now calling boxcox on it should get the right results!

Plus de réponses (0)

Catégories

En savoir plus sur Animation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by