US Mortgage rates..helps

Someone knows how are calculated the US mortgage rates? In addition, I dont understand why the 5-year mortgage rate can change by 50bps day to day. Which variables affect those rates? Is better to take a 30-year fixed mortgage or a 15-year Adjustable? Please advice