2023-01-24 18:57:18 +01:00
|
|
|
|
|
|
|
#ifndef MLPP_GAUSS_MARKOV_CHECKER_H
|
|
|
|
#define MLPP_GAUSS_MARKOV_CHECKER_H
|
|
|
|
|
2023-01-23 21:13:26 +01:00
|
|
|
//
|
|
|
|
// GaussMarkovChecker.hpp
|
|
|
|
//
|
|
|
|
// Created by Marc Melikyan on 11/13/20.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2023-01-24 19:20:18 +01:00
|
|
|
|
2023-01-25 00:21:31 +01:00
|
|
|
class MLPPGaussMarkovChecker {
|
2023-01-24 19:00:54 +01:00
|
|
|
public:
|
|
|
|
void checkGMConditions(std::vector<double> eps);
|
|
|
|
|
|
|
|
// Independent, 3 Gauss-Markov Conditions
|
|
|
|
bool arithmeticMean(std::vector<double> eps); // 1) Arithmetic Mean of 0.
|
|
|
|
bool homoscedasticity(std::vector<double> eps); // 2) Homoscedasticity
|
|
|
|
bool exogeneity(std::vector<double> eps); // 3) Cov of any 2 non-equal eps values = 0.
|
|
|
|
private:
|
|
|
|
};
|
2023-01-24 19:20:18 +01:00
|
|
|
|
2023-01-23 21:13:26 +01:00
|
|
|
|
|
|
|
#endif /* GaussMarkovChecker_hpp */
|