Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. gettys = ExampleData[{"Text", "GettysburgAddress"}]
  2. Probability[
  3. x == {"t", "h", "e"} [Conditioned] y == {"t", "h"},
  4. {x [Distributed]
  5. EmpiricalDistribution[Partition[Characters@gettys, 3, 1]],
  6. y [Distributed] EmpiricalDistribution[Partition[Characters@gettys, 2, 1]]} ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement