With the development in the 5G, Software Defined Networking(SDN), Network Function Virtualization(NFV), which are the cornerstones of the 5G, are being developed as well. One of the biggest development of 5G is, dense of Machine-to-Machine (M2M) communication is excessively increased compared to older generations. Therefore, monitoring of these machines (or user equipment) will also become critical. Various Network Functions (NFs) have been given specific tasks so that this monitoring and other critical tasks can be done with the NFV innovation in 5G. Network Data Analytics Function (NWDAF), one of these functions, is responsible for creating analytics (i.e., statistics or predictions) by collecting data from other Network Functions. In particular, in order to generate predictions, it will be possible to use Machine Learning (ML) Models and Artificial Intelligence (AI) for the operations specified within the NWDAF. In this study, next possible cell for a User Equipment is predicted by using Markov Chain with novel loop-based approach.