Hi Pratyasha,
One of the good starting point for this to go through the demo video: SAP hybris Marketing Predictive Segmentation - YouTube to see how it works.
For the behind the scenes configuration, you can download hybris Marketing RDS and look into the scope item where it comes with step by step config guides : https://service.sap.com/rds-ymkt
On how to load the RDS is something I have shown it here: How to download SAP hybris Marketing Rapid Deployment Solution - YouTube
Please note that the out of the box buying propensity model relies on SAP CRM as a data source.
Hope this helps!!
Thanks
-Bharath