Linear regression

Linear regression is a simple technique used to find a relationship between a target variable and one or more input variables. It helps us predict the target variable based on the input variables. In simple terms, it's like drawing a straight line that best fits the data points. This method is widely used for forecasting trends and understanding how variables are connected.

Play around with interactive example. Click on chart to add new data point or press the button to reset all data points on chart.

π approximation

Monte Carlo method is a technique that uses random sampling to approximate numerical solutions to complex problems. In the case of approximating the value of pi, we use this method by simulating random points within a square, and analyzing how many of these points fall within a circle inscribed in the square.

Try increasing or decreasing number of samples using slider below. You can also generate completely new set of samples.

π4insideall=4010.000\pi \approx 4 * \frac{inside}{all} = 4 * \frac{0}{1} \approx 0.000

Trigonometry

Trigonometry is a branch of mathematics that deals with the relationships between the angles and sides of triangles. In right triangles, trigonometry focuses on the ratios between the lengths of the sides and the angles.

Try moving triangle verticies to see how this affects different trigonometric functions.

sinα=bc=0.6000.000Infinity\sin \alpha = \frac{b}{c} = \frac{0.600}{0.000} \approx Infinity
cosα=ac=0.6000.000Infinity\cos \alpha = \frac{a}{c} = \frac{0.600}{0.000} \approx Infinity
tanα=ab=0.6000.6001.000\tan \alpha = \frac{a}{b} = \frac{0.600}{0.600} \approx 1.000