显著性分析

选择图在这里插入图片描述

为什么要分Non-parametric & parametric 方法

为了找到更符合数据的分析方法。每个方法有自己的假设,如果违背了结果会不精准。
Sign Test 是一个可以用于任何数据分布情况的pairwise 方法。
检查normality:
Sample 数量 < 50,适用 Shapiro-Wilk,Sample 数量 >= 50,适用Kolmogorov-Smirnov

Within subject Vs. Between subjects

在这里插入图片描述

为什么要用post-hoc方法

历史遗留问题:LSD是当年可以和ANOVA搭配使用的两两比较方法,并且需要ANOVA的F test
• 所以称这样从多个比较里进行两两比较的为post hoc
• 对于parametric 的 ANOVA 或者 non-parametric 的 Kruskal-Wallis, post-hoc 一般还选Bonferroni, Tukey,Dunnett
• 但这些方法和LSD一样需要基于ANOVA/Kruskal 的结果
• 但是,目前有越来越多的方法可以用于ANOVA计算前/后,anytime,不受ANOVA限制。主要是两两比较也很重要。例如:Wilcoxon-Rank & T(或 paired) test, sign test
• 从ANOVA这种算global significance的到post-hoc(两两比较)的方法,都有自己的假设条件,只有满足了这些假设条件,才能使用,不然算“违规操作”~

要使用什么样的数据进行分析

数据是由一堆视频得到的:
方法一:平均
“Note that although SI is a discrete variable, its value per quadruplet is averaged over all (about 48,000) frames per recording. Therefore it is statistically treated as a continuous variable”[1]
[2]
方法二: SUM
用了total absolute turn angle, total meandering…[3]
[1]: Assessing Social Engagement in Heterogeneous Groups of Zebrafish: A New Paradigm for Autism-Like Behavioral Responses
[2]:Measures of Anxiety in Zebrafish (Danio rerio): Dissociation of Black/White Preference and Novel Tank Test
[3]:Differences in Spatio-Temporal Behavior of Zebrafish in the Open Tank Paradigm after a Short-Period Confinement into Dark and Bright Environments
分析对象不是数据本身而是被实验物

Non-parametric for Two-Way ANOVA

Scheirer–Ray–Hare extension of the Kruskal–Wallis test
下载并安装 R:[1,2]https://cloud.r-project.org/
[1] https://blog.csdn.net/weixin_39603537/article/details/111334296
[2] https://rcompanion.org/handbook/F_14.html

