# median

## median相关知识

• Mean vs Median
R day 2: I was working on a dataset of Airbnb in New York City from Kaggle, when i run the summary function for the price variable in R, i noticed there&#039;s a strong difference between Mean and Median of the variable. summary(ab\$price) Min. 1st Qu. Median Mean 3rd Qu. Max. 0.0 69.0 106.0 152.7 175.0 10000.0 In this case, which variable is more persuasive? Mean or Median. In order to answe
• javascript 数组 随手记
创建随机数组 function compare(){ return Math.random() - 0.5; } var num = [1,2,3,4,5,6]; console.log(num.sort(compare)); 求中位数 let values = [2, 56, 3, 41, 0, 4, 100, 23]; values.sort((a, b) =&gt; a - b); let lowMiddle = Math.floor((values.length - 1) / 2); let highMiddle = Math.ceil((values.length - 1) / 2); let median = (values[lowMiddle] + values[highMiddle]) / 2; console.log(median);
• SAS Proc Means
SAS Day 27: Proc Means We use Statistical summary to demonstrate the mean, median, max, min, Q1, Q3..  In SAS we can either use Proc Means or Proc Univariate to achieve the goals. Today we will introduce how to generate statistical summary using Proc Means. Basic Syntax: proc means data= dummy noprint; var age; /*Any continuous variable: age, weight, height*/ where &amp;cond; /*Subset the populat
• SAS Box Plot
SAS Day 33: Box Plot Definition: Box Plot or Whisker plot displays the distribution of 5-number summary of a dataset: minimum, maximum, q1, q3, and Median.  Interpreting quartiles: The 5-number summary approximately divides the data into 4 sections that each containing 25% of the data. Explore a little more If we want to look at the Outliers, we define the points below q1- 1.5(q3-q1) and q3+