• ## Python Bayesian regression analysis of housing affordability data set

Time：2021-8-26

Original link:http://tecdat.cn/?p=11664  I want to study how to use pymc3 for linear regression within the Bayesian framework. Infer from the knowledge learned from the data. What is the Bayesian rule? In essence, we must combine what we already know with the facts of the world. Here is an example. Assuming the existence of this rare […]

• ## Extension data tecdat: R language Econometrics: application of dummy variables (dummy variables) in linear regression model

Time：2021-8-8

Original link:http://tecdat.cn/?p=22805  Why do I need dummy variables? Most data can be measured by numbers, such as height and weight. However, variables such as gender, season and location cannot be measured numerically. Instead, we use dummy variables to measure them. Example: Gender Let’s assume that the effect of X on y is different between men […]

• ## R language Stan for Bayesian reasoning analysis

Time：2021-4-23

Link to the original text:http://tecdat.cn/?p=6252 Stan of R Stan can be run from many statistical packages. So far, I’ve been running Stan from R. Simple linear regression The first step is to document the Stan model. This contains a file linreg.stan ： data { int N; vector[N] x; vector[N] y; } model { y ~ […]

• ## Eight queens problem — recursive backtracking

Time：2021-1-30

1. Eight queens Put eight queens on the 8 × 8 chessboard so that they can’t attack each other, that is, any two Queens can’t be in the same row, the same column or the same diagonal line. How many kinds of pendulum are there. 2. Ideas This problem is very suitable to be solved […]

• ## Array of algorithms — the maximum number of points in a common line

Time：2020-11-20

The maximum number of points on a line difficultydifficulty Given a two-dimensional plane, there are n points on the plane, find the maximum number of points on the same line. Example 1:Input: [[1,1],[2,2],[3,3]]Output: 3Explanation: Example 2:Input: [[1,1],[3,2],[5,3],[4,1],[2,3],[1,4]]Output: 4Explanation: thinking First, you need to make sure that two points are on a straight line – that […]

• ## JS + CSS3 to achieve image slider effect

Time：2020-7-8

effect Analyzing the animation can be divided into two steps: Add an animation class when the mouse moves in or out Realize the animation class and move in and out animation Picture waterfall flow layout can refer to Vue handwritten picture waterfall flow component (with source code) HTML and CSS layout The layout is relatively […]

• ## Canvas simple line animation

Time：2020-3-13

Introduction: the simple line animation of canvas animation introduction series. Although it’s simple, there are quite a lot of wired animation application scenes, so I made a small demo, which is all in one. Step1: draw points Create tags first<canvas id=”canvas” width=”400″ height=”400″></canvas>Set the coordinates of several points const points = [ [200, 100], // […]

• ## Basic theory calculus

Time：2020-2-13

limit limit Slope The slope is positive and negative: The slope is a positive number, indicating that the original function is positively correlated with the independent variable, On the contrary, the original function is negatively correlated with the independent variable. The positive and negative slope can be used as a condition to judge the extreme […]