instruction stringlengths 9 38.7k |
|---|
I would like to cluster 80 days using k-means. Each of the 80 days contains 4 time series (temperature, solar radiation, electricity demand, electricity price) with 288 values each. So all in all I have $4*288=1152$ values for each day and I would like to cluster the days such that similar days with regard to these 4 t... |
Suppose the following data correspond to observed responses and their predictions obtained from some model.
observed <- runif(100)
predicted <- 1 + observed + rnorm(100, sd = 0.1) # suppose they are obtained from some model instead
# predicted vs actual plot
plot(observed, predicted)
We can observe a linear trend ... |
I am working on the House Price Prediction dataset on Kaggle and am trying to identify the good features for our price predictions. For numerical variables, I have gone with a high correlation with the prices (our target variable) to give me a good subset to choose my features from. But am confused about how to get a g... |
My data is like this
grid average_2bhk average_3bhk conf_2bhk conf_3bhk
210 900$ 1200$ 0.5 0.4
213 1012$ 1360$ 0.4 0.8
215 922$ 1500$ 0.4 0.2
grid is the id, we are giving to a place and average_1bhk, 2bhk is the average ren... |
In geostatistics a difference is made between point-referenced
observations and areal observations. In the first case, an
observation is related to a specific location such as a node in an
observation grid. In the second case an observation is related to a
geographical area: country, district, county, ... This vocabula... |
My understanding of this article and this article is that:
If a time series needs to be differenced to become stationary (i.e. is difference-stationary), then it has at least one unit root
Trend-stationary time series do not necessarily require differencing to become stationary (and do not necessarily have a unit roo... |
Example
The example is made up because I hope that it’s more accessible than my actual problem.
I want to determine the number of planets of a star.
I have:
data for some astronomical observable of that star, e.g., an intensity time series,
a model that describes the observable with the sizes of the star’s planets as ... |
A group of people rate their ratings on product A and B simultaneously. The mean of the ratings for product A is 4.5 (ranging from 0 to 5). The mean for B is 4.3. In this case, can we use t-test to examine if these two scores are significantly different? In other words, is it a way to tell if the people like product A ... |
In the article Bayes or not Bayes, is this the question?, in the paragraph before Figure 2, the author says:
Let us suppose that we want to investigate whether the sex ratio in hypothetical mice population is 1:1. We can create two experimental designs. In the first experiment, we can randomly select a mouse until the... |
Post Edit: (I believe the question I ask here has not been answered in other questions regarding p-value on stats.stackexchange, mine in synthesis asks "does a low P-value mean this (read question)?" rather than when to accept or reject null hypothesis using p-value and its relation to t stat which I fully understand... |
I'm trying to find an appropriate test to compare my data. I ran a 2-way repeated measures ANOVA to compare different drug concentrations' effects on bacterial population count at different time points. I believe the lack of internal variance in my data is causing massive differences in means to be statistically non-si... |
I am new to decision tress, just fyi. I understand how decision tress can handle missing data when model building; like surrogate splits or multiple imputation. My question has to do with missing values when making predictions. So let's say I develop this great decision tree and it is really powerful and easy to use. S... |
The problem comes from equation (4.86) of text "Pattern Recognition and Machine Learning" written by Christopher M. Bishop $$a_k({\bf x})={\bf\lambda}_k^T{\bf x}+\ln g({\bf\lambda}_k)+\ln p(\mathcal C_k).$$
This equation is obtained by substituting the class-conditional density of the exponential family with scale inva... |
This is a mix of bioinformatics and ML problem. Hope someone with both expertise can help. Please forgive me if it's unclear or I used the wrong words as I am very new to ML.
I am trying to pick out some important features (genes) in a RNA-Seq data set of 37 samples to predict the outcome of the disease. The outcome is... |
I am working with a dataset of car/vehicle measurements at a Target location. In this dataset, there are multiple providers that give measurements about the number of vehicles at that Target (based on cars/devices in their sample) . However, because each provider gives data from a different sample of vehicles, they pro... |
I'm using the function ns() and bs() in the R package spline. By default, there is no intercept. I know using an intercept will take one degree of freedom.
May I ask what the interpretation of the intercept is? How does using an intercept or not affect the model? When an intercept should or should not be used?
|
I can't find a proper explanation for my question on Cross Validated. The closest explanation was this one from Medium, but still, I don't see the difference visually among the four cases in that explanation. So here we are.
I have this df.head() with two plots where:
Y: The column Y
Y_predicted: It's the output of th... |
1.If I toss a coin for 10 times and 9 times are tails. Ask if the coin is fair.
My method is that the null hypothesis is that the coin is fair ($p_0=p_1=\dfrac12$), alternative hypothesis is it's not fair. The test statistic is the number of tails.
And p-value is calculated by $C_{10}^9(\dfrac12)^9(\dfrac12)+C_{10}^{10... |
I was wondering if I could understand the relationship between kernel size and sampling frequency. I was reading this paper and on Pg 6-7 ("In block-1" section), I read that kernel size of 64 is half the size of sampling frequency (128 Hz). I don't understand how the kernel size is related to sampling rate and over tha... |
In this my code I am trying to use GradientBoostingRegressor
-I am confused because I am getting a large Root Mean Squared Error but I am not sure how to evaluate if it is too high.
-How can get on RMSE less than zero?
Any advice, please?
The mean squared error (MSE) on test set: 5.1529
The root mean squared error (... |
I am reading a paper where users have a score $> 0$, and the authors want to assign users to groups Low, Medium, and High. Here is what they do:
Users' scores are first sorted in ascending order.
Scores are then summed from the beginning until reaching 1/3 of total sum. These users are the Low group.
Scores are then s... |
Let $X$ be a binomial random variable where each outcome ($0$ or $1$) has a $50\%$ chance of occurring. We make two different observations $O_1$ and $O_2$ of a single outcome of $X$, where we have $P(X = 1 | O_1) = 0.5$ and $P(X = 1 | O_2) = 0.8$.
Since $O_1$ does not provide any new information about the outcome of th... |
I'm trying to find an appropriate test to compare my data.
I ran an ANOVA to compare different drug concentrations' effects on bacterial population count at different time points. I believe that the lack of internal variance in my data is causing massive differences in means to be statistically non-significant. At one ... |
Suppose $x$ is sampled from zero-centered Gaussian with $d\times d$ covariance matrix $\Sigma$.
is there a name for distribution of $y=\frac{x}{\|x\|}$?
is there a closed form expression for covariance of $y$?
|
In generalized estimating equations we have a glm-response variable.
To establish notation, we let $Y_{i}=\left(y_{i 1}, \ldots, y_{i n_{i}}\right)^{\text {T }}$ be the $n_{i} \times 1$ vector of outcome values and $X_{i}=\left(x_{i 1}, \ldots, x_{i n_{i}}\right)^{\mathrm{T}}$ be the $n_{i} \times p$ matrix of covaria... |
I want to use a Linear Mixed Model on the following design: 20 subjects with one between-subjects factor (10 males, 10 females). Each subject is measured at 4 timepoints: At 0 weeks, 2 weeks, 4 weeks, and 6 weeks. There is a single dependent variable being measured (say, blood glucose concentration).
The kicker is... |
I was reading a very short passage about GLS (Generalized Least Squares Regression) provided with insufficient reference. I understand the derivation process of the BLUE $\hat{\beta_G} = (X^TV^{-1}X)^{-1}X^TV^{-1}Y$ where $var(\epsilon) = \sigma^2V$. What I don't understand is the derivation of the distribution of $\fr... |
I have been told by my teacher that I may want to use these, however I am afraid they are not compatible with the wide range of possible valid answers, in the end. Despite the Question Answering (QA) purpose of the bot.
Also maybe part of the problem is that I struggle to find documentation on these metrics, especially... |
Let's consider this very simple example with Poisson regression:
y <- c(1, 2, 3, 2, 1, 4, 5, 6, 7, 1, 2, 3)
x <- rnorm(length(y))
z <- runif(length(y))
mod <- glm(y ~ x + z, family = poisson)
As we can observe, the null deviance is equal to:
mod$null.deviance
14.10487
However, my manual calculations (based for examp... |
I am running a multi-level model in R, and the results suggest that the intercept is highly non-significant p = 0.9, but that two of the variables are significant. All the variables are Likert scores of mood and enjoyment.
Does this mean that I cannot interpret the effect of the predictors on the outcome variable?
|
In his CNN video, Andrew Ng explains the benefits of convolutions over FC, and he mentions sparsity of connections as being one of them. Can someone please explain what is the benefit of sparsity when going from one layer to another?
|
I am trying to run some simulations to implement a test that is supposed (according to the theory) to follow a chi-squared distribution with 1 degree of freedom. My setting is as follows:
The data $Z_i$, $i=1,\cdots,n$ comes from the normal distribution $\mathcal{N}(\alpha_i,\theta_0)$ so that $Z_i$ has mean $\alpha_i$... |
Here is a picture of my dataset. I have three questions. 1) What are the dependent independent variables in this dataset? 2) How can I identify the year here as ordinal or nominal? 3) What possible hypothesis statements can be drawn out of such a dataset?
|
Suppose I have a proportion estimate defined as the proportion of times some event occurs out of $N$ trials. I call this proportion the sample proportion $\hat{p}$, while I call a second as the true population proportion $p$. Suppose I have something akin to a bootstrap over different inputs, where I can generate many... |
The events:
Let each event have two possible outcomes: $A$ with probability $p$; $B$ with probability $1-p$
The events are independent
Problem:
In the limit of the number of trials $N$ tending to infinity, what is the (normalised) distribution of `lengths' $l$ of clusters of $A$ events?
An example:
$AAABABAABBAAA$ has ... |
How can i calculate the confidence interval (CI) of a weibull distribution?
I have raw data e.g.: 3,5,7,2,11,97, 223, ...
I can calculate the mean (µ), standard deviation (SD).
But how can i calclulate the confidence intervals?
And the next question would be how can i calculate the z-score for a non-normal distribution... |
I am trying to prove the equality of $$\rm MSE(\langle I\rangle)=Var(\langle I \rangle)+Bias(\langle I \rangle)^2$$ but obviously I got something wrong as they don't equal in my calculation:
So here is the example. I use monte carlo to estimate this integral:
$$I = \int_0^1 5x^4~\mathrm dx$$
The value of this integral ... |
There is one thing in data science that I cannot understand. When we have algorithms like Random Forest, Gradient Boosting, Neural Networks, we split our data into three parts - train (to train our model), validation (to choose best hyperparameters), and test (to get most accurate out of sample error).
In standard OLS ... |
I have some doubts on when to perform eda and the preprocessing the dataset should be put through.
Should EDA be performed before or after balancing the
dataset?
Should one hot encoding and label encoding be applied to factor variables before EDA?
I guess what I'm asking is: should eda be performed on the dataset t... |
I would like to answer the following question: Does variable X (numerical variable), for example, X= average daily activity of a person, change with age? For example, can I say that generally older people tend to have less daily activity than younger people?
I have 3 groups of people, grouped by age, each person with o... |
I am trying to estimate the cumulative effect. When I have an ols regression with many dummies as explanatory variables, can I sum the coefficients to find the cumulative effect?
If yes, how do I find the level of significance of the sum? For example I would like to check the effect of central banks announcements in co... |
I am well-acquainted to basic topics of experimental designs such as anova, ancova, crd, rbd, lsd, factorial design, robust design etc (as per the book of Dr. D. C. Montgomery). Now as per my recent ongoing research curriculum, I need to learn more mathematically oriented combinatorial design. The topics I need to lear... |
I have been questioning how to calculate the partial derivatives of a conditional probability function with respect to its parameters.
Assume $x$ is data and $\theta$ is a parameter(s). If I have a probability $p(x|\theta)$ in an explicit form, it will be easy to derive its (logarithmic) derivatives $\nabla_\theta \lo... |
I have a dataset like the following (n=1400):
register country PC1
CMT BD 0.528902409041985
CMT IN 0.659599336404661
CMT LK 0.424746884028921
CMT PK 0.617481735398022
CMT UK 0.432241778651171
CMT US 0.520006978931032
TWT BD -0.120412754435259
TWT IN -0.775416939396557
TWT LK -0.331060813776788
TWT PK -0.04... |
Dear StackExchange community,
I have a problem of identifying where two distributions $F$ and $G$ intersect (cross each other). In particular, I have an empirical estimation of $F$ and $G$ from the data I have and I'm looking for a point above which $G$ is likely true over $F$. In other words, $F$ is a reference distri... |
I am trying to derive conditional posterior distributions of parameters $\theta$ and $\sigma^2$. I know that $X_1,...,X_n$ are i.d.d. $N(\theta,\sigma^2)$ and joint probability distribution for $\theta$ and $\sigma^2$ is:
$$\pi(\theta,\sigma^2) \propto \frac{1}{\sigma^2}, \theta \in (-\infty,\infty), \sigma^2 \in (0... |
In Bayesian statistics, logistic regression can be facilitated by priors, a link function, and a likelihood choice of either the Bernoulli or Binomial distributions.
My question is whether this design choice affects assumptions of independence per observation.
Consider runners running a race, and we are interested in t... |
I'm trying to determine the relative contribution of each variable, including the fixed effects, in explaining the overall model. The variance is provided to do this for the random effects, but I'm not sure how to do this for the fixed effects. Any suggestions for how to do this would be very much appreciated.
Linear m... |
If you have transformed your data, is it true that when reporting results, such as descriptive statistics (e.g. mean, median, range, variance, standard deviation etc.), you need to revert the data back its original form?
If so, how would you go about doing this for log, square root, and Ln transformations?
|
When I looked at the source code for the rlm() function:
irls.rrxwr <- function(x, w, r)
{
w <- sqrt(w)
max(abs((matrix(r * w, 1L, length(r)) %*% x)/
sqrt(matrix(w, 1L, length(r)) %*% (x^2))))/sqrt(sum(w * r^2))
}
above code has been used as a stopping rule where x is the ma... |
My lecturer introduced the concept autocovariance generating function (ACGF) of a stationary process in class.
$G(L) = \sum_{k = -\infty}^{+\infty} \gamma_kL^k$ [1]
$\gamma_k$ is autocovariance at k-th lag.
She also mentioned that we can retrieve information of $\gamma_k$ from this by differentiating this polynomial k ... |
Purpose
Persistent homology is a fascinating approach to exploring data (see Chazal & Michel 2021 for an introduction). I have seen many impressive examples of it through AATRN. I'm considering how it can be used in my current and future projects. I am finding it confusing to consider the examination of persistence dia... |
Can someone suggests a literature that describe a procedure for projecting a piece-wise linear and piece-wise quadratic classifiers?
For example, let's say I have these classes:
How would I calculate optimal intersection point? I need the same of quadratic classifiers.
|
Bob gives Alice a weighted coin that lands on tails with some probability $p$. Specifically $P(p \le z) = z^4$.
Alice flips the coin 5 times, and every time it lands tails.
Find the probability that Alice's next flip is also tails.
My attempt (not sure if this is right):
$E[p] = \int_{0}^{\infty} (1-F_{Z}) dz = \int_{... |
I checked multiple sources on the internet about which is the better, mean or median. They say that IF there are outliers in the data or if the data is skewed then the median is better.
They also say that the median is close to the mean if the data is not skewed(for example: Normal distribution).
But Doesn't that imply... |
Let $\\\{X_n\\\}$ be a sequence of i.i.d. random variables whose
values are non-negative integers. Let $N$ be a random variable that is independent of $\\\{X_n\\\}$. $N$'s values are also non-negative integers. Let $S_N = \sum_{i = 1}^N X_i$.
Show that $P_{S_N}(z) = P_N(P_X(z)), z \in [0, 1]$.
$P_{S_N}(z) = \Pi_{i = 1}... |
If a daily anomaly is a difference between the daily mean from the corresponding daily climatology for the sought calendar day of the year, how to calculate the composite daily anomalies? Is there a general formula for it?
|
I have a longitudinal dataset and I am trying to create two variables that correspond to two time periods based on specific date ranges (pre- and post-) to be able to analyze the effect of each of those time periods on my outcome. However, when I tried to create these time period variables as exposures to use with my o... |
I'm studying the ROC curve theory but I'm struggling with an apparently simple exercise.
To recap what I know:
"The ROC curve is a graphical plot that illustrates the diagnostic ability of a binary classifier system as its discrimination threshold is varied. It is created by plotting the TPR (y axis) against the FPR (x... |
I followed the usual steps and found a neural net that works well. I split the data into training, validation, and testing sets, tried a few approaches using the training data, saw how they worked using the validation data, went back and forth a few times, built and estimated one particular neural network, tested it on... |
I am predicting the salary to be offered to a new candidate for which I am concentrating on just continuous (9 in number) variables. Variables are as attached. When I ran OLS the coefficient for total experience came out negative but it is not expected to have a negative coefficient for total experience when "salary to... |
I have been suggested to use the log of a log-transformed independent variable (i.e., log(log healthcare expenditure)). I am not sure how would this make sense. Is this a standard practice (in the social sciences/epidemiology)? I haven’t been able to find any examples of this in the papers that I have read.
|
This post is related to my previous ones, but now I'm looking at each year separately (i.e, this is not a repeated measures design). My data set looks like this:
SUBJECT PROFICIENCY (in Eng) SCORE LANGUAGE
PETER 100 154 Spanish
PETER 100 132 English
MARY 95... |
Question
What are training dataset, validation dataset and testing dataset in K-fold cross validation?
Which is used for model selection, validation dataset or testing dataset?
Either validation dataset or testing dataset should be used for model selection. What is the one that isn't for model selection used for? (Why... |
We are comparing the performance of two type of cars, Renault and Chevrolet cars. We know that $\bar{X_R} = 16.9$ with $s_R=1.3$ and $\bar{X_C}=14$ with $s_C=1.5$. We need to test at $\alpha=0.03$ significance level whether Renault performance is 20% superior than Chevrolet cars.
I´m having trouble stating the test hyp... |
I know that with k=1 a KNN lead to overfitting, this is because it follows the noisy data of the training sample and not generalize well on new input sample. But I am confused on how this happens, I understand the graphics but cant't figure out an example. For instance, why in the training data noise are followed and i... |
I get the MLE log likelihood to get a "good loss", and that DL models have non convex losses, thus leading to have local minima and so on.
However, my point is a bit different. Assume that we have a NN, and we want to do binary classification.
Independently if we use MAE, MSE, BCE, having 0 loss would mean that we are ... |
So I downloaded stock data and differenced it to get log returns. Im trying to split my dataset in a pre-covid and covid period so I try to detect my dataset for structural breaks. I fitted the Strucchange package and it results in a certain amount of breakpoints. The problem is one of the breaks is around 01-03-2020 w... |
$X$ is a discrete random variable from power series family (e.g., binomial, poisson etc.). is it possible to find an upper bound for the m.g.f of $X$?
N.B: from stack exchange I obtained the following statement:
Suppose $X$ is a bounded zero-mean random variable taking on values in $[−σ,σ]$ and let $G(t)=E[e^{tX}]$ be ... |
TL;DR: Although my model is predicting correct classes, it is not very confident about those correct predictions.
My dataset contains 32x32-sized images for 46 classes. I have trained a Deep Convolutional Neural Network which is giving me a high class prediction accuracy (~98.8%) and F1 score (also above 98%). However,... |
After I run the program, it shows two variables with exactly the same Wald Chi-Square, how can I interpret these statistics?
Can I say that it is Quasi-complete separation that a single level of a categorical input has 100% rate for event for the event of interest? Or can I say it is a problem of collinearity?
Let's sa... |
I am trying to fit a curve to a set of measured data. Similar studies have been done, and the resulting curve fit is usually of the following form.
$$\frac{1}{\sqrt{Y}}=a \log{\left(X \sqrt{Y}\right)}-b$$
I need to find the $a$ and $b$ that will result in the least error; I think maximizing $R^2$ would suffice.
The met... |
Quant Interview Question:
Given $y$ = $a_1$$x_1$, $y$ = $b_1$$x_1$+$b_2$$x_2$, $cov(x_1,y)$ != 0, $cov(x_1,x_2)$ > 0, $cov(x_2,y)$ = 0. Compare $abs(a_1)$ and $abs(b_1)$. Which one is larger and why?
My intuition tells me that this has something to do with linear regression since covariance is given. The OLS coefficien... |
I have a question about whether multilevel modeling is appropriate in my situation. I’m working on an analysis looking at the effect of an training camp for factory workers in 20 different factories with a quit rates of each factory. My data is an unbalanced panel, with outcome and independent variable varying by time.... |
In the second answer (https://stats.stackexchange.com/a/368426/287815) to the question (Why will ridge regression not shrink some coefficients to zero like lasso?), the OP found out that,
$β = /(^2+λ)$
My question:
Can't the $\beta$ be 0 if one of x or y is a zero vector?
|
Given that P(A) and P (B) are independent and
\begin{equation}
$P(A=1)=\frac{1}{2}$
$P(A=-1)=\frac{1}{2}$
$P(B=1)=\frac{1}{2}$
$P(B=-1)=\frac{1}{2}$
There is a random variable $C = A \cdot B$,
C is independent with A, with B but not with A and B.
I have a couple of questions about this:
1.Will C be
$P(C=1)=\frac{1}{2}$... |
I fitted a continuous dependent variable against two explanatory variables. However, one of the explanatory variables is expressed as a percentage. Consider the regression model: $y = 0.05 + 0.032x_1 + 0.024x_2,$ where $x_2$ is expressed as a percentage. How can one interpret $\hat{\beta}_2=0.024$?
|
I don't understand what's wrong with this chain of logic.
Null Hypothesis: A coin is fair
Alternative Hypothesis: A coin is biased.
Suppose you flip a coin 900 times, and 450 times it comes up as heads. The probability of this is ~2%, so under a 5% significance level, we reject the null hypothesis.
More generally, I ... |
Hi I’m really struggling to decide whether or not alcohol consumption in units is discrete or continuous data.
Would really appreciate any help thankyou.
|
I have a question that I thought was simple but I can’t seem to find an answer.
Let’s say I have N number of models that will predict a binary event and i have an accuracy assigned to each model, for example:
Model 1 is 82% accurate,
Model 2 is 60% accurate,
Model 3 is 40% accurate,
Model 4 is 20% accurate,
How would I... |
I'm trying to understand how collinearity affects feature importance for tree-based models.
My understanding is that tree-based models naturally overcome multicollinearity for the purposes of prediction, but there seems to be conflicting information about how this affects feature importance calculations.
In my particul... |
I use inverse probability weighting (IPW) to estimate the impact of a marketing intervention in the retail industry. There is a test group of stores and a control group of stores, and the intervention is buy-one-get-one (BOGO) promotion for sneakers. I have sales data starting from the first date of the BOGO promotio... |
I'm working on the survival rate with transaction data.
I can use the transaction date for CoxPH, but I wanna know whether I can try to use the number of transactions instead of the transaction date.
[Edit]
To be specific, I wanna use the number of transactions as a type of time scale. So, the result would be "survival... |
There are many questions on this wonderful site about post-hoc contrasts within chi-squares, however none of the posts I have seen have quite answered the questions I have about the procedure. I will use data from this CV post, concerning disparities in gender publication rates at five different journals, to illustrate... |
I often hear people talk about correlation between events, e.g. event A and event B are positively correlated.
However, unlike correlation between random variables (i.e. $\frac{Cov(X,Y)}{\sigma_X \sigma_Y}$ ), I can't seem to find a numeric definition of correlation between events.
In this book, it is mentioned that
$... |
I am currently working on a project involving banking stock price data. I have around 3000 observations, some columns have a lot of missing values (null value); they can account for 5 to 50% of the total observations. I have no idea what is the proper order for handling missing values, outliers and take log transformat... |
I am trying to train a model using data parallelism on multiple GPUs. As I think, in data parallelism, we divide the data into batches, and then batches are deployed parallel. Afterward, the average gradient is calculated based on the current batch errors (for example, if there are 2 GPUs: errors will be 2 batches) and... |
Say I quantitatively measure a specific trait of each of the students in a group so that each of the students receive a score. The average score of the group is $X_0$. After a treatment, I measure a gain, and the average score of the group post-treatment is $X_1$.
In most cases, what's interesting is the difference bet... |
I have a dataset that looks like this.
Month Name Class GPA
1/1/2020 Anna Math 3.2
1/2/2020 Anna Phil 3.1
1/4/2020 Anna Math 3.0
1/5/2020 Anna Math 3.4
1/7/2020 Anna Phil 3.5
I want to use this data to forecast GPA for the next few months. So the desired result will look like this. In the actual da... |
I have small dataset (<10k) of emails (plaintext) that need to be classified. Currently I'm doing research on topic of email preprocessing and I can't find any suitable solution for quoted text detection. There's plenty of answered similar question on StackOverflow (example question), but they all agree on rule-based s... |
I've become very interested in SEM recently, and while reviewing the literature on the subject I've run into the problem, that almost none of these descriptions are very general per se, they all handle specific cases. Bollen has the most comprehensive treatment but I've noticed he's made two assumptions:
No path betwe... |
Say I have a scale 2-12 and want to transform it into the range between 0-1. I would use the following formula:
$$ y={\frac {x-{\text{min}}(x)}{{\text{max}}(x)-{\text{min}}(x)}}$$
Sometimes I just saw this formula and other times they said explicitly to transform the observed data. But if my observed data doesn't inclu... |
I'm an English teacher doing some research, and need help finding the right statistical tool. Here's the basics:
I have transcribed hours of student conversation from audio recordings as they played a game. Then I went through the transcripts and looked for patterns/themes of conversation that often emerged. I ended up... |
Oftentimes I see that people address missingness from the perspective of missing at random (MAR). However, there are cases where missing not at random (MNAR) in which one can sometimes be handled with stuff like imputation. However, I'm thinking of another case which is more complex but likely not uncommon.
Let's say p... |
I'm making a non-inferiority study: two groups complete a test (where it is possible to score 0-30 points). I already have the test results for groupB. I want to investigate if groupA performs non-inferior to groupB, using two one-sided t-tests (TOST).
I chose an alpha=5%, and 95% CI. To get this, using TOST, I would h... |
I have some historical dataset where I have the measure of a concentrate at different times of the day and I just want to create a simple model to predict the measure in the future.
So, the measurements are done at 15 minutes interval and my dataset looks as follows:
timestamp,concentrate
2019-08-01 00:00:00,872.0
2019... |
I am looking at the Kaplan-Meier estimator of the survival function when we have no censored observations. Let $$\hat{S}(t) =\begin{cases} 1,&\quad t<t_1, \\
\prod_{t_i\le t}[1-\frac{d_i}{Y_i}],&\quad t_1\le t\end{cases},$$
where $t_1<t_2<...<t_D$ are our observed failure times, $d_i$ is the number of events at time $... |
I have a prospective study where I need to compare the effect of heat (using an index) on health parameters (heart rate, sleep and steps) of a target population (for example adults with heart disease) compared to a control group (healthy individuals). Both groups will be under the same heat conditions throughout the st... |
I have a count variable nlongfix of number of long eye fixations on stimulus during a trial, which I'm modeling with a difficulty (of the task) variable dims. Because nlongfix is overdispersed, I'm reading that I should use a negative binomial regression.
The nlongfix variable is one measure among many others in an exp... |
I am fitting a non-linear regression model with 3 covariates $(x_1,x_2,x_3)$. The covariates $x_1$ and $x_2$ have linear effects, and $x_3$ covariate has a non-linear effect using a b-spline with 5 degrees of freedom.
The covariates $x_1$ and $x_2$ are standardised (zero mean, unit variance, in R using the command scal... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.