1 Star 0 Fork 0

观海/scitech

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
DiscreteRV.nb 3.90 KB
一键复制 编辑 原始数据 按行查看 历史
观海 提交于 2018-12-27 18:58 . no commit message
(************** Content-type: application/mathematica **************
CreatedBy='Mathematica 5.2'
Mathematica-Compatible Notebook
This notebook can be used with any Mathematica-compatible
application, such as Mathematica, MathReader or Publicon. The data
for the notebook starts with the line containing stars above.
To get the notebook into a Mathematica-compatible application, do
one of the following:
* Save the data starting with the line of stars above into a file
with a name ending in .nb, then open the file inside the
application;
* Copy the data starting with the line of stars above to the
clipboard, then use the Paste menu command inside the application.
Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode. Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).
NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing
the word CacheID, otherwise Mathematica-compatible applications may
try to use invalid cache data.
For more information on notebooks and Mathematica-compatible
applications, contact Wolfram Research:
web: http://www.wolfram.com
email: info@wolfram.com
phone: +1-217-398-0700 (U.S.)
Notebook reader applications are available free of charge from
Wolfram Research.
*******************************************************************)
(*CacheID: 232*)
(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[ 2792, 81]*)
(*NotebookOutlinePosition[ 3458, 104]*)
(* CellTagsIndexPosition[ 3414, 100]*)
(*WindowFrame->Normal*)
Notebook[{
Cell[BoxData[
\(\(Remove["\<`*\>"];\)\)], "Input"],
Cell[BoxData[{
\(\(EE[x_, p_] := x . p;\)\), "\[IndentingNewLine]",
\(\(VAR[x_,
p_] := \((x\ x)\) .
p - \((x . p)\)\^2;\)\), "\[IndentingNewLine]",
\(\(COV[x1_, x2_, p1_, p2_, p12_] :=
x1 . p12 . x2 - \((x1 . p1)\) \((x2 . p2)\);\)\)}], "Input"],
Cell[BoxData[{
\(\(x1 = {\(-2\), \(-1\), 0, 1, 2};\)\), "\[IndentingNewLine]",
\(p1 = {1, 1, 1, 1, 1}; \ p1 = p1/Total[p1];\), "\[IndentingNewLine]",
\(\(x2 = {\(-1\), 0, 1};\)\), "\[IndentingNewLine]",
\(p2 = {1, 1, 1}; \ p2 = p2/Total[p2];\), "\[IndentingNewLine]",
\(p12 = {\[IndentingNewLine]{1, 3, 2}, \[IndentingNewLine]{0, 1,
3}, \[IndentingNewLine]{2, 3, 1}, \[IndentingNewLine]{4, 2,
1}, \[IndentingNewLine]{2, 0, 0}\[IndentingNewLine]};
p12 = p12/Total[p12, 2];\)}], "Input"],
Cell[CellGroupData[{
Cell[BoxData[
\(COV[x1, x2, p1, p2, p12]\)], "Input"],
Cell[BoxData[
\(\(-\(12\/25\)\)\)], "Output"]
}, Open ]]
},
FrontEndVersion->"5.2 for Microsoft Windows",
ScreenRectangle->{{0, 1920}, {0, 983}},
WindowSize->{487, 740},
WindowMargins->{{-4, Automatic}, {Automatic, -4}},
ShowSelection->True
]
(*******************************************************************
Cached data follows. If you edit this Notebook file directly, not
using Mathematica, you must remove the line containing CacheID at
the top of the file. The cache data will then be recreated when
you save this file from within Mathematica.
*******************************************************************)
(*CellTagsOutline
CellTagsIndex->{}
*)
(*CellTagsIndex
CellTagsIndex->{}
*)
(*NotebookFileOutline
Notebook[{
Cell[1754, 51, 54, 1, 30, "Input"],
Cell[1811, 54, 292, 6, 90, "Input"],
Cell[2106, 62, 536, 8, 230, "Input"],
Cell[CellGroupData[{
Cell[2667, 74, 57, 1, 30, "Input"],
Cell[2727, 77, 49, 1, 42, "Output"]
}, Open ]]
}
]
*)
(*******************************************************************
End of Mathematica Notebook file.
*******************************************************************)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/infoagee/scitech.git
git@gitee.com:infoagee/scitech.git
infoagee
scitech
scitech
master

搜索帮助