Reader small image

You're reading from  R Statistics Cookbook

Product typeBook
Published inMar 2019
Reading LevelExpert
PublisherPackt
ISBN-139781789802566
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Francisco Juretig
Francisco Juretig
author image
Francisco Juretig

Francisco Juretig has worked for over a decade in a variety of industries such as retail, gambling and finance deploying data-science solutions. He has written several R packages, and is a frequent contributor to the open source community.
Read more about Francisco Juretig

Right arrow

An introductory hidden Markov model

So far in this book, we have worked with observable variables, such as prices or quantities. But what happens when we have an unobserved variable? Let's suppose that we observe the number of people that walk over a street that has an underground station. This variable can, in principle, be modeled as a Poisson random variable (since it is count data). The number of people walking over this street depends on many variables, among them whether the station is open or closed. Let's further assume that we don't observe whether the station is open or not. We want to estimate whether the station is open or not based on the number of people that we observe.

It's tempting to model the station status based on the amount of people walking, possibly using logistic regression or any other tool. The problem is that our dependent variable...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
R Statistics Cookbook
Published in: Mar 2019Publisher: PacktISBN-13: 9781789802566

Author (1)

author image
Francisco Juretig

Francisco Juretig has worked for over a decade in a variety of industries such as retail, gambling and finance deploying data-science solutions. He has written several R packages, and is a frequent contributor to the open source community.
Read more about Francisco Juretig