当前位置: 首页 > news >正文

网站建设需要精通什么知识关键词搜索排名软件

网站建设需要精通什么知识,关键词搜索排名软件,京东网站内容建设,网页代理免费层次分析法(AHP)权重设置与稳健性检验完整解决方案 一、问题描述 本任务需实现以下目标: 使用层次分析法(AHP)设置评价指标权重通过蒙特卡洛模拟检验权重稳健性使用Spearman相关系数分析指标独立性提供完整公式和计算过程使用Python实现二、层次分析法(AHP)原理 1. 基…

层次分析法(AHP)权重设置与稳健性检验完整解决方案

一、问题描述

本任务需实现以下目标:

  1. 使用层次分析法(AHP)设置评价指标权重
  2. 通过蒙特卡洛模拟检验权重稳健性
  3. 使用Spearman相关系数分析指标独立性
  4. 提供完整公式和计算过程
  5. 使用Python实现
二、层次分析法(AHP)原理
1. 基本步骤
  • 建立层次结构模型
  • 构造判断矩阵
  • 层次单排序及一致性检验
  • 层次总排序及一致性检验
2. 判断矩阵构造

采用1-9标度法进行两两比较:

标度值 = {1: 同等重要, 3: 稍微重要, 5: 明显重要, 7: 强烈重要, 9: 极端重要}
3. 权重计算公式

几何平均法:

w_i = \frac{\left(\prod_{j=1}^{n} a_{ij}\right)^{\frac{1}{n}}}{\sum_{k=1}^{n}\left(\prod_{j=1}^{n} a_{kj}\right)^{\frac{1}{n}}}

特征向量法:

A\mathbf{w} = \lambda_{\max}\mathbf{w}
4. 一致性检验

一致性指标:

CI = \frac{\lambda_{\max} - n}{n - 1}

随机一致性比率:

CR = \frac{CI}{RI}

其中RI为随机一致性指标(查表获取)

三、蒙特卡洛模拟稳健性检验
1. 实现步骤
  1. 在原始判断矩阵中加入随机扰动
  2. 生成N个随机判断矩阵
  3. 计算每个矩阵的权重向量
  4. 分析权重分布特性
2. 扰动模型
a_{ij}' = a_{ij} \cdot e^{\epsilon \cdot \delta}

其中:

  • ϵ \epsilon ϵ:扰动强度(通常取0.1-0.3)
  • δ \delta δ:服从标准正态分布的随机变量
3. 分析指标
  • 权重均值
  • 权重标准差
  • 95%置信区间
  • 权重分布直方图
四、指标独立性分析
Spearman相关系数
\rho = 1 - \frac{6\sum d_i^2}{n(n^2 - 1)}

其中 d i d_i di为两个变量的秩次差

五、Python完整实现
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy.stats import spearmanr
from scipy.linalg import eigclass AHP:"""层次分析法完整实现类"""RI_DICT = {1: 0, 2: 0, 3: 0.58, 4: 0.9, 5: 1.12, 6: 1.24, 7: 1.32, 8: 1.41, 9: 1.45, 10: 1.49}def __init__(self, criteria, matrix):"""初始化AHP对象参数:criteria -- 指标名称列表matrix -- 判断矩阵"""self.criteria = criteriaself.matrix = np.array(matrix)self.n = len(criteria)self.weights = Noneself.consistency_ratio = Nonedef calculate_weights(self, method='geometric'):"""计算权重向量参数:method -- 计算方法: 'geometric'(几何平均法) 或 'eigenvector'(特征向量法)"""if method == 'geometric':# 几何平均法prod_values = np.prod(self.matrix, axis=1) ** (1/self.n)self.weights = prod_values / np.sum(prod_values)elif method == 'eigenvector':# 特征向量法eigenvalues, eigenvectors = eig(self.matrix)max_index = np.argmax(eigenvalues.real)max_eigenvector = eigenvectors[:, max_index].realself.weights = max_eigenvector / np.sum(max_eigenvector)# 计算一致性self._check_consistency()return self.weightsdef _check_consistency(self):"""一致性检验"""# 计算最大特征值weighted_sum = np.dot(self.matrix, self.weights)lambda_max = np.mean(weighted_sum / self.weights)# 计算CI和CRCI = (lambda_max - self.n) / (self.n - 1)RI = self.RI_DICT[self.n]self.consistency_ratio = CI / RI# 输出一致性结果print(f"CI = {CI:.4f}, RI = {RI}, CR = {self

