This paper investigates the behavior of Particle Swarm Optimizer (PSO) using a theoretical approach, focusing on Markov chains and adaptive parameter selection. It highlights the importance of parameter choice for PSO's performance and proposes a method for parameter selection based on the stationary properties of Markov chains. The research aims to address common challenges in PSO such as local minima trapping and suboptimal convergence rates through theoretical insights.