This Repo required for Asac labs class 2
In Python, special methods are a set of predefined methods you can use to enrich your classes. They are easy to recognize because they start and end with double underscores, for example init or str.
These “dunders” or “special methods” in Python are also sometimes called “magic methods.
Dunder methods let you emulate the behavior of built-in types
Object Initialization: init :
repr : The “official” string representation of an object. This is how you would make an object of the class. The goal of__repr__is to be unambiguous.
str: The “informal” or nicely printable string representation of an object. This is for the enduser.
Callable Python Objects: call : You can make an object callable like a regular function by adding the call dunder method
Probability is the branch of mathematics concerning numerical descriptions of how likely an event is to occur, or how likely it is that a proposition is true.
The probability of an event is a number between 0 and 1, where, roughly speaking, 0 indicates impossibility of the event and 1 indicates certainty.
At the most basic level, probability seeks to answer the question, “What is the chance of an event happening?” An event is some outcome of interest. To calculate the chance of an event happening, we also need to consider all the other events that can occur.
The quintessential representation of probability is the humble coin toss. In a coin toss the only events that can happen are:
These two events form the sample space, the set of all possible events that can happen. To calculate the probability of an event occurring, we count how many times are event of interest can occur (say flipping heads) and dividing it by the sample space.
We started with descriptive statistics and then connected them to probability. From probability, we developed a way to quantitatively show if two groups come from the same distribution. In this case, we compared two wine recommendations and found that they most likely do not come from the same score distribution. In other words, one wine type is most likely better than the other one.
Statistics doesn’t have to be a field relegated to just statisticians. As a data scientist, having an intuitive understanding on common statistical measures represent will give you an edge on developing your own theories and the ability to subsequently test these theories.
We barely scratched the surface of inferential statistics here, but the same general ideas here will help guide your intuition in your statistical journey.
Our article discussed the advantages of the normal distribution, but statisticians have also developed techniques to adjust for distributions that aren’t normal.