Officers arrested Anderson near Barstow on Wednesday.
Investigators say Anderson is known by the family.
Officers were called to West Vassar just after 1 a.m. Wednesday. They found the mom and daughter with injuries.
The women were taken to the hospital and are expected to survive.
There's no word yet on a motive for the stabbing.