instruction stringlengths 9 38.7k |
|---|
A large number of subjects repeatedly pass or fail a test. The test frequency is irregular and randomized per user.
Organize this data set in groups by the average test frequency being once per week (or more), once per month, once per quarter, or once per year.
For each group, we want to understand how much the fail ra... |
I'm trying to model a random variable $X_i$ related to updates in prices. The updates in prices are always non-negative, and my random variable is the update coefficient. For example, if product $a$ had a price of 100 and and now has a price of 110, then $X_a$ is $0.1$ because $NewPrice_a = OldPrice_a + OldPrice_a \cdo... |
This is a coding question. Basically, in a Poisson model, I would like to calculate risk ratio between 10th percentile and 50th percentile (i.e., predicted value at 10th percentile divided by predicted value at 50th percentile) and 90th percentile over 50th percentile.
The current codes that I know are:
poisson wt_num ... |
I have a dataset containing monthly sales data for different product categories spanning five years (60 months of data). I am using a Python process to calculate the seasonality for each category, resulting in a 12-item vector representing the expected monthly sales distribution over a year (it always adds up to 1). Th... |
Using the standard glm(...) function in R for Bernoulli regression, it appears that the residual deviance has the same value as the binomial deviance where each observation is calculated with $n_i=1$ [1]. Is there a reason for this formula?
Should it improve any properties? For example, the actual Bernoulli deviance sh... |
I'm running a generalized linear mixed models (GLMM) and am comparing the Laplace approximation to the Gauss-Hermite Quadrature. I have three predictor variables (fixed effects) and each is a number between $0$ and $1$. My response variable is either $0$ or $1$.
The Laplace approximation gives me a very large variance ... |
I have a dataset with $10$ inputs containing real numbers and an output which is binary ($0$ or $1$), and I need to make predictions. So, I thought of using multiple linear regression to predict an output. If the output is $\geq 0.5$, we can assume the binary output is $1$ and if the output is $< 0.5$, the binary outpu... |
I have a dataset of ads from two groups of advertisers. Each ad has a delivery parameter that gives you the fraction of the ad that went to the 50 states of the U.S. (The fractions add up to 1). I want to compare which advertiser had the dominant delivery fraction in different states. I am comparing the fractions at th... |
$\newcommand{\e}{\operatorname E}$"Obviously" if $g$ is a weakly increasing function and $X$ and $g(X)$ are both random variables with finite variance, then the covariance (and hence the correlation) between $X$ and $g(X)$ is non-negative. But there is the question of how to prove this "obvious" proposition. My questio... |
A heritability statistic, as I understand it, describes the percent of variation in a trait that is attributable to genetic variation, with the rest attributable to environmental variation.
I've heard it described that if you have a heritability estimate for a trait of 50% and two groups' means differ in that trait by ... |
I have a count of how many people responded to an ad, but I don't have an official count of how many people saw the ad in the first place. I do have an estimate of how many people saw the ad though based on industry knowledge. My question is can I use the estimate to calculate the response percentage? How should I go a... |
Consider that the database has only three transactions {<a1,a2,...,a100>,
<a1,a2,...,a50>, <a1,2,...,a25>}. Suppose min_sup = 2. Give the equation for all
frequent itemsets. Also list all the closed and maximal frequent item sets.
I didn't understand what is meant by 'equation'. I answered that itemsets have to conta... |
The statistical software DAGgity offers a graphical web-based UI as well as an implementation in R that allows for finding conditional independences corresponding to d-separation, minimal adjustment sets for causal effect, and much more. The rapid response of the UI indicates that the implementations are efficient.
Sin... |
I have two types of outcome from a big dataset and I performed prediction models and checked the prediction performance using 10-fold cross-validation, so:
for binary outcome: lasso logistic regression, then I calculated AUC after 10-fold cross-validation
for time-to-event outcome: lasso cox model, then I calculated ... |
Why density function of survival time is called instantaneous failure rate. I am confused why density function is a failure rate for survival time.
|
The basic KL-Divergence between two distributions is as:
$KL(N(\mu_1,\sigma_1) || N(\mu_2, \sigma_2)) = \log \frac{\sigma_2}{\sigma_1} + \frac{\sigma_1^2 + (\mu_1 - \mu_2)^2}{2 \sigma_2^2} - \frac{1}{2}$
I am reading VAE neural networks, that use KL-Divergence against $N(0, 1)$. However, in the articles the equation is... |
I have survey data from a complex survey with stratification, weights and clustering.
I'm using the survey package in R to run regressions:
svyglm(y ~ x, my_design_object)
Now, I need to add more weights - that is, I have a separate need to weight the respondents, independent of the survey design. Normally, I'd just r... |
I'm quite new at using the cox proportional hazards model and was wondering if someone can please offer some advice on whether this log - log plot shows whether proportional hazards assumption has been violated or not?
Thanks.
|
I am doing an analysis of the experimental data I have collected. In particular, I should do a panel regression.
I have collected data from my experiment on public goods. My variable of interest is Contribution, i.e. the choice of how many tokens to pay to the public good for each participant (0 to 9 maximum). the game... |
I cannot think of an appropriate statistical test: I am conduction a retrospective chart review on patients. I'd like to see what a specific condition B (All patients have Condition A, several of them have ALSO condition B) contributes to various outcomes.
To visualize it a bit
......................| Death | Intensive... |
The answer key says "Different link functions have different shapes and can therefore fit to different nonlinear relationships between the predictors and the target variable."
Shouldn't we say "relationships between the linear predictors and the mean target"?
|
It is common econometric disciplines to model an baseline + incremental quantity due to treatment. E.g baseline sales + incremental sales(due to marketing).
It is common to deploy loglog models to tackle e.g diminishing marginal returns.
Consider e.g the model $y = e^{\text{trend} + \text{seasonality}} \cdot \prod_{k \... |
Some details about my design can be found below:
There are 2 groups: Group 1 and Group 2.
There are different numbers of people in each group.
A pre/post (measurement) of stress is taken several times for each person. However, all people have a different number of measurement times.
My hypotheses are consequently:
S... |
In Chapter 1, Handbook of Markov Chain Monte Carlo, Geyer writes
Suppose you have a computer program
Initialize x
repeat {
Generate pseudorandom change to x
Output x
}
If x is the entire state of the computer program exclusive of random
number generator seeds (which we ignore, pretending pseudorand... |
Does anyone know why longitudinal regression models are still able to work when you have a different number of observations for each person (non-balanced design)... but ANOVA models are not able to work as well in this situation?
|
If I run $n$ samples of a physical experiment, I expect to see roughly similar time vs. position plots but with slight variations run-to-run. What are good statistical metrics to quantify the consistency of run-to-run variations of this time series data? Ideally, they would be unitless and easy to understand, perhaps s... |
I have data collected over a year in months Oct2021, Dec2021, Jan2022, April2022, July2022, Aug2022, Oct2022. Ultimately, I would like to understand how my response variable varies across time. I know I could consider time in two ways, either considering the seven months ( counting each October as a unique one), or co... |
Let's say I repeatedly toss a coin each day, until I get tails which terminates each run. I do that 1999 times (1999 runs). I count how many heads I got each run. 0, 1, 0, 3, 0, 2, 1, 5, 0 etc.
What is the probability I get both a run of 20 heads in a row, as well as a run of 18 heads on any given day? M = 20 N = 18 K ... |
Lets say I have a multivariate time series and I will run unit root tests for each variable to figure out if the variable is stationary and how many differencing are necessary to make it stationary.
If I am only doing forecasting, which is a prediction task, do I need to worry about the multiple comparisons problem in ... |
I have a features like below
id
x1
x2
x3
x4
x5
id1
0.4
1.4
5.6
1
0
id2
-0.01
0.5
-3.4
0
1
where x1, x2, x3 are continuous features and x4 and x5 are binary. The goal is to find $k$ clusters using Gaussian Mixture Model (GMM). However, given there are binary features (i.e., x4, x5) along with continuous on... |
As the title suggests, I would like to find the MGF of the max of iid exponential random variables. Assume $Z=\max(x_{1},...,x_{n})$, where $x_{i}$ is distributed as exponential($\beta$) and has pdf $\frac{1}{\beta}e^{-x/\beta}$. I already found the pdf of the max: $\frac{n}{\beta}e^{-x/\beta}[1-e^{-x/\beta}]^{n-1}$.
T... |
In the book "Quantitative Risk Management: Concepts, Techniques and Tools - Revised Edition" (by McNeil, Frey, and Embrechts)", there is the following example (example 2.11):
Suppose that the loss distribution $F_L$ is normal with mean $\mu$ and
variance $\sigma^2$. Fix $\alpha \in (0,1)$. Then
$$ VaR_\alpha = \mu + \... |
I want to ask a question about domain estimation (i.e., estimation of a parameter among subpopulations) in a stratified random sample.
It seems to me that in a stratified random sample, domain estimation can be easily done for sampling strata, because within each stratum the sample is an independent random sample. Howe... |
This data are from measuring optical density in a bacterial growth experiment. These correspond to 4 time series which are biological replicates of exactly the same treatment (with the label 0_4)
The series F6 looks like an "outlier", the trend is similar but the magnitude is totally different. This is evidenced furt... |
This post is to understand differences between multivariate linear regression models (i.e multiple independent variables predicting multiple dependent variables) and running multiple linear regression models for different dependent variables.
When we run multiple linear regression models for different dependent varia... |
In a classification problem, I want to know how to manually manipulate the data to weight the classes without using the features provided by the machine learning library. For example, if I double all feature values in sample with class 1, will class 1 have a weight of 2?
If there is a way to do this, I would like to kn... |
I wrapped up my undergraduate statistics degree recently and am about to start a stats heavy role as my first job. I've been brushing up on my frequentist knowledge and I'm currently trying to find a simple way of interpreting a confidence interval (say for the mean of the sampling distribution for convinience). Wikipe... |
I'm using a mixed model to do a hypothesis test of an intervention effect (group: 0=control, 1=intervention) in an RCT with two time-points: Baseline plus follow-up 6 months after baseline. In addition, I want to control for the effect of recruitment-site.
I've got the following questions:
I'm studying the following m... |
I have data collected from an experiment in which 24 subjects did the same task 4 times. So in total I have 96 data points. My research hypothesis is that there are always linear relationships between dependent variable Y and independent variable X regardless of time. I am thinking of two options.
Do 4 linear regressi... |
I have performed Wilcoxon signed-rank tests for variables $X$, $Y$, and $Z$, where it appears that (speaking informally) $X < Y < Z$. Indeed, the p-value for the one-sided Wilcoxon signed-rank test for $X$ vs $Y$ is $p_{X<Y} = 8 \cdot 10^{-3}$, and that for $Y$ and $Z$ is $p_{Y<Z} = 4 \cdot 10^{-6}$. Yet I have $p_{X<Z... |
As the question states, how can I prove mathematically that 2d support vectors are enough to always be able to formulate the Maximum Margin Hyperplane in d dimensions?
|
I have two empirical categorical distributions: P and q with |P| >> |q|.
P is the full description of my population, so I treat it as the reference baseline distribution. q, however, is a much smaller observed sample which I hypothesize to be coming from an unobserved distribution Q. All I know about Q is q.
Is there a... |
Assume that you have a model
$$\dot x = Ax + Bu$$
$$y = Cx$$
And this model is SISO. Single input and single output. You got the mission to determine of an observation is acceptable for the kalman filter.
What does that mean? What is the observation?
The tools you need to use to accept the observation is mahalanobis di... |
I recently was asked to help a colleague with some analyses thinking that we were looking at a cross-level interaction. When looking at the data it seems like the question being asked involves a Level-2 IV, a Level-2 moderator, and a level-1 DV. Can anyone point me to some good example syntax in either R or Mplus or an... |
I have the first impression the hierarchical two way table, it throws out the gasoline, it creates a new category called "other food at home"
How to reconcile the numbers under Food at Home in the hierarchical two way table, and that of the stacked barchart?
|
I do mostly econometrics but am faced with a repeated measures type sample. I can solve it as a regression with dummies, but feel like I'm losing information in the repeated cases. I know the medical literature has many debates about the experimental design for these types of situations and would appreciate advice.
Sup... |
I have a series of probability density functions (pdfs) such that I can create a ridge plot with them evolving in time. Is it possible to know the intermediate function in between two of the functions I have sampled? i.e. I have the pdf for instants $t=1$ and $t=2$ but I know that the time evolution is continuous, is i... |
Say I have treatment and control, perfectly randomized.
I have 70000 conversions for treatment in 80000 users.
I have 70100 converions for control in 800100 users.
My null hypothesis is that there is at least a one percent difference between the conversion rates.
prop.test does not allow you to set a "difference" level... |
I have the data below and We have a game, that has a prize jackpot. The jackpot prize starts at 1,000 credits and every round you play the jackpot increases, until someone wins the jackpot and it resets back 1,000 credits.
To play a round you 'pay' 1 credit and the jackpot prize increases by 0.011382 (1.1383% of your 1... |
Context
I work for a company that has an e-commerce website. Regularly we make specific campaigns in order to sell more. For example: We can make a campaign for fathers day, black Friday, crazy August, and so on.
Problem
It is hard to understand the impact of the campaign on sales. Because the impact of the campaign ca... |
In longitudinal models, we calculate correlation/covariance of individual subjects (e.g. mice in lab)... but in many experiments, we only have 3-5 measurements for each subject. Generally, we say that 3 measurements is too few to calculate variance ... so does this mean that even though I have 1000 subjects, but if I o... |
My problem is the following:
I have 1/0 "conversion" outcomes.
I have samples from three groups: people who speak russian, people who speak japanese, people who speak portuguese. i expect the conversion rate will be different from each group.
each language group is placed within a treatment or control cohort randomly. ... |
I am currently working on an image recognition project using AI, but I am facing challenges with bias in my model's predictions. The model seems to be biased toward the majority classes in my dataset. Despite attempting oversampling, undersampling, and ensemble learning techniques, I have not been able to resolve this ... |
I am training an object detection model using the YOLOv5 architecture. I have the following classes and counts.
| class | n_instances |
| ----- | ----------- |
| dog | 1000 |
| cat | 4000 |
| fox | 8000 |
My training dataset is imbalanced. The difference between the largest and the smallest ... |
I have a similarity score function, $s(x,y)$. I know that I have two items that I'm trying to compare the similarity of, but both are based on the same template. How would I remove the template from the similarity?
In other words, I have $s(a,b)$, $s(a,T)$, and $s(b,T)$. I'm trying to find $s(A,B)$ where $a=a+T$ and $b... |
Which regression model would you choose to model the following flood damage data? The variables are x1=water height, x2=dike height and x3=flood damage. The following plot shows how the flood damages depend on the water height, the zcolor is the overtopping of the water (x1-x2).
You can see two linear lines, in fact, ... |
I am following Bruce Hansen's Econometric textbook. Under the assumptions that $\{x_i,y_i\}$ are i.i.d., $E(e_i|x_i) = 0$, and errors are heteroskedastic, we derive the variance of the OLS estimator
$var(\hat{\beta}|\textbf{X})= (\textbf{X}'\textbf{X})^{-1}\textbf{X}'D\textbf{X}(\textbf{X}\textbf{X})^{-1}$ where $D = E... |
I am a little bit confused about normality assumption in T-Test for difference of two independent means. My reasoning now as follows:
If the distribution of the populations are non-normal, it's ok as long as the distribution of the sample means of both populations is normal for the given sample size.
If the distributi... |
I am measuring the distance between two time series that are of different length.
Time series were built by creating a score of windows of years:
t1 = (0,0.5,0.6,..,0.3) of length 72 representing years 1901-1931,1902-1932..
t2 = (0,0.3,0.8,..,0.2) of length 82 representing years 1901-1941,1902-1942..
Series are expecte... |
Before running the Hayes PROCESS for my moderated mediation, I would like to ensure first, that the linearity assumption is fulfilled.
However, at this point, I am not sure which variables need to be linear. Does the assumption only apply to the relationship between IV-DV? Or do I also need to include the Mediator & Mo... |
A while ago I came across the word "data leakage" for the first time, and after some research, I found that it is a common mistake among data science/machine learning practitioners. But the problem is that most of the data science projects I worked on Kaggle do the train test split after the data preprocessing step, kn... |
I have a couple Gaussian mixture models where each component comes from (component-wise) Box-Cox transformed data. These models do not describe the same data: the individual components are selected based on certain consistency criteria (irrelevant to this question). Because these data points represent measurements, I w... |
I want to calculate the sample size for a multiple linear regression with correlated residuals, specifically using generalized least squares. For OLS, it appears that there a various different rules of thumb recommendations and similarly, there are more specific formulae. For example, this is an excellent question and ... |
Say we have some real parameter $p$ we'd like to determine experimentally. If we have a single estimate of $p$ but no associated uncertainty, what prior probability distribution(s) can/should we use to represent our knowledge?
I can reasonably intuit that it would have to be a distribution with a defined mean but no d... |
I am currently reading a book on health technology assessment: Decision Modelling for Health Economic Evaluation (Briggs et al).
Given all information below, I'd appreciate if someone could show how they arrived at the transition probabilities.
Weibull output is given on Table 3.2 of the book:
And the transition proba... |
After performing GWAS, I calculated the percentage of phenotypic variance (SNP-based heritability) for top SNPs and random SNPs using GREML (GCTA).
The variance of random SNPs was calculated for 3 different groups of randomly chosen SNPs and then averaged to get the final result.
Top SNPs explained much more variance t... |
I'm working in Stata with a Cox model and I have a dataset in counting process style (multiple records per subject).
Each observation per subject has covariants that could potentially be different depending on the time (eg. diversity in quarter 1 vs quarter 10). Not sure if this would qualify as time varying covariates... |
I want to calculate the sample size for a retrospective non-inferiority study. I want to test if methodB has a sensitivity that is non-inferior to methodA in regards to detecting head traumas on patients.
MethodA has a sensitivity of 80%, and the non-inferior margin is 5%.
I'm using a sample size command in Stata:
ssi ... |
I am trying to learn the basics of Bayesian time series analysis, but am having trouble finding some up-to-date basic examples and a discussion forum where I might be able to get some guidance. (There are a number of questions here ostensibly similar, but they are quite old and I get the impression that the field has ... |
When building a glmm model with a binary outcome variable in R using the lme4 package I usually use something like the following structure:
model_1 <- glmer(binary_value ~ condition + variable + continuous_cov + (1 | ParticipantID), family = binomial, data = df)
model_interaction <- glmer(binary_value ~ condition + va... |
I'm wondering how to properly evaluate a trial which was performed using a cross-over design evaluating two instruction techniques. Group A is instructed by technique 1, Group B by technique 2, both perform the exam and we consider the percentage of correctly answered questions- and afterwards it's the other way round ... |
I'm applying hyperparameter tuning with techniques such as, randomized search and grid search in python. I could find important hyperparameters and tuned them for Random Forest Regressor algorithm, since there are many examples of this specific algorithm and I knew which hyperparameters are important to tune. But for o... |
Yesterday I was helping a friend in reviewing a clinical psychometric paper for his Bachelor's thesis. There, there is this table presented:
Now, the paper states that (the emphasis is mine):
"Data analysis
Data are presented as means with 95% confidence intervals or proportions (percentage) and rates (percentage per ... |
Here's my simulated data:
from scipy import stats
# Simulated dataset
n_sim = 1000
mu = 0
sigma = 20
df_sim = (
pd.DataFrame({
'delta_true': stats.norm.rvs(mu, sigma, n_sim),
'se_observed': np.abs(stats.norm.rvs(20, 10, n_sim))
})
.assign(delta_observed=lambda d: stats.norm.rvs(d['delta_tr... |
There are 3 events $A, B, D$ such that $D$ makes $A$ more likely and $D$ makes $B$ more likely. Does this mean that $D$ makes it more likely that both $A$ and $B$ occur? How can you prove this using mathematical formalism to prove it if it’s true or what counter example makes it false?
|
I am following this guide for training an Image Captioning model
It uses a dataset which always has 5 captions per image. My dataset greatly varies how many captions I have per image from 1-42. This is giving me errors when using the above code, because my data is not rectangular.
I had thought to rearrange the data so... |
I am working on a research project that investigates the effect of land subsidence and flood risk on property prices. I have used the Spatial Autoregressive (SAR) model to estimate the direct, indirect, and total effects of these variables on property prices, but I am not sure how to interpret the results and calculate... |
Suppose a dataset I with 20 samples pairs of x and y collected from 20 different farms in State A.
Another dataset II with 20 samples pairs of x and y collected from 20 different farms in State A, B, C, and D.
In a hypothetical situation, x and y is significantly correlated in the dataset II, but not in x and y in data... |
I have been given a dataset to analyze looking at some herbicide treatments for invasive trees in three states with 3 sites in state 1, 2 sites in state 2, and 1 site in state 3. We hope to answer which of the 7 herbicide treatments differed significantly from the untreated control after one year post-treatment. There ... |
I haven't seen a situation like this. Both B1 and B2 are dummy variables. If I regress them separately, it's fine, but if I add an interaction term, all the coefficients are the same. I'm using statsmodels. Overlap between the two can't be too high otherwise I'd imagine singularity problems.
Any idea what may cause ... |
This is Ex.2.4 from The Elements of Statistical Learning.
I don’t understand the sentence that I underline in the image.
I know that $\sqrt{10}$ is approximately equal to 3.1, but I don’t know how to get it.
I write my thoughts in the below image:
This may be a silly problem. I need your help
Thank you!
|
My data is very zero inflated - even when carrying out previous filtering, such as getting rid of data that has very low counts and have values in more than 60% of samples.
However, the 0 values still pose a problem when trying to CLR transform prior to correlating this relative data to some clinical metadata parameter... |
I'm looking to solve, from the paper https://arxiv.org/pdf/2210.02176.pdf,
$$\min_{g\in VAR(p)} \sum_{z\in \mathcal{Z}} (f( h_{x}(z))-g(z))^2\pi_{x}(z)$$
where $\mathcal{Z}\in \\{0,1\\}^{N\times W}$ is the set of coalition matrices.
$\pi_{x}(z)$ is a Shapley kernel, $f$ is a prediction function, and $h_{x}(z)$ is a mas... |
Are there any methods to determine normality of data and then transform that data to normal distribution if it isn't normal?
The task has been set: It is necessary to conduct research via ANOVA and use Fisher criterion and for this data must have a normal distribution. My question is that if this data contains excess a... |
Suppose $x_i \sim f(\theta,\nu_i)$ and $y_i \sim g(\tau,\theta,\nu_i)$ and $\nu_i \sim N(0,\sigma)$. Importantly, $f$ is smooth in $\theta$, but $g$ is not.
We have data on $x_i$, $y_i$ and the goal is to estimate $A=(\tau,\theta,\sigma)$.
The marginal likelihoods are:
$$L_{x_i}(\theta,\sigma) = \int f(\theta,\nu_i) \ ... |
Scenario: We want to evaluate our recommender system, which recommends items to potential customers when visiting a product detail page.
Here are actual relevant items:
Customer 1: Item1, Item2
Customer 2: Item3, Item4, Item5, Item6, Item7
Customer 3: Item8
.....
Suppose the max number of actual relevant items per cus... |
I was recently trying to solve a marketing problem. For say 300 trial users, only 3 converted to paying subscribers. The conversion rate for this sample is obviously 1%. And almost as obvious, we cannot be confidence that the actual (e.g. population) conversion rate is anything close to 1% with just 3 positives.
We are... |
Apologies for the naive question, but I have a problem I would like to solve.
Suppose I have a two dimensional likelihood of the form
$L \propto \exp\{-\frac{1}{2}\} \begin{bmatrix}x & y\end{bmatrix}' C^{-1}(\theta) \begin{bmatrix}x & y\end{bmatrix}$,
where the covariance matrix depends on some parameter $\theta$.
I wo... |
I read an econometrics book which states one of the basic assumptions of regression is that
$$E(u|x) = 0$$
In another book however I see it written that
$$E(u_i|x_i) = 0$$
Are these two saying the same thing? More particularly, is it saying
$$E(U|X=?)$$
Or does it mean for observation $i^{th}$, the expected values of e... |
I am completing a study that gathers subjective, quantitative data on a 0-10 Likert scale from patients that have single-sided deafness, that is normal hearing in one ear and impaired hearing with a cochlear implant in the other. They are asked to listen to an audio clip and rank numerous qualities on the Likert scale;... |
My question is pretty straightforward and the task behind is related to binary classification. To add a new feature, do i first do train_test_split then add a new feature to each split (train and test)? Or should i just add the new feature to the whole dataset initially then proceed to train_test_split?
Originally, I ... |
I have about a year's worth of timestamps at which boxes exit a manufacturing production line. ti are the timestamps, where the first timestamp is t1, second timestamp is t2, etc. These can be anywhere from a few minutes apart to many hours apart. I would like to analyze the probability distribution for the number of b... |
In a cohort study, you take 500 people and tell them to smoke cigarettes and you take 500 people and tell them not to smoke cigarettes: you then wait to see how many people in the future get cancer in both groups. Here, you are actively conducting a study. Cohort studies are better because in theory you have more contr... |
I have participants who have taken an intervention and are being measured at two different time-points. It is expected that the intervention will improve their knowledge, attitude, confidence etc. and I have created a survey to measure this. I would like to conduct a factor analysis to test whether each of these differ... |
I have a time-series dataset that is poisson-distributed, where each day I get a new additional datapoint. If I input all the data into a HMM (I am using code I found from hmmlearn in python) it does a very good job at estimating the hidden (binary) states on the older historic data. Unfortunately it does a very poor j... |
I have a bunch of data where I am recording two variables across time for many subjects: velocity of the right hand, and intensity of the speech.
For each of my 20 subjects, I have ~30 recordings of ~1 minute each.
So, my data looks like this:
I can calculate the correlation between the velocity of the hand and the in... |
Assume there's a hidden Markov Model $\lambda=(\pi, \mathbf{A}, \mathbf{B})$, where $\pi$ is an initial distribution, $\mathbf{A}$ is a transition matrix and $\mathbf{B}$ is an emission matrix. Also, there is a reestimated model $\bar \lambda = (\bar \pi,\mathbf{\bar A}, \mathbf{\bar B})$. The idea of obtaining ML est... |
I would like to know how to calculate the probability that 2 discrete samples come from the same distribution, and if so, which one is the distribution they are coming from.
Let's say we have 3 buckets, and 2 years.
Bucket\year
2019
2020
A
76%
73%
B
20%
22%
C
4%
5%
I would like to claim that they both c... |
I'm working with a basic linear regression model, and I have a question about the specification of the predictor. Consider this basic regression model:
\begin{equation}
g_{i,t} = \alpha + \beta_1 \ln(h_{i,t}) + \beta_2 \Delta \ln(h_{i,t}) + u_{i,t}
\end{equation}
where $h_{i,t}$ is the stock of knowledge for the $i$-th... |
To comprehend the concept of confidence intervals, I came up with an example. I want to share it here for your better understanding what my question is all about.
Suppose, we want to figure out what is the average height in a town M. We randomly selected $n$ people and measured their height. We got a sample average $\b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.