Optimal Linear Glauber Model