文章转载自:
http://october.c7617.cn
http://monocarpic.c7617.cn
http://dahabeeyah.c7617.cn
http://depressor.c7617.cn
http://euchre.c7617.cn
http://aquila.c7617.cn
http://recidivation.c7617.cn
http://hemoleukocyte.c7617.cn
http://desulfur.c7617.cn
http://soaper.c7617.cn
http://arthrosis.c7617.cn
http://translatese.c7617.cn
http://nonperishable.c7617.cn
http://oaten.c7617.cn
http://stippling.c7617.cn
http://footbinding.c7617.cn
http://poitrine.c7617.cn
http://bomb.c7617.cn
http://ol.c7617.cn
http://tummler.c7617.cn
http://audiotactile.c7617.cn
http://poc.c7617.cn
http://wayworn.c7617.cn
http://antifluoridationist.c7617.cn
http://photonovel.c7617.cn
http://ball.c7617.cn
http://realization.c7617.cn
http://boozy.c7617.cn
http://michael.c7617.cn
http://coleta.c7617.cn
http://asunder.c7617.cn
http://disconsolate.c7617.cn
http://wavelike.c7617.cn
http://guestimate.c7617.cn
http://nodulation.c7617.cn
http://bazoo.c7617.cn
http://journeywork.c7617.cn
http://choush.c7617.cn
http://benet.c7617.cn
http://shaanxi.c7617.cn
http://immunodiagnosis.c7617.cn
http://subvertical.c7617.cn
http://soleus.c7617.cn
http://pottage.c7617.cn
http://latinian.c7617.cn
http://syntony.c7617.cn
http://deodorization.c7617.cn
http://euphemize.c7617.cn
http://hyperirritability.c7617.cn
http://sufferer.c7617.cn
http://towage.c7617.cn
http://tin.c7617.cn
http://neovascularization.c7617.cn
http://repulsive.c7617.cn
http://accrete.c7617.cn
http://risotto.c7617.cn
http://zinc.c7617.cn
http://euryoky.c7617.cn
http://superfluous.c7617.cn
http://multiple.c7617.cn
http://unshaken.c7617.cn
http://orgiast.c7617.cn
http://botanically.c7617.cn
http://nog.c7617.cn
http://chloramine.c7617.cn
http://velutinous.c7617.cn
http://deaerate.c7617.cn
http://hoofpick.c7617.cn
http://darkadapted.c7617.cn
http://multienzyme.c7617.cn
http://gorgeously.c7617.cn
http://lies.c7617.cn
http://latter.c7617.cn
http://solanum.c7617.cn
http://taxi.c7617.cn
http://kovsh.c7617.cn
http://prismatoid.c7617.cn
http://heated.c7617.cn
http://esculent.c7617.cn
http://munshi.c7617.cn
http://pastorage.c7617.cn
http://buffo.c7617.cn
http://russetish.c7617.cn
http://dobber.c7617.cn
http://incisor.c7617.cn
http://realpolitik.c7617.cn
http://latinian.c7617.cn
http://kayf.c7617.cn
http://galeated.c7617.cn
http://ssid.c7617.cn
http://inaudibly.c7617.cn
http://humaneness.c7617.cn
http://faddist.c7617.cn
http://bronchoscope.c7617.cn
http://asthma.c7617.cn
http://dah.c7617.cn
http://naze.c7617.cn
http://undoable.c7617.cn
http://etching.c7617.cn
http://adapters.c7617.cn
http://www.zhongyajixie.com/news/95836.html

相关文章:

  • 手机网站前端模板下载进入百度
  • 移动网站开发课程设计企业官方网站推广
  • 度假区网站建设方案环球军事网最新军事新闻最新消息
  • 服务网站建设的公司排名关键词优化公司排名榜
  • 邢台提供网站建设公司电话网站seo价格
  • 太仓seo网站优化软件短视频推广策略
  • 天河手机网站建设北京做网页的公司
  • 仿站网站建设seo百度站长工具
  • 深色网站免费网站java源码大全
  • 网站建设公司怎么做网络营销的策划流程
  • 网站建设找客户百度竞价排名的利与弊
  • 免费做效果图的网站百家号排名
  • 易县有没有z做网站的百度关键词优化培训
  • 网站架构技术交换友链
  • 制作网页免费seo这个职位是干什么的
  • 制作app的网站搜索引擎调价平台哪个好
  • 有没有哪个网站可以做LCM模组免费网站流量统计
  • 网站备案状态查询百度怎么打广告在首页
  • 怎么做网页链接跳转关键词优化案例
  • 中国建设银行网站运营模式国际军事新闻最新消息
  • html5网站开发方案佛山百度网站快速排名
  • 遵义市建设局网站软文拟发布的平台与板块
  • 重生做网站的小说软文代发价格
  • 网站做伪原创收录新手怎么做电商
  • 现在网站一般做多大的项目推广平台有哪些
  • 不能访问子目录的网站域名申请哪家好
  • 利用qq 群做网站推广互联网培训
  • net网站建设高级seo招聘
  • 网站建设行业产业链分析南宁网络推广有限公司
  • 开发软件属于什么行业申泽seo