data <- read.csv(file = "C:\\Users\\Windows\\Desktop\\显著性分析\\depth\\3_14_4.CSV", header = TRUE, sep = ",")
print(data)
library(rcompanion)
scheirerRayHare(depth~exp*time, data = data)
文件输出的参数名字 <- read.csv(file = “用\\ 隔开的文件地址", header = TRUE, sep = ",")
print(data)
library(加载需要调用的package)
scheirerRayHare(depth~exp*time, data =文件输出的参数名字 )

Wilcoxon 的asymmetry检测

请添加图片描述
随机抽取了几组数据,发现第二和第三组严重不达标Wilcoxon的(蓝色块的中线明显skewed), 要用Sign Test(退而求其次)

Variance 检查

凡是关于repeated的实验,都用mauchly’s test.否则用levene’s test。

Sphericity p-value 没有值原因:我们的数据量只有4个实验对象,而condition的数量超过了实验对象的数量

当variance不达标可以使用Greenhouse-Geisser 等类似以下列出的correction values 作为最终的p-value

数据是百分比

The following rules may be useful in choosing the proper transformation scale for the percentage data derived from count data.
• Rule 1. For percentage data lying within the range of 20 - 80%, no transformation is needed.
• Rule 2. For percentage data lying within a range of either 0 - 20% or 80 – 100%, but not both, the square root transformation could be useful.
• Rule 3. For percentage data that do not follow the ranges specified in either Rule 1 or Rule 2 (e.g.percent control data), the Arc Sine square root transformation may be useful.

Arc sine square root transformation - ArcSine (Y)1/2

Appropriate for data on proportions, binomial data, and data expressed as percent of control.
The value of 0% should be substituted by (1/4n) and the value 100% by (100-1/4n), where n is the number of units in which the percentage data were based (i.e. the denominator used in computing the percentage.

Logarithmic (Log10) transformation

Appropriate for data where the standard deviation is proportional to the mean.
Helpful when the data are expressed as a percentage of change.
These types of data may follow a multiplicative model instead of an additive model.
If the data set includes small values (e.g. less than 10), use the transformation Log(Y+1) instead of Log Y(Y is the original data).

Square root transformation

Useful for count data (data that follow a Poisson distribution).
Appropriate for data consisting of small whole numbers. In both these cases the mean may be proportional to the variance.
Examples are the number of infested plants per plot, the number of insects caught in a trap, the number of weeds per plot (i.e. data obtained in counting rare events).
This transformation also may be appropriate for percentage data where the range is between 0 and 20% or between 80 and 100%.
If most of the values in the data set are less than 10, especially if zeros are present, the transformation to use is (Y+0.5)1/2 instead of Y1/2.

Bonferroni Vs. Fisher’s Least Significant Difference (LSD)

LSD 的数值敏感度高于 Bonferroni
Bonferroni 适用于<=5的情景,当情景有>=6,改用 Tukey
使用情况:

  1. 当ANOVA得到global的显著性时,但使用传统的Bonferroni没有得到,改用LSD
    • 如果ANOVA没有得到global的显著性,不可以使用LSD碰运气哦:
    • 违反LSD的assumption
    • LSD的post-hoc计算需要用到ANOVA里 mean-square within 的结果

如果ANOVA不显著,如何做pairwise comparisons?

  • Wilcoxon
  • Sign
  • McNemar (>=30条鱼)
### 回答1: Matlab中有许多方法可以用于显著性分析,下面列举一些常用的方法: 1. 基于频域的显著性分析方法:通过分析信号的频谱信息,来确定信号中哪些频率成分对信号的能量贡献较大,从而得出信号的显著性分析结果。 2. 基于时域的显著性分析方法:通过分析信号在时间轴上的变化情况,来确定信号的显著性。这种方法常用于处理短时信号,如语音信号、图像信号等。 3. 基于小波变换的显著性分析方法:利用小波变换的多分辨率特性,将信号分解成多个频带,然后对每个频带进行分析,从而得到信号的显著性。 4. 基于机器学习的显著性分析方法:利用机器学习算法,从大量数据中学习出信号的显著性特征,并将这些特征应用于新的信号中,以预测信号的显著性。 以上是一些常用的matlab显著性分析方法,具体使用哪种方法,需要根据实际应用场景和数据类型来选择。 ### 回答2: Matlab的显著性分析是一种用于图像处理和计算机视觉的技术。显著性分析旨在从图像中识别出与周围环境显著不同的区域或目标,这些区域或目标通常与背景有着显著的亮度、纹理、颜色或形状的差异。 在Matlab中进行显著性分析的一种常用方法是通过计算像素之间的差异来检测显著性区域。这些差异可以基于颜色、纹理或空间特征进行计算。Matlab提供了许多图像处理和计算机视觉工具箱,可以用于提取这些特征并计算区域的显著性显著性分析在计算机视觉和图像处理中有广泛的应用。例如,它可以用于图像分割、目标检测、人脸识别和图像压缩等应用中。通过识别并突出显示显著性区域,显著性分析可以帮助我们更好地理解图像内容并提取出有用的信息。 在进行Matlab显著性分析时,可以使用各种算法和技术。一些常见的显著性分析算法包括基于全局对比度的方法、基于局部对比度的方法、基于频域的方法和基于学习的方法。这些方法可以根据具体的应用场景选择合适的算法进行显著性分析。 总之,Matlab提供了丰富的图像处理和计算机视觉工具,可以用于进行显著性分析。通过显著性分析,我们可以在图像中识别和提取出与背景显著不同的区域,有助于我们更好地理解和分析图像内容。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值