SQL 筆記

  SELECT :指定要檢索的欄位(例如 name, age)。 FROM :指定資料來源的表格。 WHERE :用於過濾符合條件的資料(例如 age > 18)。 ORDER BY :用於排序結果(例如 ORDER BY age DESC) WHERE column_name BETWEEN value1 AND value2; 說明 value1 和 value2 是範圍的上下界(包含)。 BETWEEN 相當於 >= value1 AND <= value2。 如果要排除範圍內的值,可以使用 NOT BETWEEN。 INNER JOIN 表格2 ON 表格1.欄位 = 表格2.欄位; INNER JOIN:僅返回兩個表格中匹配的記錄,若某記錄在任一表格中沒有對應匹配,則不會出現在結果中。

(統計) 求累積機率密度函數

 $X,r.v.$

 $p.d.f.$

$$f(x)=\left\{ \begin{array}{l}\cfrac{2x}{21} &, 0\leq x\leq 3 \\ \cfrac{1}{2}-\cfrac{x}{14}  &,  3\leq x\leq 7 \\ 0 &, otherwise \end{array}\right.$$

求  c.d.f


(1).

$if $ $0\leq x\leq 3,$

$F(x)=0+\displaystyle\int_0^x\cfrac{2t}{21} dt=\left[\cfrac{t^2}{21}\right]^x_0=\cfrac{x^2}{21}$


$if $ $3\le x\leq 7,$

$F(x)=0+\displaystyle\int_0^3\cfrac{2t}{21} dt+\displaystyle\int_3^x\cfrac{1}{2}-\cfrac{t}{14} dt=\cfrac{-3}{4}+\cfrac{1}{2}x-\cfrac{1}{28}x^2$


$$c.d.f.\quad F(x)=\left\{ \begin{array}{l}0 &, x\lt0 \\ \cfrac{x^2}{21} &,  0\leq x\leq 3 \\  \cfrac{-3}{4}+\cfrac{1}{2}x-\cfrac{1}{28}x^2&, 3\le x\leq 7\\1 &, x\gt 7  \end{array}\right.$$






留言

這個網誌中的熱門文章

國產機車馬力表 2019

國產機車馬力表 2018

國產機車馬力表 2020