In mathematics, in my recollection, the tilde is used for 1. Unary approximate number 2. Binary equivalence 3. Binary congruence/isomorphism
The last is more formally an equal sign with tilde on top: ≅. I think maybe just simplified for chalk boards where context makes it clear. Those are all akin to "similar" ... But they are all very different from what R does. "Depends on" is my description of R. I may have seen it elsewhere, but I don't know if there is a standard name for the symbol in R (other than 'tilde'). I really don't know of any other domain where this means dependent vs. independent variable. Statsmodels just borrows R because it shares users. On Sun, Feb 23, 2020, 11:13 PM Aaron Hall via Python-ideas < python-ideas@python.org> wrote: > Thanks for the feedback, David. Sources that demonstrate that "sim" is the > wrong semantic would be very much appreciated. > > I chose "sim" because it's the same name and usual top usual result for an > infixed tilde in LaTeX. > And note that there is an implied relationship between the two sides in > the context of a regression. Here are my sources: > > LaTeX definition: "∼ Similar, in a relation" > - https://latexref.xyz/Math-symbols.html#index-_005csim > > "depends on" isn't used in the R documentation for `~`, it says: > "Tilde Operator > Tilde is used to separate the left- and right-hand sides in a model > formula." > see: > - https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/tilde > > "An expression of the form `y ~ model` is interpreted as a specification > that the response `y` is modelled by a linear predictor specified > symbolically by `model`. Such a model consists of a series of terms > separated by `+` operators." > - > https://www.rdocumentation.org/packages/stats/versions/3.6.2/topics/formula > > My main goal, here, again, is to open up the language to make, what I have > encountered in multiple domains, `object1 ~ object2`, possible in Python. > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/VJDKNXIVWEEI4RE4XFINTBPYOYNYDROI/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/LTIB2M6AHQKEFI6WVMH7XB62Z2KIN5K3/ Code of Conduct: http://python.org/psf/codeofconduct/