instruction stringlengths 9 38.7k |
|---|
TL;DR: How could the $R^2$ of a linear model approach 1 when the outcome is solely determined by interaction terms (i.e., there's no underlying "main effect")? It doesn't seem to happen when covariates are normally distributed, only with binomials. Looking for insights.
Hopefully the motivation here is simple enough: ... |
Papers such as COCO and the VisDrone often list MAP, MAP50, MAP75 in their evaluation criteria. To my understanding, MAP is the averaged AP for all classes across an IoU range (0.5 - 0.95 for example), and AP is the area under the precision-recall curve, a curve plotted using precision and recall values at each IoU ste... |
I've read that semi-supervised learning can be useful when you only have a small amount of labeled data. However, I'm struggling to understand the practical implications and benefits of this approach, e.g. for classification or regression tasks.
Why would having a mix of labeled and unlabeled data in the training set i... |
Trying to figure out how I can confirm that my A/B Test assignment is truly random. I know the runs test is used to test for randomness.
Is it possible to use the runs test to check if my A/B Test assignment is random?
|
Say I have two samples coming from surveys with complex sample design (stratification, clustering, unequal probabilities of selection, etc...). How can I test if the the two samples come from the same population?
I know about the Kolmogorov-Smirnov test for simple random samples. What's the generalization / equivalent ... |
I have a theoretical question..
I have a model, let it be random forest
I take 100 candidate features and train the model
I select all the features that are important from the point of view of the model (important features from the random forest).
Let the model select 40 features.
I'll call it the basic feature set
... |
I am trying to apply a model to my dataset. The way my response variable has been generated is a bit convoluted but it's been checked by my supervisor - I have strings of numbers (e.g 112222333322111) and I count the length of each run of numbers (1-2, 2-4, 3-4, 1-3). I then find the median length of these blocks (here... |
I've come over the following two statements to manually improve the fit of an ARIMA model by changing its parameters $p,q$.
If the AR coefficients sum to nearly 1 and suggest a unit root in the
AR part of the model, eliminate 1 AR term and difference the model once (more).
If the MA coefficients sum to nearly 1 and ... |
I am learning about the likelihood function given iid random variables $X_i$ and realizations $x_i$: $\mathcal{L}(\theta | x) = \prod_{i=1}^n \mathbb{P}(X_i = x_i)$. One thing I am confused about is the $\mathbb{P}(X_i = x_i)$ expression. For probability density functions, isn't this not well defined? My understanding ... |
Background:
I am currently working in a role where I work in Assessment and Selection of right-fit applicants for teaching roles at a partner organisation. We presently use a rubric with a few competencies (or, variables) that we have selected based on qualitative research, piloting, and validation using post-selection... |
In Neural Network Architectures I understand that lower dimensional mappings(for example mapping and input to a space of lower dimension) can serve the purpose of decreasing dimensionality while retaining the important information from the input. My questions is in what circumstances would we want to use a higher dimen... |
I am trying to implement a 2-PL dichotomous IRT Model for my dataset from scratch in Python. Here is my code so far:
def get_data_matrix(num_students, num_items):
data = np.random.randint(0, 2, size=(num_students, num_items))
return data
# Define the logistic function
def logistic_func(theta, b, a):
ret... |
I've been pondering the differences in notation / language used in some of the resources I've read for statistics / machine learning.
Warning: this might be embarrassingly obvious to any decent statistician, so apologies in advance.
1 iid data (Bayesian)
I am a big fan of Pattern Recognition for Machine Learning (Bisho... |
In randomized trials, I know that treatment effects such as the odds ratios, relative risks and hazard ratios are considered relative treatment effects.
What about the following effect sizes?
a. Mean differences
b. ratio of means
c. risk differences
d. Arcsine differences
|
I need to test the relevance R of a variable X(1) in Y, and the possible effect that a second variable (θ) has on that same relevance R.
To test it out, I thought of doing a regression (OLS) of Y on X(1) and X(2), where X(2i) = θ(i) * X(1i), 0 < θ < 1, and θ(i) ≠ θ(i+1) ≠ ... ≠ θ(i+N). However, I am concerned that this... |
Some background information about what I am trying to model before asking my question: Long periods of hot temperatures and dry conditions (heatwaves) puts pressure on the components in the power distribution grid and eventually cause faults.
My ultimate goal is to predict whether a power grid is in high risk, medium r... |
This is a concept that I have always struggled to understand: We can write the formula for a Two Sampled T- Test (https://en.wikipedia.org/wiki/Student%27s_t-test) to compare the sample averages from two populations as follows:
$$ t = \frac{\bar{x}_1 - \bar{x}_2}{\sqrt{\frac{(n_1-1)s_1^2 + (n_2-1)s_2^2}{n_1 + n_2 - 2}... |
I am conducting a meta-analysis of observational studies without a control group that compared a parameter's value before and after an operation. All included studies have reported their results as pre-and-postoperative mean ± standard deviation and statistical analysis p-value. While it is possible to determine the st... |
I spend a lot of time thinking about conditions under which various kinds of analyses perform well. To some degree I am hoping NOT to specify too many specifics here (because part of what I am interested in is the degree to which such any statements made can generalize), but for arguments lets say I have x=1-3 variable... |
I am struggling with the (Monte Carlo) approximation of the entropy of convoluted Normal Inverse Wishart distribution. If anyone knows how to do it, I would like to borrow your wisdom. The following is a more concrete question.
Suppose, there are two NIW distributions,
$$
1. p(\mu_a, \Sigma_a) = NIW(\mu_1, \lambda_1, \... |
I thought that for an F-test to be valid we need mutual independence.
In Granger causality, we use the residual sum of squares derived from two models, see https://en.wikipedia.org/wiki/Granger_causality. However, aren't all residuals within the residual sum of squares (RSS) dependent on each other?
For instance, suppo... |
I've been getting a bit stuck recently on how to reconcile the two seemingly-competing ideas of nondeterministic and probabilistic decision rules.
As an example:
Let $t=0$ denote the current time and let $t=T$ denote some future time.
Let $w_t$ denote our wealth at time $t$.
Assume we have a market with one risk-free a... |
In R Studio I have a database with 77,000 rows and 50 columns, I divide the observations into train and test, and the train table is left with 59,000 observations, I am making the SVM model, I am now calculating with the tune function which parameters are the best using the radial kernel, and it never runs, it is alway... |
For multiple comparisons, Bonferroni corrections are made. Depending on the number of pairs of comparisons, the level of significance is adjusted. For instance, for 4 pairs of comparisons at 95% C.I., it would be 0.05/4= 0.0125. Therefore, for an alpha level of 0.0125, the C.I. must be 97.5% and not 95%.
Could somebody... |
I'm doing a time series analysis and wanna identify structural breaks from a regression. Here are the data: https://raw.githubusercontent.com/ramyshaban01/dataframe/aa074811a322b5f5252fcb59c81b75bd6503d260/data.csv here what I have done:
library(strucchange)
formula <- as.formula(paste("Variation_pce_shifted ~ Variatio... |
I was reading a post about deriving PCA, So it considered an arbitrary row datum, $x_i$ and tried to maximize projection length for each row of data matrix, $X \in \mathbb{R}^{N\times D}$:
$$\sum_{i=1}^N(u_1.x_i)^2=\sum_{i=1}^N(u_1.x_i)(u_1.x_i)=u_1^\top \Biggr[ \sum_{i=1}^Nx_ix_i^\top \Biggr] u_1\stackrel{*}{=}u_1^\to... |
Consider a cube filled with random particles. Let's say the particles in cube are rotated around the z-axis through the center of the cube. Here, the rotation is proportional to the height of the cube, so no rotation at the bottom of the cube, and the rotation gradually increases with the height. In doing that we get t... |
I am looking for implementations of simple Marginal Maximum Likelihood Estimate based 2-PL IRT Item estimation in Python. Any relevant Python libraries that do this (similar to snowIRT module in Jamovi)? I have looked into py-irt and it seems to do a Variational Inference based estimate of the parameters. I wanted some... |
I have daily data on surgery cancellations for about six months and would like to examine the bivariate associations of several factors and surgery cancellations.
Each day there are variable number of total surgeries scheduled (canceled + completed) - median 20 (IQR: 18, 22.5; range 0 to 36).
date
total_surgeries
s... |
If $F_n$, $G$($G$ is non-degenerate) are distribution functions in $\mathbb{R}$, is the fact that $F_n \to G$ weakly($F_n(x) \to G(x)$ for all continuity point of $G$) equivalent to the condition that $F_n(x) \to G(x)$ for all $x$ that is continuity point of $G$ and $0<G(x)<1$?
Context is that one of the implicit claim... |
We would like to conduct an AB Test between 2 groups of people and the apps that people have to see which ones over or underindex.
Which is more appropriate odds ratio or 2 proportional z test and why?
However my concern with the odds ratio is that it would be alot harder to explain odds to a stakeholder than it would ... |
I have a computer model simulation of a real world machine that generates either blue or red colours as output (as an example). Suppose the expected proportion of blue is 0.2 and expected red is 0.8 in the real world (from the real world machine) and the computer model generated proportions are 0.3 blue and 0.7 red, my... |
I have used PCA on a group of individuals based on a specific feature of their genetic data. I now want to see if PC1 or PC2 correlates with their grouping based on geographic location (each individual falls into one of 12 groups based on their location). So basically, I want to ask do individuals in group 1 have signi... |
I am trying to understand clustered standard errors better.
I created a very simple example: there are 100 rows, first 30 are from group 0 and next 70 are from group 1. I want to compare estimating the coefficient for group 0 separately, vs estimating it from all the values. I am using following code:
import numpy as n... |
While studying about GMMs I generated the following dataset to experiment with.
import numpy as np
import pandas as pd
rows = []
for individual_id in range(40):
lag_y = 0
for time in range(10):
x1 = np.random.normal(0, 1, 1)[0]
eps = np.random.normal(0, 1, 1)[0]
individual_effect = indi... |
Uncertainty quantification in latent variable models is a topic I am interested in, but I am struggling to grasp the difference between what you can do with quantified parameter uncertainty and quantified uncertainty in the latent state. This is particularly ambiguous to me in applications involving time-series models ... |
I am following a lecture series on Markov Chains from MIT OCW over here. The lecture (and the notes) state that for birth death processes, the detailed balance equations hold.
$$\pi_{i}P_{ij} = \pi_{j}P_{ji}$$
Here, $\pi$ represents the stationary distribution at some node $i$ and $P$ represents the probability of goin... |
After reading numerous articles on sample size as it relates to a Pearson Correlation, I have not found any reference to what happens if I have a small sample (n=15) but still get a strong r (.830) that is significant at the 0.01 level (2-tailed). Does this output mean I can trust there is a reasonably strong correlati... |
I have binary dataset consisting of 15 zeros and 40 ones. To address potential bias in my data, I have calculated the probability of success from each cell by fitting a glm with binomial family as follows:
# Fit a generalized linear model (GLM) with binomial family
model <- glm(predation ~ treatment, data = data, famil... |
I am reading about ordinary least squares regression, and I came across this assumption called "strict exogeneity", defined such that $\mathbb{E}[\epsilon | X] = 0$ for error $\epsilon$ and regressor $X$. My question is what does it mean for this to equal 0? Isn't the conditional expectation of two random variables $\m... |
I have (I think) a simple question. I estimated rank-orderings on a variable from a sample of 225 people, and I'm interested to know whether they generally correlated with a "correct" rank-ordering.
So I've computed Kendall's tau for the pairing of each participant's rank order with this correct rank-ordering. The dist... |
I am studying the relationship between an experiment's predictors and its design matrix. For this particular question, I am curious how I can convert a design matrix developed for a Fixed Effect model into the two design matrices (Fixed + Random) of a Mixed Effect model.
The example experiment I made has 3 predictors:... |
I am working on the Cox survival analysis model with time-dependent covariate, which is a very very common model.
However, in most papers and R packages, I noticed they estimate the parameters of survival model by expanding the time-dependent data as long data (there are multiple rows (time intervals) for each subject)... |
I am interested in applications (to data) of non-parametric statistics, and my question concerned the Gaussian white noise model defined by,
$$
X_{t_1, \ldots, t_d}=f\left(t_1, \ldots, t_d\right) d t_1 \ldots d t_d+\theta d W_{t_1, \ldots, t_d}
$$
with $W$ a $d$-parameters Wiener field, $f$ a bounded function over $[0,... |
I'm curious if anyone is aware of a publication that addresses the following matter or could provide a mathematically or reasonable response to the following question:
In a pre-post study where participants are required to complete a questionnaire before and after an intervention, the data exhibits a paired nature. In ... |
I ran a simple linear mixed model using lmer on a dataset for participants who had been randomly assigned to one of two conditions and were measured at baseline, post-intervention, and at a follow-up on a continuous outcome.
The model took the form lmer(outcome ~ timepoint * condition + (1|cluster/ID), data = data)
The... |
I have run the ARIMAX model (1,1,1) and got this output.
Then I ran SARIMAX (1,1,1) Seasonal (1,1,52) model and got the next
As you see the blue line (Prediction) came closer to the black line (Real values).
How can I explain, in a fancy way, that adding the seasonality factor has filled the gap between the real val... |
I am wanting to build a classification model to classify events to be cat or not cat (for example). In my case, the cat or not cat would be failed state or not failed state.
However, in my application, the data that is fed into the model would be a set of measured parameters that would be measured over 14 days (tempera... |
I have a dataset with 4 columns of interest:
Event (1 or 0, binary)
Nymph (Y or N, categorical)
Date (Dates from 2023-04-03 to 2023-05-02)
Tag (categorical, individual IDs (77 distinct Tags)
I have fitted a GLM with no issues:
glm.wake <- glm(Event.binary ~ Nymph + Date, data = wake_df_overlap, family = binomial)
I wa... |
We are conducting a randomized control trial (RCT) comparing treatment vs. control from 4 sites (A-D). We have planned for 100 patients from each site. 100 envelopes of treatment assignment (intervention or control) were prepared for each of the sites using simple randomization lists (400 envelopes in total). However, ... |
Consider two random variables $V_1$ and $V_2$, where $V_1$ is continuous and $V_2$ is binary.
In a paper, I found that the following equality holds:
\begin{align*}
\mathbb{E}\left[V_1|V_2=1\right]=\mathbb{E}\left[\frac{V_2}{\mathbb{E}[V_2]}V_1\right]
\end{align*}
I remember that I have proved that this equality holds w... |
I have a psychological test that consist of a set of binary items. It has a noticeable ceiling effect in the sum scores (essentially, a majority of participants get most items correct).
I also see some literature using that same measure, standardising and aggregating the sum scores with those of other measures, making ... |
I'm trying to use RL to optimize a game that I'm currently playing.
Below is the chart depicting all the items(boxes) that have to be created at varying capacities to complete a level.
The number in arrows depict the inputs for the for the item. Time is the time taken in minutes for also depicted as cycle time. init_c... |
So I am faced with a problem for which I can't find a simple solution. I have attached an image of my basic explanation of the problem.
In the above image, we have two signals that have portions of high correlation and portions of low correlation. You can observe that the highly correlated points fall on this line wit... |
I am currently experiencing a suspected model collapse in a Variational Autoencoder (VAE) model I am working with. Below are details on the project setup and the issue at hand:
Project Goal: Exploring if a the same VAE architecture can independently handle two tasks - reconstruction and regression - using real-world pr... |
This paper by Bradley Efron (also available here) concerning Bayesian vs. frequentist interpretation of probability contains an example I don't quite understand.
It's on page two in the right column in paragraph two. It goes like this:
Consider 15 random numbers $x_{1}, \dots, x_{15}$ drawn from an
unknown probability... |
I want to perform feature selection on my data. I have too many features, about 50 - 60, for not so much samples.
Until today I was using the importance function of the xgboost package, but lately I was introduced to SHAP, and although it is more of an interpretation tool than anything, I was told it is a powerful and ... |
The statistical analysis used was PLS-SEM using WarpPLS.I have four variables, with 1 IV (W), 1 DV (Z), and 2 mediators (X and Y)
I was able to find that when run through W -> X -> Y -> Z the serial mediation was not significant.
I tried to see if different paths may be significant, so I analyzed 1.) W -> X -> Y and 2.... |
Imagine I'm trying to model traffic stops with a logistic regression.
race = relevel(as.factor(c(rep("white", 3000), rep("black", 3000))), ref = "white")
income = relevel(as.factor(c(rep("low", 1500),rep("high",1500), rep("low", 2000),rep("high",1000))),ref = "high")
stop = c(rbinom(1500,1,0.5),rbinom(1500,1,0.4),rbino... |
I evaluated the effectiveness of an intervention by using lme4 package:
lmer(Depression ~ time * group + (1|id))
resulting in a significant interaction (time * group).
Group: 1 = intervention, 2 = control (reference)
time: 1 = pre-intervention (reference), 2 = post-intervention
In a second step, I explored if a diagn... |
I've built a machine learning model on some training data to classify first names as male or female. The accuracy on the training data is x%. With the known accuracy, I then predict on a new dataset of n samples, and the model predicts that m names are male. How can I calculate the confidence interval for the number of... |
The Setup
I have a dataframe df3 which contains film information (Budget, Year, Runtime, IMDB (score)) and a personal rating (integer between 0 and 10 inclusive). I'm trying to teach myself data science and use it for various models. This is my attempt at using it for a simple logisitic regression model.
For my first s... |
I'm attempting to figure out how to do a chi-square based on gender in two different groups.
Overall, my data has two different groups that I'm dealing with, with a column for what drug the person is taking (drug_1 and drug_2), and another for their sex (M or F).
The main issue with using a normal Chi-square test that ... |
I have RDS data and identified participants recruited twice during the study. How should I handle these duplicates? If I delete the second recruitment, it will disrupt the network. Can I consider the second recruitment as a seed?
|
How can I explain the spike in my Poly model after using the polynomial 3rd degree?
My dataset consist of the X variables external facctores (x1,x2...xk) and Y which is a target variable. For a polynomial I am not using interactions. I am using only the degrees. So i have x1, x12, x12 and so on for all values which mig... |
I want to evaluate the impact of some risk and protective factors (predictor) on different health variables (outcome), and report descriptive measures of the health variables. I have missing data on both the predictor AND the outcome variables. I was wondering: 1)if I should impute both the predictor and the outcome va... |
I am trying to analyse genomic data. They are organized in the form of records.
A record looks like the following:
record # start end string
1 xxx xxx xxxxxx
2 xxx xxx xxxxxx
The records are arranged in a way that they are sorted based on the start column. I want to divide these records in... |
I have ran a teaching course for students. I carried out pre and post session MCQ quizzes to evidence effectiveness of the course, however the marks collected were anonymised (data collected via google forms).
So the participants doing the Pre Session MCQ are the same participants doing the Post Session MCQ- however du... |
My question is: What statistical model can I use to meet my objective and how can I specify it properly?
DV: MuscleMass
VIs: Age, sex, Intervention (control vs interventions (1 to 7)), and Time.
Background: I have access to individual data from 7 different studies. The first study has measurements of the variables of ... |
I am struggling with a decision on how to report an interaction analysis.
Let's say I have a dataset, in which I want to explore the contribution of two risk factors: Hypertension and Diabetes, on the risk of death. We all know both are associated with a significant risk of excess mortality, even after adjusting for ot... |
Let $F_0$ be some probability measure and $\alpha > 0$ be the concentration parameter. I can draw a random distribution from $F\sim \mathrm{DP}(\alpha, F_0)$ using the stick-breaking construction:
\begin{align*}
v_k &\sim \mathrm{Beta}(1, \alpha)\\
\phi_k &\sim F_0\\
\pi_k &= v_k \prod_{j < k} (1-v_j)\\
F &= \sum_{k=1}... |
I am looking at time-to-event data by a variable with multiple groups (8). When I plot the stratified KM, some curves cross, some are ok, and some diverge. Also, I'm interested in the 30-day event rate. But by definition, I dont start to count events until after 7 days (only if there is a death I count those, so I may ... |
I have some data that plots essentially like an exponential of something of the form y=100+x^0.000001, i.e., almost two asymptotes on x and y with a small bend at the origin in Q1 (i.e., L-shaped with a curve connecting the two lines that is < 5% of the line.) I would like to be able to estimate the inflection point (w... |
How can I determine whether to use proportional hazard (PH) or accelerate failure time (AFT) survival models in order to analyze my data?
Are there any established guidelines or common practices that researchers follow to make this decision?
I know that the PH model assumes that the impact of a covariate is to multiply... |
When learning about the Datasets of naturally occuring systems you encounter distributions, for example power law distributions in the domain of population sizes of cities.
In my understanding this usually reflects a simple functionality of the system you are sampling.(domain specific that means lots of cities form in ... |
I want to know how my ML model is performing by customer race/ethnicity. The issue is that we do not know our customer's race.
We, however, do know zipcode level demographic information. ie) A customer live in an area where X% of residents are A, Y% are B, etc ... What I want to know is if the model is more accurate fo... |
I'm confused about how to compare means given the following scenario. Suppose a company has stores in 2 countries, CA and US, which each get some number of Customers who either make a purchase (Buyers) or don't. I want determine if the difference in Buyers per Customer or Revenue per Customer between the two countries ... |
# Create a binomial random variable with 100 observations and a probability of success of 0.7
binom.data<-rbinom(100, 1, 0.7)
# Calculate the coefficiente of variation (CV(%)) of the binomial random variable
cv.binom.1<-sd(binom.data)/mean(binom.data)*100
cv.binom.1
#[1] 64.23212
Ok!! But, I find in some literature t... |
In a lognormal distribution, the mean is equal to $\exp(\mu + \frac{\sigma^2}{2})$.
I tried to separately calculate this using the definition $E[X] = \int{xf(x)dx}$, where I have 200 $x$ values evenly log-spaced; for reproducibility, here a few copy/paste ways to get such an array that captures the tails when $\mu=-0.5... |
I have a question regarding the output from a discrete-time survival model that I have previously asked questions about [here][1].
The code looks the following (see link further up for more info):
mod<-glm(Mating_time ~ Round + A*B,data=dat, family=binomial(link="cloglog"))
Anova(mod)
> Anova(mod)
Analysis of Devianc... |
What is/are the canonical reference(s) for HMMs with covariates?
I'm coding some up and I'd like to follow the standard notations, if they exist.
|
I have developed a probability of loan default logistic regression model and it rank orders the risk across the deciles well, however, it doesn't rank order losses (which occur much later) well. Is there a way I can use default as the primary objective function and losses as the secondary objective function?
|
As the title sums it up well, I own two series. I need to know if the two are significantly different. Both series have the same temporal granularity. In a quick search, I saw that I could use the Kolmogorov-Smirnoff (KS) test. But I also saw that it compares the distribution. Therefore, I was in doubt whether or not I... |
I have a population-level dataset of all people who testified on environmental legislation in a single year. I have data on all witness's ages, races, genders, and ethnicities. This dataset is not a sample of those who testified -- it is everyone!
I want to know if the demographic breakdown of those who testify is sign... |
I want to create a regression model with the following properties:
prediction should be close to target
target and prediction should have the same sign
small penalty if either target or prediction are close to 0
extra penalty if both are far from zero and have opposite sign
Consider the following loss function: $$\ma... |
I took a machine learning course using the book "Learning from Data: A Short Course" by Hsuan-Tien Lin, Malik Magdon-Ismail, and Yaser Abu-Mostafa (LFD)
You are given a set of examples $\{x_n\}$, a set of labels $\{y_n\}$, the linear regression model is the function $\widehat{y}(x) = w^Tx$ where $w$ is a set of learned... |
Tomorrow there will be a race in which six runners participate in the 100 m dash. I will be able to capture the speed of each runner at each meter, so for each runner there will be a time series with 100 measurements. My hypothesis is that the runners will be at their fastest at around meter 65 or so, and then they wil... |
The following paper details necessary assumptions in order to have a non-gaussian state-space model be identifiable (see A1-A5); 'A General Linear Non-Gaussian State-Space Model: Identifiability, Identification, and Applications'
Using Stan, I've attempted to implement a state-space model according to these five assump... |
I have been given weekly averages and weekly 2-minute peaks of flow to a process. I'd like to predict the 30-second peak.
To clarify: By “weekly averages”, I mean that once a week, I get the average value of the process over the past week. By “2-minute peaks”, I mean that every week, I am given the highest 2-minute ave... |
This question is related but I want to check if my idea is valid.
I have two peaks and I want to check if they are the same. They are the linecut of an image. The background noise in the image is not Gaussian. I previously tried to compare the difference but I don't think it is a promising route.
What I am considering ... |
When I use the EM algorithm to solve a Gaussian mixture model, we may encounter the computation of Gaussian densities in the E step. Specifically, we should have the posterior probability as
$$
\pi_{ik} = \pi_k f_{\mu_k, \Sigma_K}(X_i) \Big/ \sum\limits_{j=1}^K \pi_k f_{\mu_k, \Sigma_K}(X_i),
$$
where $f$ denotes the p... |
Consider the random variables
$a_i,i=0,1,\ldots,n$ be random variables which take values from $\{-1,1\}$ independently and randomly with equal probability. Let
\begin{align}
S &= a_1+\cdots+a_n , \\
A &= a_1-a_2+a_3+\cdots .
\end{align}
I want to compute the probability that $S. A<0$.
Here is my attempt:
Attempt
Let ... |
[Q] Working through ESL, looking at QR decomp for OLS. Lets say we want to add a few new features: we can iteratively add them by orthogonalising. If we only want to include a subset, how could you evaluate which features improve R2/MSE the most?
In ESL (here's a link) they describe "Regression by Successive Orthogonal... |
I am trying to perform Survival Analysis using Python lifelines library.
My goal is to predict how long will an employee stay in the company before he/she leaves.
My time column is 'time spent at company' and my event column is simply 'left', 0 or 1.
I am using WeibullAFTFitter and I generate survival curves for each i... |
I have a dataset with some phenotype measurements of a handful of birds (~ 150 individuals of ~10 species) and I would like to run a mixed effect model on this.
Intuitively I would have tried to add a phylogeny in my model, but...
Is it valid to perform a phylogenetic regression with such a small number of clades? Is t... |
it's hard to summarise the problem in a question so I'll explain it here.
I have a variable called "Plant Species" that is missing a lot of values because of the sampling method used. For one method there are all the values, for the other none. The plant species are associated to another variable "Plot is Native", beca... |
I am currently trying to spatially cluster data that is ordered on a grid. Each point has x and y coordinates as well as a measurement value. These features come from a time series where I analyze each timestamp individually.
So far I've used hierarchical clustering with great success, the clusters are nearly always wh... |
P.S. While I gave a brief background to make the question complete, informed readers can move to the questions 1 and 2 towards the end of this post, right after 'what are not clear to me are:'.
Fisher's discriminant analysis for two classes: Let's assume that we've data in $\mathbb{R}^d$ from $2$ classes with means $\m... |
I am building a classifier for 7 classes where my array shapes are as follows:
X_train data shape - (171812, 384)
y_train data shape - (171812,)
X_test data shape - (37715, 384)
y_test data shape - (37715,)
my model is like this:
# parameters
input_dim= 10000
max_length =384
output_dim =128 DENSE_DIM = 32
DENSE_... |
I am trying to come up with the right structure for my mixed effects model but struggle a bit to understand what I need to do. At the moment, I think I could use Generalizing Estimating Equations, with a nested covariance structure (ID within Group), where the formula would be equal to score ~ group, but I am not sure.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.