- Hands-On Data Science with SQL Server 2017
- Marek Chmel Vladimír Mu?n?
- 226字
- 2021-06-10 19:13:53
Central tendency
There are three descriptive measures of central tendency—the mean, the median, and the mode, but SQL Server does not have a way to calculate anything other than the mean directly. The arithmetic mean, or simply the mean (there are more types of mean in the central tendency), is the sum of all measurements divided by the number of observations in the dataset. The median is the middle value that separates the higher half from the lower half of the dataset. The median and the mode are the only measures of the central tendency that can be used for ordinal data, in which values are ranked relative to one another but are not measured absolutely. The mode is the most frequent value in the dataset. This is the only central tendency measure that can be used with nominal data, which has purely qualitative category assignments. For looking into such values with SQL Server, we will either need to define our own assembly with a custom aggregate or use complex T-SQL constructs to bypass the missing statistical functions. Another option would be to use the Python code or the R code; the code can be running inside the SQL Server, and you can pass the result set as the argument to the Python code or the R code to work on the descriptive statistics.
- 大數(shù)據(jù)戰(zhàn)爭:人工智能時代不能不說的事
- 西門子S7-200 SMART PLC從入門到精通
- 計算機(jī)原理
- CSS全程指南
- 空間傳感器網(wǎng)絡(luò)復(fù)雜區(qū)域智能監(jiān)測技術(shù)
- Hands-On Cybersecurity with Blockchain
- Ceph:Designing and Implementing Scalable Storage Systems
- 大學(xué)C/C++語言程序設(shè)計基礎(chǔ)
- 網(wǎng)絡(luò)安全管理實踐
- Python:Data Analytics and Visualization
- LMMS:A Complete Guide to Dance Music Production Beginner's Guide
- 工業(yè)機(jī)器人力覺視覺控制高級應(yīng)用
- 和機(jī)器人一起進(jìn)化
- AMK伺服控制系統(tǒng)原理及應(yīng)用
- Puppet 3 Beginner’s Guide