前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >数理统计|回归分析的概念

数理统计|回归分析的概念

作者头像
heidsoft
发布2022-01-17 16:21:21
5650
发布2022-01-17 16:21:21
举报

变量之间的关系可以分为两类

  • 确定性关系
  • 非确定性关系

若有变量x和y, 当变量x的值确定之后,变量y的值也随之确定,这种变量之间的关系是确定性关系

变量x和Y是有联系的,但是当x的值确定时Y的值却是不确定的。这种变量间的关系就是非确定性的关系,也称为相关关系

研究变量间相关关系的统计分析方法称为回归分析

x通常称为自变量,Y通常成为因变量响应变量。

当自变量x的值确定之后,因变量Y的值还不能完全确定,把Y看作随机变量。当x的值确定时,与x相对应的随机变量Y的值虽然不能完全确定,但Y的数学期望随之确定,这个数学期望应是x的函数,记作μ(x) , 称为Y关于x的回归函数。

Y=μ(x)+ ε(随机误差)

代码语言:javascript
复制
dataset = tfio.experimental.IODataset.from_prometheus(
      "coredns_dns_request_count_total", 5, endpoint="http://172.16.59.21:9090")


print("Dataset Spec:\n{}\n".format(dataset.element_spec))

print("CoreDNS Time Series:")
for (time, value) in dataset:
  # time is milli second, convert to data time:
  #time = datetime.fromtimestamp(time // 1000)
  print("{}: {}".format(time, value['coredns']['localhost:9153']['coredns_dns_request_count_total']))
代码语言:javascript
复制
Dataset Spec:
(TensorSpec(shape=(), dtype=tf.int64, name=None), {'coredns': {'localhost:9153': {'coredns_dns_request_count_total': TensorSpec(shape=(), dtype=tf.float64, name=None)}}})

CoreDNS Time Series:
8317695948674261788: 2.5e-323
2305843009213693952: 8.11115665425e-312
2305843009213693957: 1.4916681462400413e-154
2305843009213693952: 8.111157181676e-312

https://www.tensorflow.org/io/tutorials/prometheus

https://www.tabnine.com/blog/top-jupyterlab-extensions/?utm_term=&utm_campaign=&utm_source=adwords&utm_medium=ppc&hsa_acc=4311736126&hsa_cam=14854202152&hsa_grp=&hsa_ad=&hsa_src=x&hsa_tgt=&hsa_kw=&hsa_mt=&hsa_net=adwords&hsa_ver=3&gclid=CjwKCAiArOqOBhBmEiwAsgeLmSNKfEBC1-28BCMo191qR1ob9hYz25-6s2YIRHY6avjUPN5QJen5lBoCdBsQAvD_BwE

https://log-it.tech/2020/05/28/prometheus-metrics-to-pandas-data-frame/

https://ricardorocha.io/blog/prometheus-metrics-in-pandas/

http://www.fhdq.net/sx/12.html

https://github.com/AICoE/prometheus-data-science#ad-hist-summ

https://www.math.pku.edu.cn/teachers/lidf/course/fts/ftsnotes/html/_ftsnotes/fts-arma.html

https://www.statsmodels.org/stable/index.html

https://zhangxin.liumengyang.xyz/shi-jian-xu-lie-mo-xing-xue-xi/

https://blog.csdn.net/qq_33333002/article/details/105998201

https://mp.weixin.qq.com/s/dTEpaADo9gM8V62176GnuA

https://towardsdatascience.com/machine-learning-part-19-time-series-and-autoregressive-integrated-moving-average-model-arima-c1005347b0d7

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2022-01-09,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 云数智圈 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档