Research Article
A Heuristic Model for Supporting Users’ Decision-Making in Privacy Disclosure for Recommendation
Algorithm 2
Calculation of correlation coefficient.
Input: Dataset of participants’ answer vectors | Output: Correlation coefficient matrix (CCM) | (1) for all vectors , where | (2) m number of participants // store the population | (3) if some values of ai are missing // make sure no values miss | (4) // calculate by approximating | (5) | (6) all values of Cai and plot // ready for coefficient calculation | (7) for each two points (i, Ca,i) and (j, Ca,j): | (8) calculate the tilt angle | (9) Set // results for low correlation | (10) Set // results for high correlation | (11) for all the values TAi,j// all results should be calculated | (12) if | (13) // adding low correlation results | (14) else if | (15) adding high correlation results |
|