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.
|
|
|
|
//
|
|
|
|
|
2023-01-27 13:01:16 +01:00
|
|
|
#include "core/math/math_defs.h"
|
|
|
|
|
2023-01-23 21:13:26 +01:00
|
|
|
#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:
|
2023-01-27 13:01:16 +01:00
|
|
|
void checkGMConditions(std::vector<real_t> eps);
|
2023-01-24 19:00:54 +01:00
|
|
|
|
|
|
|
// Independent, 3 Gauss-Markov Conditions
|
2023-01-27 13:01:16 +01:00
|
|
|
bool arithmeticMean(std::vector<real_t> eps); // 1) Arithmetic Mean of 0.
|
|
|
|
bool homoscedasticity(std::vector<real_t> eps); // 2) Homoscedasticity
|
|
|
|
bool exogeneity(std::vector<real_t> eps); // 3) Cov of any 2 non-equal eps values = 0.
|
2023-01-24 19:00:54 +01:00
|
|
|
private:
|
|
|
|
};
|
2023-01-24 19:20:18 +01:00
|
|
|
|
2023-01-23 21:13:26 +01:00
|
|
|
|
|
|
|
#endif /* GaussMarkovChecker_hpp */
|