the method of LSM is a backward method, at first,you simulate all possible paths according to the GBM model(if you assume the stock price follows the GBM),then consturct a regression from T-1 . So you can calculate the expected of continuing holding, then comparing with the immdeiately exercising value, you can justify whether it is optimal to execute early or not. repeating the procedure until 1