Partition estimation : theory and application