instruction
stringlengths
9
38.7k
I have a sample $X_1, X_2,\cdots,X_n$ (where $n$ is small), where we believe theoretically that each $X_i$ follows a binomial distribution $B(m,p_i)$, I want to test if all the $p_i$s have the same value $p_0$ (which is known à priori) or not. Is the $\chi^2$ test appropriate in this case? EDIT: Here's what I want t...
I'm estimating a linear model, with one of the independent variables being a date of appearance. I consider the date to be a minimum date of appearance, not an obeserved one. Thus it is censored. What would be the proper estimation to approach this?
I'm looking at the Schoenfeld residuals of a competing risks survival model for one of the covariates. There is an extreme point which I am struggling to interpret.
We have likelihood function $$ L\left(\mathbf{\Theta} \middle| x_1, \ldots, x_n \right) = \prod^n_{i=1} f\left( x_i \middle| \mathbf{\Theta} \right) $$ and a score function $$ V\left(\mathbf{\Theta} \middle| x_1, \ldots, x_n \right) = \nabla_\Theta \sum^n_{i=1} \ln{f\left(x_i, \mathbf{\Theta} \right)}, $$ where $x_i$ a...
I am trying to make model with logistic regression. My results are: At first my results with CUTOFF 0.5 was: good borrowers predicted: 95.02% and 33.05% for bad borrowers. then I realize that the predicton of bad borrowers are low only (33.05%) so I try to make better results so then I changed the cut off to 0.2 and t...
Suppose we have a density function $f \sim N(\mu, \sigma^2)$. Then, the score function is defined to be: $$ \frac{d}{d\mu}\log f\left(x;\mu,\sigma^2\right) $$ The answer to this for the normal is: $$ \frac{d}{d\mu}\log f\left(x;\mu,\sigma^2\right) = \frac{x-\mu}{\sigma^2} $$ which looks uncannily like the z-score. Is t...
I have created some R markdown to see whether certain forecasts perform better when used as information for a trading/investmen strategy. One surprising fact I found, if an uncorrelated series with similar structure is used as the forecast, then returns seem to be positive and higher than forecasts based on the actual...
This is a school exercise and I just don't get on the right track. Data description: +- 1000 Samples test data. 1 Y column. 15 X columns. Y mean: ~6 max: 341 min: -221 X: mean of each column around +- 1 (0.9, 1.05, 0.99 etc.). max over all X: 4.7 min over all X: -2.7 The target rsme should be around 15 but I...
I am trying to solve this albeit probably juvenile combination/permutation type question. A person has 10 books, of which four are fiction books. How many ways can the 10 books be arranged so that all four fiction books are not together? My reasoning thus far is this: (Total number of ways without the restriction) minu...
I have recently conducted a study for my dissertation looking at behaviour change prior to starting a club and the child's current behaviour. The questionnaire was structured of 8 questions about different aspects of behaviour with questions on 4 positive behaviours and 4 negative behaviours. Participants responded on...
I am forecasting sales data with ARIMA model, I have a bunch of macroeconomic indicators that can be used to identify some of the information present in my sales data. How do you go about selecting exogenous variables that are most appropriate for running ARIMA?
I see that convolutional neural networks are used specifically for image recognition and object detection since their hidden layers and nodes are designed to encode features such as 3 dimensionality, shadows, depth, and other common things found in real life images. My specific interest is computer vision for desktop c...
In several sources of information, I found contradicting ways, how confidence intervals (CI) are presented. Thus, I am confused and would like to find out which one is correct: either $CI_{95\%} = [14.7,19.9]$, or $CI_{95\%} = (14.7,19.9)$. I.e. are 14.7 and 19.9 included in the interval or excluded? In my opinion, the...
I've been to a few statistics talks recently on the Lasso (regularization) and a point that keeps coming up is that we do not really understand why the Lasso works or why it works so well. I am wondering what this statement is referring to. Obviously I understand why the Lasso works technically, by way of prevention of...
I have repeated measures data measured at randomly chosen time points from different individuals. I am trying to analyze using a mixed effects model. The observations made at different sites were measured at the same (randomly chosen) time point. I think of the model as multi-level, in that I am considering the repeate...
I have a variable namely "Tourist satisfaction regarding ticket prices, transport cost a tourist have been charged by travel agent". I have created a 5 point scale. 1= Highly satisfied 2= little satisfied 3= Neutral 4= little dissatisfied 5= Highly dissatisfied I am interested to test tourist satisfaction against mea...
I want to specify a linear mixed model. I have to use nlme because of heteroscedasticity. It's easy to specify the random structure of my model with lme4::lmer: lmer(Y ~ X (1 + X | a) + (1 + X | b), ...) How would the random term be translated to nlme? I couldn't figure it out using information from the internet. I t...
I'm building a Sentiment Prediction model for Tweets that runs on Text, Numerical and Categorical data. I have already two classifiers, one text and one non-text (for numerical and categorical). Now the problem is when I want to combine both classifiers into one. Since my training features aren't the same for both clas...
Consider the task that we want to compute the Euclidean distance between two vectors $\mathbf{a}$ and $\mathbf{b}$, where the vectors are noisy sample from some measurement. Our goal is to get an unbiased estimate of the distance, i.e. the distance should be largely independent of noise. Using the classical Euclidean d...
I am interested in samples of $\theta$ from the posterior distribution $$ P(\theta|x) = \int d\phi P(\theta|\phi)P(\phi|x) $$ where $x$ are data and $\phi$ are nuisance parameters. In principle, I can use a Metropolis Hastings sampler to sample from $\theta$ and $\phi$ and discard the samples of the nuisance parameter....
I’m having trouble figuring out the best analytic approach to use. I have survey data that measures people’s sustainability behaviours – there are seven of these, for example: eating organic, recycling, buying green products etc. Behavioural frequency is measured at two time points. There is a fairly large n (=631). I...
I have three conditional Gaussians $\mathbb{P}(A|B,C) = \frac{1}{\sqrt{2\pi}} \exp \left \{ -\frac{1}{2} (A -BC)^2 \right \}$ $\mathbb{P}(B|A,C) = \frac{1}{\sqrt{2\pi}} \exp \left \{ -\frac{1}{2} (B -AC)^2 \right \}$, $\mathbb{P}(C|A,B) = \frac{1}{\sqrt{2\pi}} \exp \left \{ -\frac{1}{2} (C -AB)^2 \right \}$...
I can understand why cross-entropy works as a cost function, if we classify a sample as belonging to one of the classes $c_1, ..., c_n$: $P_{true}(c_i = c_i^{true}) = 1$; $H_e = -\log{P_{predicted}(c_i = c_i^{true})}$, because all other true probabilities are zeroes. Now, if you predict probability close to $1.0$, cr...
I'm doing a regression problem using a convolutional neural network. When I was checking my model using 6-fold cross validation. There are always several vertical lines in which samples are dramatically predicted incorrectly. I tried tuning many parameters, the Pearson correlation coefficient will increase or decrease....
Each element of a 56x1 vector represents the functional association between two brain networks. I want to assess which of these 56 values are significant. One way to deal with this is to use an outlier detection method (the function 'isoutlier' in MatLab 2017 may be useful for that). Is the use of an outlier detection ...
I've been working a random forest regression model with my own datasets using the randomForest package. The model produces a % var explained of ~27%. I also used the importance() function to produce a ranking of the relative importance of the variables, but everytime I use a different number for the set.seed() functio...
The MICE package in R allows you to post-process imputed values, such that if impossible/unreasonable values are imputed (men being pregnant, people weighing negative pounds), they can be changed as you see fit before they are themselves used to impute other variables' values. Regarding this post-processing, the author...
In this post Is there any reason to prefer the AIC or BIC over the other? was given the answer, that AIC tries to select the model that most adequately describes an unknown BIC tries to find the TRUE model among the set of candidates. My question is, how can both this statistics have such different application? Th...
Please let me know whether I am wrong or right regarding the calculation of mle for uniform distribution [ in both the cases below $\theta > 0$ ] let $X_1,X_2, . . .X_n $ be a random sample from uniform (-$\theta , 3\theta$) then the joint density $\frac{1}{(4\theta)^n}$ must be max at $\frac{max|x_i|}{3}$ ( and t...
I want to perform a 10 fold cross-validation in R where each fold contains around 10% of the data. There are 185 points which have to be spread out among the 10 folds. id<- 1:185 The idea is to have each point in one of the folds. Basically, each fold has to be independent. I have tried to use the createMultiFolds fun...
This seems like a simple problem but I don't know of a way to efficiently solve it: Suppose I want to generate random samples of 100 numbers, which satisfy the constraint that the sum is less than a certain number: import random import numpy as np #numbers to sample from, could be a more complicated distribution list_...
My professor mentioned that we may merge "close" clusters (those with relatively low sum of squared errors) after k-means clustering. However, I don't see the benefit in doing this. If a cluster has very small errors, then that knowledge is valuable, and merging that cluster with another cluster makes us lose informati...
Can someone explain, intuitively, how a latent class regression (LCR) model is estimated (or direct to some digestible explanations)? I understand how regressions are estimated, no need to comment on it. For latent class models (LCM), my understanding is that the parameters are actually estimated from counts of the po...
As the title states: PCA is an autoencoder with one hidden layer with linear transfer functions. Can someone explain this sentence to me? I understand that if you want to map something into lower dimensional space then PCA has essentially perfectly optimized this procedure. With this understanding, if an autoencoder ha...
I am trying to generate random numbers with R, uniformly from one of two different intervals. I want the numbers to be generated, for example, in the intervals [-0.8,-0.4] or [0.3,0.9]. I am trying to play by using more runif together, but I have problems when the intervals are not of the same size. Can you please help...
Let's say I want to model $\vec{y}$ based on $\vec{x}_1$, $\vec{x}_2$, ... $\vec{x}_m$ as: $$\vec{y} ~~\approx~~ \beta_1 \vec{x}_1 ~+~ ... ~+~ \beta_m\vec{x}_m$$ Now, I could use Lasso to encourage most of the $\beta_j$ to be zero. But let's say instead I have sets of variables, $G_1$ ... $G_p$, each $G_k \subset \lbra...
I built a conditional logistic regression model for 'guest booking a hotel from the hotel search results page'. In my initial model, I didn't do any transformations to the independent variables. This model fits fine, and I am exploring ways to see if I can improve the fit. So, later, I tried different transformations ...
The above is all the info I was given to work with. For the b column, are higher bs indicative of stronger association? What could the constant mean? What does the exp (b) column mean (how do I interpret it)?
I would need help on which statistical analysis I should use to evaluate convergent validity. We have translated an instrument (Likert type) and did test retest along with other instruments to measure validity of the translated instruments? We are not sure which analysis to assess.
I've recently seen a formula in a set of statistical learning videos that suppose we fit some model to some training data $f'(x)$ and let $(x_{0},y_{0})$ be a test observation drawn from the sample. If the true model is $Y=f(X)+\epsilon$ with $f(x)=E(Y|X=x)$ then, $$E(y_{0}-f'(x_{0}))^{2}=\mathrm{Var}(f'(x_{0}))+[\mat...
Summary: A decision tree (aka identification tree) is trained on a training set with a largish number of features (tens) and a large number of classes (thousands+). It turns out that every feature is important to distinguish some subset of classes, but most classes require only a small number of features to unambiguous...
Suppose we have $\mu = 19.1$ and $\sigma = 1.7$. I need to find $a \in \mathbb{R}$ such that: $P(|X-19.1|\leq a) = 0.98$ Now in the correction, it is given that: $$P(|X-19.1|\leq a) = 0.98 \iff P\left(\frac{-a}{1.7} \leq \frac{X - 19.1}{1.7} \leq \frac{a}{1.7}\right)=0.98 \iff P\left(\frac{X-19.1}{1.7} \leq \frac{a}{1...
I need to model the variable Total motile Count which describe how many million sperm cells in an entire ejaculate are motile. It is not a proper count since it is calculated as a product of other variables: sperm count(x10^6/mL) x motility(%) x volume(mL). Therefore, it is not continuous. There are no zeroes (min=2 m...
I want to calculate the confidence interval around the median obtained from this data set: dat <- c(2.10, 2.35, 2.35, 3.10, 3.10, 3.15, 3.90, 3.90, 4.00, 4.80, 5.00, 5.00, 5.15, 5.35, 5.50, 6.00, 6.00, 6.25, 6.45) The descriptive statistics: summary(dat) Min. 1st Qu. Median Mean 3rd Qu. Max. 2.100 ...
I have some data points $y_1,y_2,...,y_n$ which are decreasing with index number that is $y_1>y_2>...>y_n$. These points are coming from some perturbation of some unknown decreasing function $f$ which, if necessary, I can assume to be continuous. Now, I want to estimate the initial value of this function as accurately ...
Imagine a rigid solid, just subjected to an external upwards effort and gravity. I am trying to calculate by RL the effort needed along time so that the solid reaches and maintains at a certain height. I am using: - heights of each moment as states - three possible actions (positive fixed effort, negative fixed effor...
I have been wondering about this: Do control variables need to have a correlation to both the independent variable and the dependent variable? E.g. I want to check the effect of Education (independent variable) on Income (dependent variable) using a regression. Does it make sense to include control variables which obvi...
What should we consider the null hypothesis? A test statistic is a statistic used to measure the plausibility of an alternative hypothesis relative to a null hypothesis. (The statistical Sleuth) From this it can be concluded that the alternate hypothesis should be the scientific hypothesis one is trying to establish...
We distribute an ecological fertilizer for soils. A client of ours is asking for confidence interval on 5 key parameters. We have run 5 samples of soils in 5 different places where our product has been used. The samples have been analysed and we now have the values for each of these 5 parameters from each of the sampl...
Are Bayesian Hierarchical models and Bayesian regression models the same in books, papers?
I am designing an experiment to test drone pilot reaction time to obstacles introduced to the drone's flight path in a controlled setting. There is one IV with 3 levels, and 3 DV. IV is visual acuity technique used; line of sight, first person view-LCD screen, or first person view-goggles. DVs will be total time to ...
I have a N data samples where each sample is a signal of varying length. The important information relating to associated classlabel could be anywhere in that signal? As such, I don't want to chop of some of my signals to make all of them equal length. People suggested me to use recurrent neural network but I can't for...
We usually use $\mu$ for the population mean but I couldn't find a symbol the median of a population. Is it ok to use just $m$? For instance, $H_o: \ m_{a} = m_{b}$ $H_a: \ m_{a} <> m_{b}$ is it Ok to formulate these hypotheses like that?
Some background - I am a Computer Science student, planning to do a project and I have a data source that I have cleared, filtered and processed but I am really unsure of what exact algorithms I should use for the particular project I am interested in. Also, Anthropometry means - human body measurements. More backgroun...
My sample size is $N=100$ Can the Central Limit Theorem be used to justify a probability calculation through z-scores if the population's mean and standard deviation are unknown?
I'm finding it difficult to interpret Variable Importance scores from my dataset. What is the relevance of knowing the Variable Importance of features in your dataset? Is it just for information so that you will better understand the dataset? Or should some action be taken with the information? For example, if I have ...
Ok, so I understand that it's impossible to capture seasonality or trend from only 1 period since there is no baseline to compare to. I believe a great example I read was: "try to guess the next number in the sequence, 2,...." However, what about when you have a partial set of data for the next period? E.g. You are try...
Let's say I estimating some parameter vector $\theta$ with some estimator $\hat \theta$. I have that asymptotically, $\hat \theta \text{ }\dot \sim \text{ } N(\theta, \Sigma)$ Now let's say I want to compute a confidence interval for $f(\theta)$, where $f$ is some differentiable function. Given a consistent estimator...
I have a multiple regression model relating salary, with 3 predictors. I am given the ANOVA table of this model. It looks like this I have completed the NAs and now want to test at the 10% significance level whether or not the linear regression model explains significantly more variability in Salary than a model with...
As the title suggested: With unbalanced datasets are training results affected when I chose Kfold or StratifiedKFold validation? Intuitively, I would say yes. But what would the mathematical explanation for this? Or am I wrong?
I work for a school. I have two sets of data. Do I need to compare an apple with an orange? Set 1: test scores from our school. Min score is 0. Max score is 100. Set 2: test scores from third-party exams outside school. Min score is 100. Max score is 500. I try to use data from Set 2 as a baseline to see the progress o...
I have a linear mixed effects model in R: model<-lmer(response ~ v1 + v2 + v3 + (1|group), data=df) summary(model) confint(model) I'm interested in the effect of v1 and v2 on my response so I'd be reporting their coefficients and confidence intervals, but I also want to report some indication of the overall model fit ...
In an attempt to find the optimal number of hidden nodes and number of training epochs (to obtain optimal performance while not over-fitting) in a single-hidden layer neural network, I generated the following figure. The application is function approximation of temperature data and the error measure displayed in the f...
I'm using varImp function(caret package) in R to get importance of variables and to select variables. I know how can i get result. This is my code and result. > library("rpart") > rpartmod3<-rpart(Creditability~.,data=ccc,method="class") > ptree3<-prune(rpartmod3, cp=rpartmod3$cptable[which.min(rpartmod3$cptable[,"xerr...
I have the formula and an example for calculating the distance between 2 clusters below, I couldn't figure out why and how {2,4,8} can become 8 and {-5,0,5} can become -5. Can someone please enlighten me please?
The problem pertains to gait authentication using the CASIA-B dataset and its specification is as follows. The dataset is composed of the gait of 124 subjects over three covariate conditions: A, B and C, each taken over 11 simultaneous angles. An authentication algorithm is applied to this dataset and is evaluated. Th...
I have the tens of thousands of household electricity consumption time series data, from January 2012 to December 2015 monthly data. Because most household electricity consumption behavior very different (I have plot the time series). So I think maybe should do the cluster analysis, then model for every cluster. This i...
I want to feed my data set (>2TB) into the scikit-learn regression tree first, but already in the beginning I face the problem of 'out-of-core' since the features for training are bigger than my RAM. What I mean in detail: I have several hdf file stored, beside other information, with 51 images and the size of 512x424 ...
I am exploring the use of ARIMA and Seasonal ARIMA models (SARIMA). In some of my datasets, I can clearly observe seasonality in the ACF and PACF plots (the lines at seasonal lags clearly cutting the confidence interval region). In order to make such data stationary, and to account for seasonality in my model, is seaso...
I just reviewed very good example of fitting StackingRegressor from mlxtend package. from mlxtend.regressor import StackingRegressor from sklearn.linear_model import LinearRegression from sklearn.linear_model import Ridge from sklearn.svm import SVR import matplotlib.pyplot as plt import numpy as np # Generating ...
I am looking at survey data that measures satisfaction with provided services . I am interested in exploring the relationship between the time the product is used (measured in days, ranging from 10 to 3000) and satisfaction. The data: ~ 1k responses "Satisfaction" has two peaks around 2 and 7 "Time used" is peaking ...
I'm using gbm function in R. we can calculated the accuracy as using confusionMatrix() function in R. But, before using this function, we have to split the data set as createDataPartition() function. But! For using gbm function, we have to use full data set because it use full data and can make model that reinforce th...
I have a sample of outcomes of my algorithm and would like to test to some degree of confidence if it differs from zero. I know I can use a 1-sample t-test (as in https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_1samp.html), but I am wondering: does a non-parametric analogue exists? I seem to unde...
I am reading the Pattern Recognition and Machine Learning book by Bishops. I have some difficulties proving the (6.21) equation. Can someone help me? N.B: If someone has a better title for this question, i'm opened to it as i couldn't find the good words.
I'm using glm() function to get result of logistic regression. But i can't interpret the result. In my data, there are nominal variables and target variable is categorical variable. I know that I can use independent variable that is factor type. I implemented and this is my result. > glmresult <- glm(Creditability~.,...
Locally connected pixels are highly correlated in images. In machine learning, using SVM or other classifiers we would want our features to be as unrelated as possible. However, in CNNs why do we want exactly the opposite thing? We are focusing on highly correlated features (i.e. pixels) to convolve with our weight ve...
In my statistical model, using multinomial logistic regression, I have used age, region (urban/ rural) and number of pregnancies (G) as independent variables. As expected, Age and G are correlated (rho=0.5, p<0.000) and there is a weak correlation between G and region. Highest level of pseudo-R squared value is achieve...
Im currently working on a research paper for one of my classes. I have data from 2007 to 2017. I wanted to do 3 difference in difference analysis to see if there has been an affect. first: 2007-2009 with a date in april 2008 being the policy second 2012-2014 with a date in feb 2013 being the policy third 2015-feb 201...
I did a negative binomial regression on a data set with 4 covariables. The count outcome has values up to 600. I did a mixture model with 2 components, also called a latent class model. However, I am not sure if the results make sense. These are the parameter estimates for the first component: intercept 2.1 v1 3...
I have two related questions: Assuming (as the extreme case) I measured a quantity (A) just twice, but I know that the values would "become" normally distributed if I measured the quantity repeatedly. I can calculate the CI for the mean by multiplying the standard deviation of the mean by 12.71 (see here). I also measu...
I'm beginning with the regression analysis and I'm quite confused with the generalized linear regression. I understand, that the ordinary linear models can be described with a formula $$ y_i = \beta_1 x_1 + \beta_2 x_2 + \cdots + \beta_n x_n + \epsilon_i $$ and when using generalized linear regression I'd expect it to ...
Last year, I administered a motor developmental test on children. This tools, categorize samples into 3 group. Now, I am going to choose 10 children from each group, repeating test to recognize whether they still belongs to the their previous category. The question is that which statistical analysis does this process ...
I am reading paper by Benjamini and Yekutieli (2001) on controlling FDR under dependence. My question is to figure out, in practical applications, whether the PRDS property is fulfilled in a given application, or not. Specifically: for example, I am running a series of t-tests on a number of variables. When do I run i...
I am dealing with an experiment Three groups of mice. Each mouse spend time in an arena within the arena we placed three objects. I want to test, for each group if the time spent on each object is significant more comparing to the other objects. Afterwards I'd like to compare the result between the groups and check ...
I'm working on binary classifier model with 30% N/A values aka missing fields. I have one continuous feature and two categorical 'string' features missing in my data. For a continuous feature, I've imputed 'mean'. Can someone guide me how could I Impute categorical 'string' data? Does Random forests/Decision tree will ...
I've run a logistic regression on some data with 3 categorical independent variables, and a binary dependent variable. I've plotted the predicted probabilities as a way of visualising the significant interactions, but have found that despite the beta value being negative for some variables, the predicted probabilities ...
Could someone help me understand why value iteration converges for state C in 3 steps, and in 4 steps for everything else? Why not infinite?
I am learning the largeVis, and trying some examples, but have some questions, any tutorials on largeVis will appreciate. Problem: LargeVis have faster speed than t-sne, but more parameters than t-sne too, how to choose an proper parameters for the largeVis? There is an "NA" cluster in the plot, what happened? libr...
I have a table with 15 items with attributes. The items are ranked, the rank is kind of the label. Now I build several algorithms, that get the 15 items in an un-ordered and tries to rank them. So far so good, but how can I evaluate/compare different rankings? Which one is better? Example: Original Model 1 Result...
I'm using these formulas to update my initial vector, transition matrix and emission matrix: I have update my initial vector fine using formula (1) but the other two formula have an alpha instead of equal sign so I'm not really sure how to use them. I have no trouble evaluating the right hand side I just don't know wh...
Under which conditions is one of the optimization methods offered by VW (SGD, bfgs with/without conjugate gradient, FTRL) expected to be better than others? I am mainly interested in regression and classification problems. Any references would be extremely valuable.
I have built binary text classifier using SVM on TF-IDF for news articles(Sports: Non-Sports). But I not sure how to classify new document using this model. Since TF-IDF is calculated based on the occurrence of a word in all other documents. Do I have merge test and train data every time I receive a new document for c...
I want to create a dynamic regression model with ARIMA-errors. What I am trying to figure out is if the exogenous variable, x_t and the variable I want to predict, y_t need to have the exact same number of differencing, or if them both being stationary is enough. For example, if one exogenous variable, x_t, needs to b...
I suspect this is an easy question but I don't know what the answer is and would appreciate any help. I have a dataset (UWb) like this... subject whitelvl stainlvl bwhite aged stained fresh wellbeing 1 2 1 1 80.75 10.50 85.50 14.75 16.50 2 2 2 2 72.25 71.50 54.25 40....
A text defines "census" as a survey of the entire population and "sample" as a survey of part of the population. But the text also claims the US Census is an example of a census. It seems to me the US Census is actually an example of a sample not a census because not every person fills out a survey. Is that correct or ...
one simple question: what is the difference between a Dynamic Factor Model (DFM) and a Dynamic Linear Model (DLM) ?
I dont mean some MCDM ranking methods because we have to put the weights for criteria in MCDM. I am wondering is there any ranking method base on the preference input. For example: we have 10 people give their preferences on 3 items I1, I2, I3. The format of the preference will be : P1: I1<I3<I2... P2: I1<I2<I3 .....
The secretary problem ( 1, 2, 3, 4, 5 ) optimal stopping, says "stop and keep the best" in a randomized sequence of known length "k" where you can't select previously elements of the sequence. One stopping criteria says "go through 37% of the total sample, then select the next element that is higher in value than the b...
Which type of data are answers to this scale? How is your sleep quality? Very bad - Very good 1, 2, 3, 4, 5, 6, 7 Would answers to this question be ordinal / nominal / interval / or ratio data? If I want to test the statistical difference in the means for paired samples before and after taking a medicine that...
I am using logistic regression (PROC LOGISTIC) and for both of my two models, the Hosmer and Lemeshow Test is significant. I also computed AUC : AUC(model 1) = 0.583 and AUC(model 2) = 0.604. How can I choose one of them ?