Research Article

A Probabilistic Approach for Missing Data Imputation

Algorithm 2

Probability calculation.
(1)functionPROBABILITIES ()
(2)   ⊳ This function calculates the probability of a combination within the dataset
(3)  Pass In:
(4)  
(5)  for each class of target attribute do
(6)   for each combination in do
(7)    
(8)    
(9)    for each row in do
(10)     if has combination then
(11)      
(12)      if has target class value then
(13)       
(14)      end if
(15)     end if
(16)    end for
(17)    
(18)    
(19)   end for
(20)  end for
(21)  Pass Out:
(22)end function