| Algorithm 4: Estimating Data Truthfulness |
| [Service Provider receives a data submission ] //Evaluate data truthfulness for each category of measurement. foreach in //Check if the measurement value for this category is within the limits set by the service provider. if < or > then = false //If not within the limits, set the validation status to false and exit the algorithm. return end if Read data for //Read the data for this category of measurement. Get from ’s //Compute the height of the dataset’s PDF. = //Compute the Log Likelihood Function. //Use initial estimates for the mean and standard deviation. Use initial estimates and //Use MLE to estimate the two parameters (mean and standard deviation) for which the normal //distribution best describes the data. Compute and by applying using , and //Read the standard deviation factor for this measurement category, compute the scaled standard //deviation setting and set the threshold limits. Read = − + //Check if the measurement value is within the threshold limits. if < or > then = false//If not within the threshold limits, set the validation status to false and exit the algorithm. return end if end foreach = true//If the loop has finished without exiting the algorithm, the data submission is a valid one. |