hypothesis-test Questions
11
How can I find the p-value (significance) of each coefficient?
lm = sklearn.linear_model.LinearRegression()
lm.fit(x,y)
Michaelmichaela asked 13/1, 2015 at 17:46
4
How can I execute Little's Test, to find MCAR in Python? I have looked at the R package for the same test, but I want to do it in Python. Is there an alternate approach to test MCAR?
Brigand asked 28/9, 2019 at 8:44
2
Solved
I am looking for a quick way to get the t-test confidence interval in Python for the difference between means. Similar to this in R:
X1 <- rnorm(n = 10, mean = 50, sd = 10)
X2 <- rnorm(n = 2...
Devries asked 2/8, 2015 at 4:6
1
Solved
so i have pasted my complete code for your reference, i want to know what's the use of ppf and cdf here? can you explain it? i did some research and found out that ppf(percent point function) is an...
Paradies asked 27/12, 2020 at 16:40
2
Solved
My context for this question is in Python.
Hypothesis Testing Library (i.e. Property Based Testing):
https://hypothesis.readthedocs.io/en/latest/
Mutation Testing Library:
https://github.com/six...
Roguish asked 1/8, 2016 at 16:45
6
Solved
I need to work with many hypothesis tests in R and present the results. Here is an example:
> library(MASS)
> h=na.omit(survey$Height)
>
> pop.mean=mean(h)
> h.sample = sample(h,30...
Jacaranda asked 8/4, 2016 at 19:40
1
I am currently trying to implement the Wilcoxon Ranksum test on multiple data sets that I've combined into one large matrix, A, that is 705x17635 (ie I want to run the ranksum test 17,635 times. Th...
Nicollenicolson asked 10/4, 2014 at 20:14
1
To prepare a little toy example:
import pandas as pd
import numpy as np
high, size = 100, 20
df = pd.DataFrame({'perception': np.random.randint(0, high, size),
'age': np.random.randint(0, high, ...
Felly asked 23/5, 2019 at 1:52
3
Solved
If I want to calculate the mean of two categories in Pandas, I can do it like this:
data = {'Category': ['cat2','cat1','cat2','cat1','cat2','cat1','cat2','cat1','cat1','cat1','cat2'],
'values': [...
Nakano asked 15/11, 2012 at 19:11
1
Solved
The Fisher's Exact Test is related to the hypergeometric distribution, and I would expect that these two commands would return identical pvalues. Can anyone explain what I'm doing wrong that they d...
Leghorn asked 29/10, 2018 at 18:48
3
When we have a linear model with a factor variable X (with levels A, B, and C)
y ~ factor(X) + Var2 + Var3
The result shows the estimate XB and XC which is differences B - A and C - A. (suppose...
Orel asked 19/10, 2016 at 23:58
5
Solved
I met a problem of running a t-test for some data stored in a data frame. I know how to do it one by one but not efficient at all. May I ask how to write a loop to do it?
For example, I have got t...
Upcast asked 5/3, 2013 at 11:35
1
Solved
How do I specifically test the null and alternative hypothesis of the skewness and/or Kurtosis of a variable in hypothesis testing? Would I have to use a formula in t.test?
t.test(data$variable,...
Pelson asked 26/6, 2016 at 2:42
1
Solved
I have the following model:
y = b1_group1*X1 + b1_group2*X1 + b2_group1*X2 + b2_group2*X2 + ... +
b10_group1*X10 + b10_group2*X10
Easily made in R as follows:
OLS <- lm(Y ~ t1:Group + t2:Gr...
Incombustible asked 2/6, 2016 at 12:12
1
Solved
I have a 94 varibles(sample+proteins+group) and 172 observations in a matrix as:
Sample Protein1 Protein2 ... Protein92 Group
1 1.53 3.325 ... 5.63 0
2 2.32 3.451 ... 6.32 0
.
.
.
103 3.24 4.21 ....
Labyrinthodont asked 30/6, 2015 at 13:38
3
Solved
I know that if I have a set of data, I can run t.test to do a T test. But I only know the count, mean and standard deviation for each set. I'm sure there must be a way to do this in R, but I can't ...
Glob asked 3/4, 2011 at 1:15
1
Solved
I'm using the R function ks.test() to test the Uniform distribution of the R random number generator. I'm using the following code:
replicate(100000, ks.test(runif(n),y="punif").
When n is less th...
Yan asked 26/1, 2015 at 20:54
2
Solved
Suppose I have a large matrix:
M <- matrix(rnorm(1e7),nrow=20)
Further suppose that each column represents a sample. Say I would like to apply t.test() to each column, is there a way to do th...
Penetrating asked 12/7, 2012 at 21:5
1
© 2022 - 2025 — McMap. All rights reserved.