{"action":"created","issue":{"url":"https://api.github.com/repos/spedygiorgio/markovchain/issues/13","labels_url":"https://api.github.com/repos/spedygiorgio/markovchain/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/spedygiorgio/markovchain/issues/13/comments","events_url":"https://api.github.com/repos/spedygiorgio/markovchain/issues/13/events","html_url":"https://github.com/spedygiorgio/markovchain/issues/13","id":86755590,"number":13,"title":"add markov chain logLikelihood slot in estimates","user":{"login":"spedygiorgio","id":825030,"avatar_url":"https://avatars.githubusercontent.com/u/825030?v=3","gravatar_id":"","url":"https://api.github.com/users/spedygiorgio","html_url":"https://github.com/spedygiorgio","followers_url":"https://api.github.com/users/spedygiorgio/followers","following_url":"https://api.github.com/users/spedygiorgio/following{/other_user}","gists_url":"https://api.github.com/users/spedygiorgio/gists{/gist_id}","starred_url":"https://api.github.com/users/spedygiorgio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spedygiorgio/subscriptions","organizations_url":"https://api.github.com/users/spedygiorgio/orgs","repos_url":"https://api.github.com/users/spedygiorgio/repos","events_url":"https://api.github.com/users/spedygiorgio/events{/privacy}","received_events_url":"https://api.github.com/users/spedygiorgio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spedygiorgio/markovchain/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"tskang","id":5221164,"avatar_url":"https://avatars.githubusercontent.com/u/5221164?v=3","gravatar_id":"","url":"https://api.github.com/users/tskang","html_url":"https://github.com/tskang","followers_url":"https://api.github.com/users/tskang/followers","following_url":"https://api.github.com/users/tskang/following{/other_user}","gists_url":"https://api.github.com/users/tskang/gists{/gist_id}","starred_url":"https://api.github.com/users/tskang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tskang/subscriptions","organizations_url":"https://api.github.com/users/tskang/orgs","repos_url":"https://api.github.com/users/tskang/repos","events_url":"https://api.github.com/users/tskang/events{/privacy}","received_events_url":"https://api.github.com/users/tskang/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-06-09T22:28:43Z","updated_at":"2015-06-12T23:14:45Z","closed_at":null,"body":"It would be useful to add a logLikelihood slot to the markovchainFit output list. The likelihood should be calculated by a hidden function receiving the original data and the estimated transition matrix, then retuned to the calling function. See http://stats.stackexchange.com/questions/47685/calculating-log-likelihood-for-given-mle-markov-chains for a formula"},"comment":{"url":"https://api.github.com/repos/spedygiorgio/markovchain/issues/comments/111639610","html_url":"https://github.com/spedygiorgio/markovchain/issues/13#issuecomment-111639610","issue_url":"https://api.github.com/repos/spedygiorgio/markovchain/issues/13","id":111639610,"user":{"login":"tskang","id":5221164,"avatar_url":"https://avatars.githubusercontent.com/u/5221164?v=3","gravatar_id":"","url":"https://api.github.com/users/tskang","html_url":"https://github.com/tskang","followers_url":"https://api.github.com/users/tskang/followers","following_url":"https://api.github.com/users/tskang/following{/other_user}","gists_url":"https://api.github.com/users/tskang/gists{/gist_id}","starred_url":"https://api.github.com/users/tskang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tskang/subscriptions","organizations_url":"https://api.github.com/users/tskang/orgs","repos_url":"https://api.github.com/users/tskang/repos","events_url":"https://api.github.com/users/tskang/events{/privacy}","received_events_url":"https://api.github.com/users/tskang/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T23:14:45Z","updated_at":"2015-06-12T23:14:45Z","body":"It's the same as I basically iterate over all the transitions. Also, it is cheaper than creating the frequency matrix from the computation perspective. "}}