instruction
stringlengths
9
38.7k
I need some assistance understanding the methodology the author of this paper used to be able to rank order the mean coefficient of determinations for explanatory variables (see Table 3.). TL;DR version of the study is that the authors measured the rate that wildlife crossed through designated passage structures over/u...
I need to run several tests in R to make sure that the basic linear model assumptions hold for this time series OLS model. I'm very new to this, so I'm unsure in some cases of how to test for these, in others how to correct for them. Here's what I have so far: Normality of residuals can be tested with an normal proba...
I don't know if I'm right here: I have a homework which where I have two supposedly correlating variables: Age of a crop and number of Larvae*; it looks like this: Farmer Age_yrs Larvae_per_m² 1 Band 2 1315 2 Band 4 725 3 Band 6 90 4 Fechney ...
When we have a hierarchical model, such as: $$log(y_{i,t})=\beta_0 + \beta_i*log(x_{i,t})+\epsilon_{i,t}$$ Where $\beta_i$ ~ $N(B,\Sigma)$, and the sampling model is normal (normal disturbances.) We induce shrinkage in $\beta_i$ towards the population coefficient $B$. The fewer observations per "group," the more shrin...
I have as data some real measures, let's say: 1000, 800, 900, 1100, 900 and I have the Mean Absolute Error (MAE) and Mean Squared Error (MSE) 80 and 20000, but I don't know which are the estimated data. \begin{align} MAE_s(h) &= \frac{1}{n}\sum_{x \in s} |f(x)-h(x)| \\[5pt] MSE_s(h) &= \frac{1}{n}\sum_{x \in s} (f(x)...
I am currently studying Kernel Ridge Regression. Specifically, I am considering the radial basis function kernel. Throughout literature I am seeing plots of the eigenfunctions that are the approximations of the eigenfunctions of the Kernel Operator. Below is a picture of the first 16 eigenfunctions from (Tibshirani et ...
In this exercise you will simulate artificial data to compare logarithmic to linear regression models. Start by generating 5.000 observations of the error term εt ∼ N(0,1) and 5.000 observations of the variable xt ∼ N(100,1). Hint: use the command rnorm(A,B,C) to generate A observations of a normally distribut...
Given $X_i \sim \mathcal{N}(\mu, \sigma^2)$ and $Y_i \sim Bernoulli(p)$, let $Z_i = X_iY_i$. I know that if $F(t)$ is the CDF of $X_i$, then $Pr[Z_i \le t] = pF(t) + (1-p)$ if $t \ge 0$ and $Pr[Z_i \le t] = pF(t)$ if $t < 0$. Let $Z = \sum_{i = 1}^{n}Z_i$, where the $Z_i$ are independent. Is there an expression for $Pr...
Given $\mathcal G$ an arbitrary family of density distributions, and a large number of samples from an unknown distribution $P$, is there any method to find the most appropriate kernel in $\mathcal G$ and then use it to estimate $P$ ?
I have noticed that when people want to calculate variance or autocovariance they assume that mean is equal to 0. So I want to ask if i get some ARMA process with non-zero mean and I need to calculate autocovariance function can I just eliminate constant term in the equation and calculate autocovariances?
I have data which consists of number of impressions for an advertisement, position of ad in the break and total number of ads in a break. Typically, if the channels are not synchronized, people switch to other channels during break and watch the program in that channel. So if I plot Impressions vs position of ad in th...
I have a large set of point count data from 15 different sites that I wish to compare using R studio. Each site was surveyed multiple times each month from 2006-2015, except for some sites which were only surveyed for a year or two. Is it possible to compare counts across all sites using a mixed-effects model even thou...
I just want to make sure I'm interpreting my results correctly. See below. The interaction terms confuse me when interpreting. Am I correct in saying that the odds ratio is "comparing" Purebred dogs (S/N yes/no) with Non-purebred dogs with the same spay/neuter status? Thanks!
I read all the articles, but still confusing to me. Bonferroni Correction = alpha .05 divided by the number of comparison. What is exactly "comparison"? In my Repeated Measure ANOVA case, I gave 8 subjects, and each subject had 4 measurements. Which is correct for Bonferroni correction? 0.05 / 8 subjects = 0.00625, o...
What is the value of $t^*$ on the $t$-distribution for a sample of size 22, such that the probability of being greater than $t^*$ is 1%? I have missed the last class where we went over this, so could anyone point me in the right direction?
Suppose my true Model is: $$y = Xb + u \tag 1$$ But I am estimating: $$y = Xb + Zd + u \tag 2$$ I can get the estimate of $b$ from $(2)$ by using $Mz$ operator as: $$\hat{b} = (X'MzX)^{-1}(X'MzY)$$ Why is an estimate from the first equation is better than the second?
I have a dataset and I want to compare its mean to a reference mean that I found in the literature. How can I consider this reference mean (found in the literature and i don't have the raw dataset) as a reference and compare the mean of my dataset against it? what kind of test should I use? R or SPSS solutions are acc...
Say you have two possible different responses, $Y$ and $Z$, and they are in different units and have different ranges. Your covariates are $X_1$, $X_2$, and $X_3$. Model 1 uses $Y$ as the response, and $X_1$, $X_2$, and $X_3$ as the predictors. Model 2 uses $Z$ as the response, and $X_1$, $X_2$, and $X_3$ as the predic...
My understanding goes something like this: Let's say we're trying to find a confidence interval (CI) for what the mean of a population is. We take a sample of size $n$. This sample has a mean of $x̄$. If we keep taking samples, we can form a distribution of x̄'s. Via the Central Limit Theorem, as $n → ∞$, the distribu...
I was looking a paper, article, book... about MCMC (Markov Chain Monte Carlo) methods applied to networks (networks of people, computers,...) I haven't found something "useful", but maybe I am making this up and I hasn't been applied. So, do you know some resources where I can look?
In the beginning of https://www.stat.berkeley.edu/~breiman/randomforest2001.pdf, it is explained that: The common element in all of these procedures is that for the kth tree, a random vector Θk is generated, independent of the past random vectors Θ1, ... ,Θk−1 but with the same distribution; One way that I understand...
I'm fairly new to GLM and would like some advice on the lognormal model with glm() in R. I have a bunch of zeros in my data and I realised that there are models out there like the zero-altered Gamma or the Tweedie model are better choice, but I would like to compare them to the lognormal model, i.e. glm (fml, family=ga...
There is a pokereval library which provides very good probablistic equities for poker hands. e.g. As Ks 81% vs 2s 7c As Ks 79% vs 9c 9h 9c 9h 60% vs 2s 7c So that gives heads up equities. What if the all 3 hands were in the same game: would you be able to from the given/known 1on1 equities be able to deduce their wi...
I am using indicator regression with an interaction term to compare the slopes to two groups. Here is the form of the equation: $Y = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + + \beta_3 X_1 X_2$ $X_2 $ is my dummy variable (1 or 0). Based on how I set up the regression: When $X_2 = 0$, then the $slope_0 = \beta_1 $. When $X...
I understand that there is sort of a disagreement in statistics and econometrics about the usage of Structural Equation Models vs. Graphical Causal Models vs. Potential Outcomes Model. It has been proved by Pearl that these models in general are the same and that one theorem proved in each implies a theorem proved in a...
I'm performing a psych study on a group of single people . My binary dependent variable is their relationship status one year in the future (still single/in a relationship). My variables include their gender (male/female) and whether they have a crush on someone (yes/no). My chi square tests show no significance for ei...
For centering and scaling a variable (e.g. prior to a regression, or to a visualization), the standard procedure, of course, is to subtract the mean then divide by the standard deviation. But is it considered preferable to use the population standard deviation (i.e. divided by n) or the sample standard deviation (divi...
There are a number of questions about election polls and margin of error that have been covered in CrossValidated over the years, including one regarding the 2016 US election polls. That one however only addresses validity based on members of a particular poll knowing each other. In so many cases the state polls showe...
I am trying to see what would be an appropriate prior distribution for $\theta$, the average GPA of all college students who graduate in a particular year Y from university U. Assume also that from past data we know that usually about $50\%$ of graduating college students from U obtain a grade of $3.0/4.0$ or higher. W...
I need to visualize two related sets of data, a performance differential and a performance ratio. The image below is my first thought. The dot and wiskers represent the average differential with 95% CI and corresponds to the left y-axis. The barplot represent the ratio and corresponds to the right y-axis. The feature...
DropOut is a good way to reduce over-fitting in Neural Network, and I found a article on DropOut. My question is for each epoch, we should randomly pick half of the neurons of the network, and set the weights of them to zero, and update the weights of the networks? Does it right? Show my process for each epoch: ra...
I am working on fitting an equation with three fitting parameters A,B,C to a some sets of data (Y). The equation is $$ Y=A*e^{-B/(X-C)} $$ I have multiple sets of Y and X from multiple samples. I first used nlinfit in MATLAB to fit A, B, and C in each sample and when I did this I found that the results for A and B acr...
I am trying to determine the sample size using power analysis for ANOVA. That requires as inputs the number of groups, effect size, significance level and power. By default, the significance level is 0.05, the power is 0.8 and I use 10 groups. The only parameter left is the effect size. I have no idea how much influenc...
I am trying to understand what are the best practices to perform supervised machine learning on sequential numerical data. My data looks like following: # sample data for class 'a' +----+-----+----+------+-----+---+ | id | inv | s1 | s2 | s3 | y | +----+-----+----+------+-----+---+ | 1 | 0.0 | 36 | 0.02 | 0.0 | a ...
I have written the following code in R to estimate the parameters of a ARMA(1,1) process. armacoeff <- function(x) { l = length(x) param = c(mu=0, phi=0, theta=0) SSE <- function(param) { mu = param[1] phi = param[2] theta = param[3] res = vector() ...
How should I interpret interaction term in OLS? Dummy: 0 is flat tax system, 1 is progressive one. Cont: continuous variable ranges from -2.5 to 2.5. Before interaction: dummy | .0183619 .0166824 1.10 0.278 cont | .0616873 .0110176 5.60 0.000 After interaction: dummy | -.0429928 .0201104 -2....
When we find that there is a variable linearly dependent with other variables(i.e. getting a NA coefficient in the full model using lm()). Is it a good idea to just simply drop that variable or is there any other method to address that? Or may be we can just ignore it and continue the stepwise regression?
I am training a char-rnn to yield some nice generative output. Can I make it memorize context by using the same copies of data in training, multiple times?
I want to calculate the AIC of an elastic net model but how do I calculate the number of parameters? Is it simply the number of independent variables plus one?
I need to repeat in R results of a fully-modified OLS estimation that I got in Eviews. Here is the Eviews estimation (updated): My code in R using the cointReg package is: library(cointReg) y <- ts(c(35.8, 41.6, 35.9, 36.9, 42.43, 36.067,28.67, 29.53, 32.83, 9.867,23.9, 20.8, 21.167),start=c(2000,1),freq...
For independent random variables $\alpha$ and $\beta$, is there a closed form expression for $\mathbb E \left[ \frac{\alpha}{\sqrt{\alpha^2 + \beta^2}} \right]$ in terms of the expected values and variances of $\alpha$ and $\beta$? If not, is there a good lower bound on that expectation? Update: I may as well mention t...
I am doing a repeated measures ANOVA using the aov function, looking at the effects of (5) structure, (2) hemisphere and (2) groups on volumes in 59 individuals. Structure and hemispheres are repeated. groups are not. I understand that if you are using the lmer package to do a repeated measures anova, the degrees of fr...
I want to study orthographical variants, for example: Can firefighter, fire-fighter and fire fighter be considered orthographical variants (the difference in frequency in a corpus is not statistically/practically significant), or should one or more of these orthographical forms be considered "wrong"/"irregular" (the di...
I am planning to identify profiles for individuals ($n = 200$) with experiences of domestic violence. The 19 likert items on abuse has a 6 response format (0 - none, 1 - once, .... 3 (3-5)...... to 6 - (20 and above) reflecting increased frequency. I am planning to conduct latent profile analysis treating the scale as...
I have somewhat extensive experience in meta-analysis, but remain an avid reader on this topic. I am thus wondering, which is the best book to learn meta-analysis in general? And which books are the best for selected topics, e.g. diagnostic meta-analysis, individual patient data meta-analysis, Bayesian meta-analysis, a...
If a model with a multi-level categorical variable is given in the following form: $$logit(\pi_i) = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + \beta_3 X_3$$ Where $X_2$ and $X_3$ are the levels $2$ and $3$ from a categorical variable taking values $\in \{1,2,3\}$. Then does this mean that value $1$ from that variable has be...
I have some URLs and i have to extract some features from these URLs to filter out some desired URLs. I have to give input those filtered URLs to SVM so as to classify those URLs as relevant and irrelevant. What will be the exact input to SVM?
I am working on a demand forecasting project and I am puzzled by the client's standards of forecast evaluation. The MAPE (Mean Absolute Percentage Error) with the sample data Forecast = 300 and Demand = 100 is $$ \text{MAPE} =\frac{|300-100|}{100} =2 $$ However the client focuses on forecasting accuracy. It is def...
I am trying to create the following Taguchi Crossed Array Design in R. Table12.1Inner <- FrF2::FrF2(nruns = 8, generators = "ABC", randomize = FALSE) Table12.1Outer <- DoE.base::fac.design(nlevels = 2, nfactors=1, factor.names = "E", randomize = FALSE) Error in fac.design(nlevels = c(4)) : one factor only is not ...
I am trying to predict chronological age based on a set of eight DNA methylation markers, expressed in percentages. I'm working with a dataset of 181 samples. When I put the markers in a multiple OLS regression model, all of them are significant. I knew I had to check if it was necessary to add quadratic terms for some...
I am struggling in finding the suitable method to analyse a land use dataset. The dataset is composed of land use data for several crop groups and for several global countries. For each country, I have information about land use under conventional and under organic production. The different countries are clustered in g...
This is a basic theoretical doubt that I'd like to clarify with you. Suppose that I want to compare AIC between ARMA, GARCH and ARMA-GARCH models which I fitted to the same data sample. From this post Can AIC be used to compare an ARMA model to an ARMA-GARCH model?, I understand that ARMA models and ARMA-GARCH models f...
According to Deep Learning (Ian Goodfellow and Yoshua Bengio and Aaron Courville,p.111, available online): 1.Assume that train and test set are indentically distributed(IID assumption). 2.Then: ''We sample the training set, then use it to choose the parameters to reduce training set error, then sample the test set. U...
I'm going to build a PCA for a set of binary variables and a ordinal variable. The binary variables values are 0 & 1 ordinal variable value is in a scale of 1 to 50 Is it possible to do PCA with this data set?
I should start by saying that I'm really new to machine learning so please bear with me if I may not understand some simple concepts. I have a small dataset of people with diabetes, something like this: Age Mbi Glucose 50 70 148 34 60 100 ..etc And I tried to apply linear regression on R with lm() func...
Suppose you flip a coin $n$ times and you get heads $x$ times where $x < n$. By what confidence can you say that the probability of the coin showing heads during a random toss lies between $U_1$ and $U_2$ ( $0 < u_1<u_2 < 1$)? For example if I flip a coin 500 times and I get head 240 times, what is the probability/con...
I have data about sales in a year, call and appointment records, and background of salesmen. I want to apply machine learning and data mining to predict which kind of person would bring highest sales each month. My problem is I am not sure how to sample the data. Should I treat sales of a salesman in different months a...
My problem is as follows: I am fitting some multi-parameter models which predict two different kinds of data. I can find a best (MLE) fit to the first kind of data. I'm currently expressing both the model predictions and the data as a multinomial distribution. In this case I get an exact probability that a particular m...
In Hard margin support vector machine we have equation of Hyper-plane $W^T*X+b = 0 $, I want to know why for a point $X_n$ not on Hyper-plane $W^T*X+b = 0$ we take $|W^T*X_n+b| = 1$ why do we normalize to 1
I have 200 continuous variables, all positively correlated to the dependent variable. My problem is that I can't exclude any from my model as I need to attribute to each and everyone a weight. They are also correlated between themselves. RF is great for prediction but does not provide weights,Linear has the issue of mu...
I need to test if the mean of the sampling distribution of the mean, which belongs to a normal distribution with mean = 0 and variance = 1, is significantly different from the mean of the original distribution. How can I do it through a statistical test AND by looking at confidence intervals? # Assuming that I can u...
Suppose, I am using Wald test to test following hypothesis. $$H0:\theta = \theta_0$$ $$H1:\theta \neq \theta_0$$ Given the MLE estimate $\hat{\theta}$ , Wald test makes the following normality assumption: $$\frac{\hat{\theta}-\theta_0}{\hat{se}}\rightsquigarrow \mathcal{N}(0,1)$$ Suppose $\theta = \theta^*$ is the t...
I estimate a model with linear regression: model <- lm(orders ~ day + holiday_dummies ,data=training_df, na.action = na.exclude) summary(model) my response variable is zero somewhere but positive - in fact: summary(df$orders) Min. 1st Qu. Median Mean 3rd Qu. Max. 0.000 0.0...
In my data I have a ratio that aims to be 5:1. To test how close the mean difference is between the ratios in my data (of 10 items) and the ideal 5:1 ratio I carried out the following t test. t.test(SratioA$ratio, c(5,5,5,5,5,5,5,5,5,5), paired = TRUE) t.test(SratioB$ratio, c(5,5,5,5,5,5,5,5,5,5), paired = TRUE) Would...
I have two time series that represent yearly population estimates from different sources, for some species. In the first species ('Forc') the two series are definetly not consistent despite the overall trend is similar, in the second ('Cot') both trend and fluctuations are somewhat consistent. Data should be autocor...
I'm just getting started in Machine Learning and I'd like to implement a simple OCR. I've played with the MNIST dataset, but it was classification over a finite number of classes, and one character at a time (so no positionning/ordering issues). What kind of model should I look into to build a simple OCR ? How does cha...
I calculated univariate odds ratio as follows: table(d[,c("copd", "nsurgrespicatelectbpnards")]) nsurgrespicatelectbpnards copd N Y N 73 19 Y 26 31 m <- glm(nsurgrespicatelectbpnards~copd, data = d, family = 'binomial') exp(cbind(OR=coef(m)[2], CI95lo=confint(m)[2,1], CI95hi=confint(m)[2,2])) ...
My experience with R, rpart model is the model seems to be always too simple / over pruning. In many experiments, I am seeing a over simplified tree with only 1 or 2 split, but I know from the domain knowledge the model should be more complicated. Currently, I am manually experimenting with cp and minsplit parameter to...
Why is that? Why $TSS = ESS + RSS$ ,iff only we have an intercept(constant term) in our regression model?Why it doesn't work, when model doesn't include intercept?
I want to predict using statistical/machine-learning methods the probability of a person to buy a product on a website knowing the characteristics of the product and the other products it is compared to on the same website. Each "line" of my dataset is the characterics of a product, a summary of the characterics of th...
I have a multivariate dataset with some linear positive variables and some circular variables (ranging $0$ to $2\pi$). I was planning on clustering the samples using spectral clustering, but to do that I have to first generate a similarity matrix. I have found a couple of papers on clustering pure circular data but alm...
I have 2 (20x10) data matrices, Z1 and Z2, which correspond to a 10-dimensional questionnaire acquired in two different days: T1 and T2, on 20 subjects. I want to reduce dimensionality of the questionnaire, using PCA. I am interested in conducting a regression analysis: Y ~ 1 + X1 + X2 + ... + Xn where Y is the differ...
In Revisiting the VLAD Image Representation the authors introduce Local Coordinate System, i.e. they: we learn off-line (for each visual word) a rotation matrix Qi from training descriptors mapped to this word. So they obtain k (i.e. the number of visual words, or k-means parameter) rotation matrices. My question is:...
Hello: I’m working with a three factor (ANOVA) design that I wish to use in an MCMC chain to estimate the parameters for the main effects and treatment interactions. I wish to run MCMC analyses using a number of different response variables, but using the same set of explanatory variables (factors+treatments). I am ...
I have an input matrix X that is 1000x10 and a response Y. To reduce the dimensions, I run PCA, select a certain number of factors (say 2) and transform my X to now be 1000x2. I then scale Y and run a constrained regression to force all my Beta's to sum to one, easily done by solving through quadratic programming. My...
I am writing my thesis about bankruptcy prediction Pr(Y=1) through a sentiment score I have calculated (x1) and a control variable called Z-Score (x2). However I am very unsure about how to integrate my data in the R formula I have found. This is my code: library(survival) ## Add survival object. status = 1 is bankrup...
I want to calculate the sensitivity, specificity, positive predictive value and negative predictive value of two diagnostic tests. The sensitivity is 0.92 (95% CI, 0.82-1.03) Is this confidence interval possible?
this is a homework question but I want to be sure I have the correct method. I am given the following model: $$ Y_i = \beta_1 + \beta_2 X_{2i} + \beta_3 X_{3i} + \beta_4 X_{4i} + \beta_{5i} X_5 + u_i $$ that $\mathbf{E}(u | X_2, X_3, X_4, X_5) = 0$, and that $\mathbf{var}(u | X_2, X_3, X_4, X_5) = \sigma^2 X_2^2$. Do I...
I am doing a meta-analysis where I have the baseline and 2 months post-intervention measurement of a continuous variable (say a) for two groups (control and intervention). I also have measurements for another continuous variable (say b) at post-intervention. The idea is if (a) increases after the intervention, (b) shou...
$X_1, ... X_n$ are an iid sample from a normal population whose mean and variance are unknown, and let $S^2 = \frac{1}{n}\sum_{i=1}^n (X_i-\bar{X})^2$. Suppose $1 - \alpha = P(\frac{\sqrt nS}{\sqrt a} \leq \sigma \leq \frac{\sqrt n S}{\sqrt b})$ such that $[\frac{\sqrt nS}{\sqrt a}, \frac{\sqrt n S}{\sqrt b}]$ is a $1 ...
I came across to decide a sample size for a study. I searched online and looked into a bunch of formulas for different study design and objectives, and all of them need prior information from a previous or pilot study. The study I am dealing with is new and no previous studies looked into the same objective that I am l...
I am new to both ARIMA technique and R. Your suggestions would be very much appreciated. I am dealing with hourly data with strong seasonality and have used auto.arima to select a model: Fit<-auto.arima(H_ts, seasonal=TRUE ,approximation=FALSE) This is the model it returns: ARIMA(5,1,4)(1,0,0)[24] ...
I am supposed to conduct a regression analysis on my multivariate data. But my data is not normally distributed, so I was considering doing a principal component regression. Therefore, I would like to confirm: what are the assumptions of principal component regression? Is normality one of them?
Assume the following linear relationship: $Y_i = \beta_0 + \beta_1 X_i + u_i$, where $Y_i$ is the dependent variable, $X_i$ a single independent variable and $u_i$ the error term. According to Stock & Watson (Introduction to Econometrics; Chapter 4), the first least squares assumption is $E[u_i|X_i]=0$. The following f...
I have a categorical feature with very high-cardinality (on the order of 1000s of unique IDs). RIght now, I am using label encoding along with XGBoost, because from what I understand, decision trees don't require dummy encoding of categorical variables. Let's say I train my model, and then when generating predictions, ...
I faced with an unexpected behavior of LSTM network. I reduced my troubled case to the simplest task, just count an occurrences of a certain number in random vector(it's only for a benchmark). Due to that fact that LSTM network should keep the global state of the process, I see no evidence why this task shouldn't been ...
Machine learning is in fashion these days in many industries. So business folks think it can be applied to anything to make things great again. My experience tells me that there are problems where it doesn't work at all. Moreover, it seems to me that one can say in advance whether a machine learning going to work or no...
I just would like some reassurance on my interpretation of a few concepts in this paper Xiao, R. & Scott, L. (2011). The question is about the likelihoods. Am I reading correctly the following expressions of $L$ when evaluated at $$\hat{\theta_0}=(\hat{\mu_0},\hat{\sigma}^2)$$ and $$\hat{\theta_1}=(\tilde{\pi},\tild...
If A={(5,1),(2,3),(4,5)} and B={(4,3),(3,4),(2,3)} are two series, how is the euclidean distance between them calculated? Would it be $\sqrt{(5-4)^2+(1-3)^2} + \sqrt{(2-3)^2+(3-4)^2} + \sqrt{(4-2)^2+(5-3)^2}$ ?
The paper explaining 'Advantage Updating' as a method to improve Q-learning uses the following as its motivation. Q-learning requires relatively little computation per update, but it is useful to consider how the number of updates required scales with noise or with the duration of a time step, At. An important conside...
I have a problem that seems like it should be simple, but I'm having a hard time nailing down the right test. I'm analyzing sample data from a pricing experiment in which some customers are shown a higher price. The customers seeing the higher price are less likely to buy, but when they do buy they contribute more reve...
I am learning multiple regression and attempting to build a multiple regression model using Excel based on how certain variables affect the market penetration of a company in different areas. I have five predictor variables, some are percentages, some are continuous variables, however one predictor variable is "social ...
Imagine a data set that has information about how frequently various people visit a location $l$ over a year ($l$ could be a restaurant or a public park). What would be a good way to analyze this data? I have thought of the following: Consider a person $p$ that has visited $l$ at least once. Suppose that $p$'s visits t...
I have values a set of values that are plotted on the image (I sorted them for the convinience). I need to group them in two group: the ones that are around zero (purple ones) and the rest (red ones). Does it make sense to apply clustering here? What are the other methods that could be applied here to separate these tw...
everybody! I have a list of 250 genes whose expression was measured in 21 samples. I want to discover which gene pairs are positively correlated. So, I performed Pearson correlation for these genes using the "rcorr" function of the Hmisc package (R). The output gives me the r and p-values. What I want to know is: do I ...
I have a set of experimental data, say x and y, where both x and y have experimental error following a normal distribution with different sigma. I want to fit the data y=f(x) to get some parameters that describe the physics. The final goal is to apply the regressed parameters in another numerical model to get one singl...
Is it possible for a t-test p-value to be <.05 when the confidence interval for cohen's d includes zero?
Let's say I have a response variable (let's say brain pathology of Parkinson's disease patients) and p input variables (let's say expression of p genes). I want to find a subset of genes which might be driving the pathology of the patients. One way is to simply check the Pearson's correlation of each gene with the pat...
Consider the following protocol. We want to test metallic bars for brittleness. The bars were molded under similar conditions and tested at 5 places. Under the assumption that bars have uniform composition, the $\#$ of breaks/bar should follow $\text{Bin}(5,p)$, with probability of failure $p$ unknown. If all bars have...
I'm considering a problem that has been partially addressed elsewhere: Bayesian updating with conjugate priors using the closed form expressions but now I have an added twist. My samples are drawn from distributions of unknown mean and variance, and I wish to estimate this mean and variance. However, instead of direct...