Viewing a single comment thread. View all comments

mikeholczer t1_j6agh1p wrote

14

kilopeter OP t1_j6b6t8c wrote

Yep. "A" is the most frequent letter at both the start and end of names in the dataset I used (girls born in 2021 in the USA).

2

mikeholczer t1_j6b7fim wrote

My point is your interpretation is flawed, because the most likely outcome of it is very far from the actual most likely name.

2

kilopeter OP t1_j6b9h0h wrote

Oh, absolutely: the fact that this Markov assumption yields nonsensical names shows that the sequence of letters in given names are not generated by a Markov process. (The next character depends very much on previous characters, not just the current one.)

But this visualization does accurately present the relative frequencies of character transitions in actual names. Using these frequencies to generate Markov chains of characters and calling the results names is a fun diversion whose results I found entertaining.

5

mikeholczer t1_j6b9was wrote

Yeah, I think the display of the data is interesting, I just think what you wrote about it is misleading.

−2

kilopeter OP t1_j6banxn wrote

Oh? What part? I specifically qualified my interpretation with "want to reflect typical between-letter patterns of US girl names."

That's the point of using this viz to generate new names: generating character strings with totally realistic letter-to-letter transition probabilities is not enough to yield plausible names, or names which already exist. The generated names are often bizarre or excessively long, yet their character transition probabilities exactly reflect that of the real names in the input dataset.

3

mikeholczer t1_j6bb50x wrote

If one follows your steps, the most common outcome is one letter and there has no between-letter patterns which clearly doesn’t match the between-letter patterns of the source data.

−2

kilopeter OP t1_j6bbmom wrote

It does if you include the placeholder "characters" for the start and end of each name! The most probable "name" A represents three tokens: [name start], A, [name end]. And if you generate many names using the transition matrix, you will indeed observe that the frequency of [name start] -> A and A -> [name end] matches the corresponding frequencies in the source data.

EDIT: on reflection, I agree with you. I should introduce the heatmap as a description of transition probabilities, but should avoid walking the reader through using the transition matrix to generate new "names." I should separate the topic of generating new names using the transition matrix under the (invalid) Markov assumption as a diversion. Thanks for pointing out the flaw in my explanation. I'll edit my top level comment when I have a chance!

2

globglogabgalabyeast t1_j6bwjuz wrote

Did you already edit it? Cause I never got the impression that you were implying this process would lead to realistic names

2

kilopeter OP t1_j6ea6zq wrote

Nah, I'm only just now getting a chance to edit my top-level comment. Thanks for throwing in your vote! I feel like I can reword the "interpretation" part better to avoid any possible misinterpretation.

1