Author Archives: Dr. Darrin

Random Forest Regression with Python VIDEO

In the video below we will take a look at how to perform a random forest regression analysis with Python. Random forest is one of many tools that can be used in the field of data science to gain insights to help people.

photo of people doing handshakes

Leadership Preferences and the Classroom

Dorfman et al. did a study back in 2004 in which they looked at how people from different cultures rated leadership. The team broke leadership down into six components listed below.

  • Charismatic-The ability to motivate and inspire others.
  • Team orientation-The ability to develop a highly functioning team.
  • Participative-The ability to get others included in the decision-making.
  • Humane-oriented-The ability to show empathy and compassion,
  • Autonomous-The ability to be independent and reflect this to the team
  • Self-protective-The tendency of the leader to use face-saving approaches

Naturally, different countries identified differently with each of these components. For example, Asian countries considered self-protective skills highly important, while participation wasn’t as important. Western English-speaking countries were the opposite. The point is not to dwell on the details of the research but to point out that if countries have various skills they find important in leaders, it is not unreasonable that students at an individual level are going to want specific skills in teachers who are leaders of classrooms.


For the teacher, some students are going to want a charismatic teacher, while other students may want a teacher who is human-oriented. The teacher may naturally tend to emphasize autonomy in their leadership approach. The point is not to condemn one approach over the other but rather that the teacher must be aware of what the students are looking for in a teacher while also being aware of their own natural tendency as a teacher.

Suppose a teacher tends to be participative in their approach, but this is not working with students. In that case, a teacher needs to look for ways to overcome this situation. Perhaps a more authoritative approach is appropriate in particular situations. This often goes against what one is taught when becoming a teacher, but the most important tenet of education is helping students to be successful. Helping students be successful may involve ignoring other tenets of education, such as developing a participative classroom environment.

Traits and Behaviors of Leaders

Den Hertog et al. did a study in 1999 looking for traits and behaviors that people admire in leaders and people in general. The positive traits are listed below.

  • trustworthy, smart, honest, planning, encouraging, positive, dynamic motivator, confidence builder, dependable, decisive, bargained, problem solver, administrator, communicator, informed, team builder

These traits mean that if people see them in an individual, such as a person who is in authority, they will admire these traits in that person. The study was worldwide, so these are traits that may be universal. What is also important to point out is these are traits that students like to see in teachers. Students want a teacher they can trust, who solves problems, is positive, and can plan, among other things. If such traits are missing, the students may conclude that the teacher is bad.

On the flip side, these traits listed above are traits teachers like to see in their students. Many teachers would love to have students who are dependable, honest, informed, etc. When students lack these traits, many teachers can identify them as bad students. Teachers need to develop these positive traits to inspire students who may lack these traits while also being able to meet the definition of a good teacher.

In the study, there was also a list of negative traits are listed below

  • loner, antisocial, uncooperative, egocentric, ruthless, dictatorial, inexplicit

For students and teachers, the list above are traits to avoid. Teachers who are dictatorial and unclear (inexplicit) will be seen as bad teachers. Students who are loners, antisocial, and uncooperative will be viewed as bad students. The benefit of this list is that it allows a teacher to clearly articulate and define desirable and undesirable traits in a student. This also applies to administrators who are assessing teachers and teachers trying to explain the quality of leadership they are under.


Everybody is going to possess good and bad traits in different combinations. The point is not to criticize the weaknesses we all possess in our characters. Rather it is better to be aware of one’s weaknesses to make adjustments to help those who are around them.

man in gray long sleeve shirt sitting on brown wooden chair

Crime Types and Students

Young people sometimes make mistakes and violate the laws of a country. Natural, this leads to consequences that vary based on the transgression. This post will look at various categories and types of laws.

Categories of Criminal Behavior

There are two broad categories where we can place crimes that young people commit. These categories are

  • Mala in see
  • Malum in prohibitum

Mala in se is Latin for “wrong by itself,” and these are crimes that people instinctively know are wrong. Examples are robbery, murder, and other acts viewed as heinous. However, people’s views on morality vary widely. Therefore, one basis for what is considered “instinctively wrong” is English and US Common Law.


Common law was developed through decisions made in the court system over hundreds of years. The opinions of judges became precedent for future decisions. Through this process, an idea of what and wrong has been developed, which is used now to determine when crimes fall in the category of mala in se.

The second category of crimes is malum in prohibitum, which translates from the Latin as “wrong when prohibited.” These crimes are not necessarily morally evil but are actions that need to be regulated. Examples of laws that fall within malum in prohibitum include laws related to various licenses people may need (driving, fishing, hunting, etc.), gambling, alcohol, and drug use. Again, many may disagree if these crimes are less harmful, but this is the example given.

Students have and will commit both categories of crime in the examples above. Students will willfully commit crimes obviously while also breaking laws that regulate less offensive behavior.

Types of Laws

After categories, laws are sometimes classified by type. Civil laws include property laws, contract laws, tort laws, and more. Civil laws often involve private parties, do not include the loss of freedom for the defendant, involve the defendant paying money if they lose in many situations, and do not have the same constitutional protections found in criminal cases.

On the other hand, criminal cases usually involve the government bringing formal charges against someone. There is a risk of the defendant losing their from if they lose, and the defendant has certain constitutional rights protecting them. Criminal law also requires actions and behaviors. In other words, the accused must be accused of doing something and not just thinking about it. For example, suppose a person sneezes while driving and someone is hurt in the accident. In that case, there is a chance that the sneezer will not be guilty of a crime because it is impossible to control when you sneeze.

Quality of Mind

The state of mind is also another significant factor in determining an individual’s guilt. There are four ways a person can commit a crime: intentionally, knowingly, recklessly, and negligently. AN intentional act means somebody committed a crime on purpose. Knowingly is obvious and states that a person was aware that what they were doing was a crime, such as breaking into a house and making jewelry.

Recklessness involves a person acting in such a way that is an obvious danger and a disregard for acceptable standards. For example, many people define driving 100 mph in a school zone as reckless. Lastly, negligence is when someone ignores an obvious danger when performing a certain activity, such as driving 100 mph and then hitting and killing someone.

Young people can be found in any state of mind mentioned above. Youths can be international, or they can be reckless or negligent, etc. We all make mistakes, but the stakes are much higher at the criminal level.


Young people will continue to make decisions that strongly impact their lives. Committing crimes is one thing that can have a lasting impact. Youths and teachers need to work together for the young people to develop decision-making skills that will allow them to avoid criminal acts.

light fashion people woman

Three Cueing Reading Method

The Three Cue method is a long-established yet increasingly controversial approach to teaching reading. We will look at the background and philosophy of this reading method in this post.

According to Ken Goodman, there are three cues people use to read, and they are listed below

  • Graphic cues: Examining the letters to determine the word
  • Syntactic cues: Guessing what kind of word it might be, such as an adjective or verb
  • Semantic cues: Guessing the word based on the context or what makes sense.

Goodman also made some conclusions based on his observational research of children learning to read.

  • Reading is not about precision but accurate first guesses
  • as the child improves in their reading, they use fewer graphic cues
  • Detailed perception of letters and words is not necessary


Before Goodman’s bombshell in the 1960s, reading was taught one of two ways. The whole word approach relied on repetition and the use of pictures. A classical example of this approach to teaching reading is the”Dick and Jane” reading series from the 1930s. The assumption is that if a child sees a word often enough, they will learn how to read it.


The other major way of teaching reading has been the phonics approach, which involves learning the sounds associated with letters. One example of this approach is the McGuffey readers of the 1800s

Goodman’s Approach

Goodman took a different approach compared to whole words and phonics. If a student is struggling with reading, the teacher can have the child think (guess) a word that would work in a sentence they are struggling with. For example, suppose a student sees the word “horse” and uses the word “pony” instead. In that case, this is considered acceptable when employing this method. Even though the child never learned how to read the word “horse.”

This approach to reading allowed students to guess their way through a text. If students had an intuitive sense of what works, they could look like they were reading without developing the needed comprehension. This happens because they are not processing words, but rather, they are processing their guesses about words. With time, criticism began to arise towards the THree Cue method.


By the 1970s, people were already beginning to find that Goodman’s method was as great as believed. REsearch at this time was finding that skilled readers could recognize words without relying on the context. Students were able to read without looking at the words! In other words, students were making up their own story guessing their way through a text without mastery.

Students would skip the arduous process of sounding out words to guess. These habits would become bad habits, and children would struggle with reading for a long time and, in some cases, would never really master it. In addition, some students learn to read no matter how they are taught. In other words, no single system can claim to be the answer all the time for learning to read.

Despite this evidence, the Three Cueing Method was highly popular. Most teachers are familiar with this method and maybe learned to read this way. The problem is not Goodman’s method. Rather the problem is relying exclusively on one method to teach anything. Different students learn in different ways, and there will always be a place where Goodman’s ideas will benefit someone.

Phonics does not work for every student, nor does the whole word. It is naive to think that Goodman’s way is the only way. A balanced approach that incorporates various reading methods is one way to reach students. After a teacher gets a sense of what works best for their students, they can focus on one particular approach and occasionally use other strategies to develop weaknesses in students.


When the flaws in a theory are pointed out, it is always tempting to throw them out. However, there is probably always a context or situation in which a theory will work. Goodman’s three cue method doesn’t work all the time. Yet there is evidence that this approach has helped for some of the time.

crop ethnic hacker with smartphone typing on laptop in dark room

Why Students Break Rules

Sometimes bad students become criminals. The warning signs are there, and teachers may do their best to try and prevent something like this from happening. However, kids will still make poor choices no matter what others do to prevent this.

In this post, we will look at why criminals commit crimes and try and compare this to why students break the rules.

Rational Choice Theory

Rational choice theory states that criminals break the rules because it makes sense to them and is reasonable. The criteria for this decision are the risk-reward prospects. Suppose the punishment is not significant or highly unlikely to get caught. In that case, a person inspired by rational choice might think the risk is worth it when breaking laws. Therefore, to eliminate criminal behavior, society needs to have punishments that are strong enough and common enough to deter criminal behavior.


Few people are quite this logical in their decision-making, which applies even more to children. Students may make rational decisions to break the rules, but their behavior is generally more focused on random resistance than strategic anarchy. However, just as with adult criminals, poor behavior will be less likely to happen if there is a sufficient presence of harsh detergents.

Social Disorganization Theory

Social disorganization theory proposes that the makeup of a neighborhood is associated with the level of crime in the neighborhood. Therefore, areas with high levels of dysfunction in broken families, unemployment, drug use, etc., will also be areas of higher crime rates. Therefore, reducing crime is as simple as finding ways to revitalize communities.

This theory seems to align with ideas in teaching strongly. Students from disadvantaged backgrounds often exhibit more behavioral problems in the classroom. Maslow’s Hierarchy of needs touches on these ideas as lower-level needs are often neglected in dysfunctional situations. Therefore, supporting students’ basic needs may help alleviate aberrant behavior from difficult students.

Social Learning Theory

Social learning theory states that lawbreakers learn to break laws from other lawbreakers. A criminal’s peer group and family are among the most powerful influences in the individual’s tendency to break the law. Reducing crime is as simple as removing kids from negative influences.

Social learning theory is also found in education. The theory has the same position as found among criminologists in that individuals learn from those around them. Therefore, if a student likes to hang out with the “wrong crowd,” they will accept and learn the behavior of those people.


Anyone who has made a theory in the social sciences will tell you that no theory adequately explains everything. Human beings are unpredictable and erratic in their behavior. As such, multiple theories are developed to provide insights into different situations. There are times when multiple theories can help or when one theory is the most appropriate insight into developing interventions to help wayward students. Therefore, condemning any of the approaches mentioned here would not benefit all the different types of people with different problems.

landscape photography of mountains covered in snow

Theories on Geological Time & Origins

Uniformitarianism is an ideal proposed by Charles Lyell (1797-1875) that the events of the past can be explained by the processes of the present and that these processes have been constant. This position for explaining earth is also known as Lyellism.

This post will look at theories that will try to support the position of uniformitarianism in explaining the origins of the earth within the context of a religious worldview.

Local Flood Theory

The local flood theory states that instead of a worldwide flood that destroyed all land life, there was a local flood that seemed to destroy the whole world. Given that the average person only knew their local context, it seems reasonable that when a flood came that destroyed their place of living, this was the destruction of the whole world.

The local flood theory is one of the more famous theories. However, another theory may share equal prominence, and that is the Gap Theory.

Gap Theory

Gap theory claims that there were long intervals of time in the creation story as found in the creation story of the Bible. Instead of seven literal days as claimed in the Book of Genesis, these days were long periods of time.

Gap theory has been a popular approach to reconciling religious views on the origin of the earth with scientific views.

A similar idea is the day/age theory which states that it was not a general gap in time but rather that the days of creation were indeterminate lengths of time used for the development of the earth. There is no currently known way to very these ideas. The real purpose was to try and reconcile secular theology with religious thought.

Less Popular Theories

Diluvium theory states that a deposit of sediment was associated with the Pleistocene era. The layer of sediment found here was named Diluvium and thus the name of the theory. This was yet another attempt to try and place geology within the context of a religious worldview.

Another lesser theory is the Tranquil Theory. This theory states that the Biblical Flood slowly rose to cover the earth and slowly resided. The gradual manner of this flood is in contrast to how floods generally behave but does explain the worldwide sediment layer.


The point here was not to support any of these theories presented here. Instead, the point was just to show how people have tried to connect religious thoughts on the changes of this world with scientific evidence.

interior of jail

The Classroom and Juveniles

There are times when a student’s behavior is beyond what the school can handle. When this happens, it is time to escalate the intervention of the student to another level of administrative support. One example of this is when students commit crimes that necessitate the involvement of law enforcement, THis is when a student goes from being disruptive and perhaps troublemakers to being a juvenile delinquent. In this post, we will look at some common terms associated with law enforcement and terms uniquely associated with the juvenile justice system.


A crime is an illegal activity that leads to a student losing their freedom. Illegal activity is defined by lawmakers who pass bills at the federal or state level. For example, littering is illegal, but few people have lost their freedom overdoing this. Crime also involves mental capability, which means someone intends to do something. For example, walking out of a bank with one of the bank’s pens is not illegal unless a lawyer can prove that a person intends to take the pen.

Intention is a major difference between law and classroom management. Often, students do not think before they act, but they are held accountable whatever their mental culpability was. In crime, culpability can be a major factor in determining what can of punishment or if a young person is even guilty.

Levels of Crime

All infractions of the law are not equal. Laws are broken down into two main categories. These categories are misdemeanors and felonies.

Misdemeanors are some of the least offensive crimes and usually can result in less than one year of jail time. Examples of common misdemeanors are theft, driving while intoxicated, and even prostitution in some places. Generally, suppose someone is a first-time offender, as most youths are. In that case, they will not face jail time unless they become habitual offenders.

There might be a lesson here for teachers. Often it seems as if classroom infractions are all treated the same. For example, talking out of turn and refusing to do schoolwork are treated equally. This may be appropriate, but perhaps thought should be given to differentiating the degree of the infraction as is done in the justice system. What gets kids into serious trouble is habitual disregard of minor offenses in the classroom.

Types of Crime

Felonies are crimes considered much more serious in nature and can lead someone to spend more than a year behind bars. Examples of felonies include murder, robbery, and sexual assault.

Crimes can also be divided by type. Examples include violent crimes and property crimes. Violent crimes generally hurt people and include murder, sexual acts, and robbery. Property crimes are crimes committed against things that belong to others, such as theft (taking someone else’s stuff) and arson (burning someone else’s stuff). Hurting people is taken more seriously than hurting people’s stuff, and thus the punishment for violent crimes are harsher than for property crimes.


Young people make mistakes that can involve some of the crimes above. Sometimes these mistakes can have a lasting impact on their lives and on the people around them. Teachers may have to deal with students who make these kinds of mistakes and thus need to be prepared to understand their student’s situations.

two women dancing while wearing dresses at night time

Culture and the Classroom

Culture is a major topic in education. As people travel worldwide, they encounter people who are similar and different from them. Naturally, the diversity that is found today can e beneficial and a headache, and this applies in the classroom as well when teachers and students come together from all over the globe.

This post will look at Hofstede’s Cultural Framework, which involves five dimensions (power distance, individualism, uncertainty, long-term orientation, indulgence). We will examine these concepts as they apply to the context of teaching and the classroom. Furthermore, rather than discussing these terms at the country level, we will look at the aggregation of the individual level, as most classes are small enough to work at this level.

Power Distance

Power distance measures how accepting a student is of hierarchical authority. Students who have a high power distance that a difference between authority between the student and teacher is acceptable, while students with a low power distance want a more egalitarian relationship with their teachers. Naturally, this also applies to teachers, teachers with a high power distance expect a large degree of authority and deference in the class, while lower power distance, teachers view students more as peers and collaborators.


There is no right or wrong place in terms of power distance. Education has gone toward minimizing power distance, but this is a trend and not a moral argument. What really matters is that a teacher is aware of where they stand in terms of power distance and aware of where their students stand regarding this. Understanding that a student needs a more egalitarian power-sharing teacher can reduce conflict and stress for the teacher. In addition, understanding that a student(s) needs a strong authoritarian teacher is also beneficial in improving classroom management.


Individualism is in contrast to collectivism and is the emphasis placed on the person or the group. Highly individualistic students do what is best for them at the group’s expense. Students who are low in individualism will put the group’s needs ahead of their own. Rewards should be determined by effort rather than based on equality. Lastly, highly individualistic students will put the task ahead of relationships.

For teachers, it is important to know how to manage individualistic and collectivistic students to have success in the classroom. An individualistic student will demand autonomy and space, which entails the teacher may need to back off a little. There is a need for harmony and relationships for a collectivistic student, which may mean the teacher needs to back off on being demanding as this is not valued by the student.

Uncertainty Avoidance

Uncertainty is a measure of people’s comfort with risk and unpredictable situations. Young people tend to act recklessly with their own decision-making but are overwhelming condemning of parents and teachers who are unpredictable and erratic. I have seen almost no exception to this in my personal career. Students generally have low acceptance of uncertainty.

This does not imply students don’t like surprises. The point is that change should be slow and occasional with lots of warning. With many unstable families, students are looking to schools to provide constancy and stability in this day and age. As such, uncertainty is something, many students want to avoid as they desire the role of being unpredictable over the teacher. Therefore, teachers probably want to limit uncertainty through clear management and consistent expectations.


Masculinity measures how desirable traditional masculine traits are to a student. Highly masculine students value work and high grades compared to less masculine students. Masculine students live for work while low masculine students are more focused on friendship and doing less, and “smelling the roses.”

Masculine teachers are usually aggressive and ambitious. Naturally, this could cause conflict with students who are more focused on enjoying their time. This is another example of how teachers need to be aware of their own cultural preferences and their students.

Long-Term Orientation

A student’s orientation is determined by whether they focus on the short-term or long-term. Young people tend to focus more on the here and now, while adults often think further into the future. Therefore, like uncertainty avoidance, this may be an example of where there is not as much variance in the position of students.

Generally, students are focused on the moment, but they expect teachers to have a long-term orientation. The reason for this may be the idea of stability. Students want the freedom to be foolish, knowing that they have a support system around them to help them if something goes wrong. IF the supporters cannot plan ahead, it would be difficult for them to help careless students.


Indulgence is the view of the student as to the role of the society or school to fulfill the student’s desires. For example, highly indulgent students think that the school or classroom should be fun and enjoyable. Students who are low in indulgence see school as a place to restrain desire through rules and regulations.

Each student and teacher is going to vary in their orientation of indulgence. The clashes come when teachers and students view this differently. Again, it falls on the teacher to be flexible and reflective to adjust to the students while being aware of their own preferences.


Each person is unique and has their own view of the world and their own preferences. Hofstede’s work was done at the level of countries. However, teachers deal with individuals, not entire nations, which implies that there will be uniqueness among the students in terms of what they value. Therefore, the teacher needs to be aware of what students’ needs and personalities want so that they can help students to be successful

businessman man suit people

Ethical Models

Ethics is a truly controversial field of discussion. Everywhere people are looking for ethical people. It is difficult for people to agree on what ethical behavior is in many situations. Since there is little consensus on what is ethical, it leads to people making poor choices or doing things they think are right yet are classified as unethical by others.

In this post, we will avoid the minefield of what is ethical and look at various models of ethical behavior. Instead of defining what is ethical, we will look at frameworks for how others define what is ethical.


Utilitarianism takes a quantitative approach to defining what is right and wrong. According to this school of thought, whatever brings the most good to the most people is ethical. An example of utilitarianism would be found in the story of people in a lifeboat. For the group to survive, somebody has to be thrown in the water. A utilitarian approach would state that throwing someone in the water is practical to save the group.

Naturally, utilitarianism loses track of the individual. The group or the collective is the main actor in the decision-making process, which can lead to the tyranny of the majority over the minority.


As it relates to ethics, Universalism is focused on a holistic approach to making decisions. Everyone’s needs are taken into account in this model. The focus is on being humane and making decisions based on duty. Returning to the lifeboat example, if Universalism is the ethical model, then somebody would willingly throw themselves into the water so that the majority of the group could survive. Being bound by duty, someone would sacrifice themself for others.


A related school of thought is virtue ethics, which states how people ought to be rather than the reality of how people actually are. People should be moral, happy, trustworthy, etc. Even though it is rare to find people with such traits consistently, all this is stated.

Of course, these schools of thought are highly idealistic and generally not practical. Universalism may be the best approach on paper but is the least likely to be put into practice as individual people generally put what is best for them first.


A legal model for ethics is found in rights such as those found in the US Constitution and human rights. IN this approach, the rights of people are the basis for ethical decision-making. Therefore, violating someone’s rights is an ethical violation.

Returning once again to the lifeboat example. It would violate someone’s rights to throw them in the water to die. However, it would also violate everyone’s rights if everybody died. As such, if the rights model is used in such a situation, there is no answer for the sinking lifeboat that needs to throw one person overboard.

This leads to one problem with the rights model, which is determining the ethical thing to do in a situation in which people both have equal rights to something. People can exaggerate their rights and downplay other people’s rights, leading to an impasse that seems to have no hope of being overcome.

The Common Good

The common good is a combination of the ideas behind Universalism and utilitarianism. IN this approach, decision-makers must take into account. This means that people must think about how their decisions impact the people around them. Decisions can be made at the individual level as long as they consider the larger collective.

Returning to the lifeboat, a person would decide about jumping in the water based on how it would affect others. When deciding who to throw in the water, the group may decide based on the level of responsibility a person has. A single man would be a better person to throw in the water than a single mother because the man is perceived to have fewer obligations.

The problem with the common good is broken down to who decides what the common good is. Whoever or whatever makes this decision has dictatorial power over the others.


The point was not to attempt to determine what is ethical. The reality is that everybody has fallen short in one place or another when practicing ethical behavior. It is possible that people sometimes deliberately make poor choices, but the other side of the story is that sometimes the best decision is hard to determine. The real goal should be to examine the thought process and be aware of the failings that led to poor choices in the past.

photo of santorini greece

Institutional Culture in Education

Every institution has its own unique set of cultural values. Schools are no exception. Of course, people have studied organizational culture and shared insights. Cameron and Quinn (1999) developed the Competing Values Framework, in which they identified four main types of institutional cultures.

The Dimensions

Internal vs. External Focus

The Competing Values Framework has two dimensions and four quadrants which can be found when dealing with a cartesian coordinate system. The x-axis measures whether an institution is internally or externally focused. This is perhaps self-explanatory, but internally focused cultures or more concerned about what is happening within the organization rather than what is happening outside of it.

Stability vs. Flexibility

The y-axis measures whether the institution values stability or flexibility. A culture that favors stability will dislike change and dynamic environments. Naturally, flexible cultures thrive on change.

Cultural Types


A market culture values an external focus and high flexibility. Market culture sare results-oriented, values competition, and generally appreciates getting things done. Survival in this context requires an achievement-oriented personality.


Schools have moved away from competition and achievement over concerns with inequality. There have even been pushback against standardized testing, which is highly results-oriented. It would be unusual to see a school that heavily supports a marketed-oriented culture.


An adhocracy culture is externally focused and appreciates high flexibility. This type of culture is focused on risk-taking, innovation, and dynamic change. To survive in such a climate involves initiative and self-organization. Many tech companies have an adhocracy culture.

Schools would generally not adhere to the adhocracy approach because they are often heavily regulated by the government. It is possible to see demands for this type of culture on an individual level. However, strong innovation and change are difficult at a particular level when you have to report and document everything you do.


A hierarchy culture values being internally focused and a high degree of culture. This culture is highly rigid, searching for efficiency and structure. Hierarchy is often associated with government bureaucracies such as the Postal system or the Department of Education.

Schools would generally fall into this culture type. However, schools, especially smaller schools and elementary schools, our more focused on the children than a large hierarchical culture would generally allow. Hierarchical cultures probably do not want to neglect people. It’s just that the size of the work makes it hard to support everyone the way they need to be.


The clan culture is internally focused while appreciating flexibility. In such a culture, there is a focus on mentoring, nurturing, participation, and empowering individuals. There is a heavy emphasis on people and supporting their development.

Schools would probably most likely fall into the clan culture. Many schools emphasize helping students, and there is a huge demand for flexibility when dealing with students’ needs. Being a teacher is essentially about mentoring, developing, and investing in young people.


There is no single best institution. What this framework does is determine where an individual institution is. One type of culture will work in one context and be a disaster in another. What really matters is that an institution can identify their values and culture and whether this matches the context within which they work.

white caution cone on keyboard

OSEMN Framework for Data Analysis

Analyzing data can be extremely challenging. It is often common to not know where to begin. Perhaps you know some basic ways of analyzing data, but it is unclear what should be done first and what should follow.

This is where a data analysis framework can come in handy. Having a basic step-by-step process, you always follow can make it much easier to start and complete a project. One example of a data analysis framework is the OSEMN model. The OSEMN model is an acronym that defines each step of the data analysis process. The steps are as follows

  • Obtain
  • Scrub
  • Explore
  • Model
  • INterpret

We will now go through each of these steps.


The first step of this model is obtaining data. Depending on the context, this can be done for you because the stakeholders have already provided data for analysis. In other situations, you have to find the data you need to answer whatever questions you are looking for insights into.


Data can be found anywhere, so the obtained data must help achieve the goals. It is also necessary to have the skills or connections to get the data. For example, data may have to be scraped from the web, pulled from a database, or even collected through the development of surveys. Each of these examples requires specific skills needed for success.


Once data is obtained, it must be scrubbed or cleaned. Completing these tasks requires several things. Duplicates need to be removed, missing data must be addressed, outlier considered, the shape of the data addressed, among other tasks. In addition, it is often useful to look at descriptive statistics and visualizations to identify potential problems. Lastly, you often need to clean categories within a variable if they are misspelled or involve other errors such as punctuation and converting numbers.

The concepts mentioned above are just some of the steps that need to be taken to clean data. Dirty will lead to bad insights. Therefore, this must be done well.


Exploring data and scrubbing data will often happen at the same time. With exploration, you are looking for insights into your data. One of the easiest ways to do this is to drill down as far as possible into your continuous variables by segmenting with the categorical variables.

For example, you might look at average scores by gender, then you look at average scores by gender and major, then you might look at average scores by gender, major, and class. Each time you find slightly different patterns that may be useful or not. Another approach would be to look at scatterplots that consider different combinations of categorical variables.

If the objectives are clear, it can help you focus your exploration on reducing the chance of presenting non-relevant information to your stakeholders. Suppose the stakeholders want to know the average scores of women. In that case, there is maybe no benefit to knowing the average score of male music majors.


Modeling involves regression/classification in the case of supervised learning or segmentation in the case of unsupervised learning. Modeling in the context of supervised learning helps in predicting future values, while segmentation helps develop insights into groups within a dataset that have similar traits.

Once again, the objectives of the analysis shape what tool to use in this context. If you want to predict enrollment, then regression tools may be appropriate. If you want what car a person will buy, then classification may help. If, on the other hand, you want to know what are some of the traits of high-performing students, then unsupervised approaches may be the best option.


Interpreting involves sharing what does all this stuff means. It is truly difficult to explain the intricacies of data analysis to a layman. Therefore, this involves not just analytical techniques but communication skills. Breaking down the complex analysis so that people can understand it is difficult. As such, ideas around storytelling have been developed to help data analysis connect the code with the audience.


The framework provided here is not the only way to approach data analysis. Furthermore, as you become more comfortable with analyzing data, you do not have to limit yourself to the steps or order in which they are performed. Frameworks are intended for getting people started in the creative process of whatever task they are trying to achieve.

people sitting at the table

Taylor Principles of Management and the Classroom

Frederick Taylor (1856-1915) developed his management principles in response to the problems he was seeing in the workplace. IN this post, we will look at these principles and the backdrop to their origins.

Industrial Revolutions and its Problems

The Industrial Revolution led to major changes in the production of goods. Items went from being produced at home to being produced in factories. The work went from families working as a team to individuals working away from home. Natural these changes had pros and also cons.


The main pro has already been mentioned and involves the boost in productivity. However, among the cons was a lack of motivation, issues with determining how much to produce with workers and managers manipulating each other, and a general lack of standardization. Lastly, workers were concerned with wages, working conditions, and justice.

Life of Fredrick Taylor

In this context, Fredrick Taylor (1856-1915) emerges. Unable to go to college due to an injury, Taylor went to work in a factory and saw workers destroy tools to prevent overproduction, which they believed could threaten their employment. Witnessing this, Taylor decided to take an empirical approach to this problem.

Taylor applied several different methodologies to examine production, such as time series, standardization, division of labor, time management, and incentives in such context as piecework production. He was also a huge proponent of finding the right person for the job and moving people as necessary to achieve this benefit to the person and the employer.

Four Principles of Management

Below are the four principles of management according to Taylor

  1. Managers should use science for each aspect of a job.
  2. Select and train workers scientifically.
  3. Workers and management should work together to make sure work is done according to principles of management
  4. Responsibility and work should be divided equally between workers and managers

Managers need to make sure science is the tool used for making decisions. Science relies on and observation and analysis of data. Using a scientific process is considered superior to making intuition or gut decisions. When science is used, employees may not agree, but they can see the thought process behind the decision. The principle of data-driven decision is a foundational concept in data science today.

Workers should also be trained and selected scientifically. Again this gives the impression of objectivity and fairness in the decision-making process. Using intuition or other means makes management decision-making questionable.

The third principle emphasizes that everyone should work together from a scientific perspective. Through a united worldview, the assumption is to improve cooperation. The enemy appears to be subjectivity, and both workers and management should avoid this.

The final principle speaks to how management and workers must have a joint interest in responsibilities. The motivation behind this idea is to reduce the hostility that can sometimes arise in the workplace. Suppose everyone is a part of the decision-making. In that case, everyone should have a vested interest in the endeavor’s success.

Taylor and the Classroom

It is hard to see how Taylor’s principles apply in the classroom at the surface level. However, two ideas that come out of Taylor’s principles for teachers are the idea of fairness and dialog. A teacher must demonstrate fairness through the decisions that they make. Students will not agree with a decision at times made by a teacher, but it is important to know that the decisions teachers make are not arbitrary and capricious.

Dialog is also important. Students need to raise concerns openly even if their commands are not implemented. When people are allowed to share, they are often invested in the achievement, which is the same for many students.


Taylor’s principles of management were groundbreaking for them. Even after almost a century, the ideas laid down here inspire managers and leaders in various fields.

man raising right hand

Brief Intro to the History of Management

A simple definition of management would be coordinating a task(s) to achieve a goal. This often involves people, and such management is about coordinating people. Managing people can be viewed negatively and as a form of manipulation or positively in a way that empowers people to accomplish things. In either case, management has a long history. People have been trying to achieve goals for all recorded human history.

Ancient Management

Early forms of management date all the way back to ancient Sumer. The Sumerians, people from Mesopotamia, developed writing to manage their training empire. Merchants needed a way to keep track of their records regarding what was bought and sold, among other things. Writing was developed for this purpose, perhaps because the trade volume was too high to track by memory.


In the ancient city of Babylon, Hammurabi developed his Code of Hammurabi to manage behavior and control his people. The significance of the Code of Hammaruabi is that it is one of the oldest examples of law ever found. One of the more famous examples from this code is quoted below.

If a man put out the eye of another man, his eye shall be put out. [ An eye for an eye ]

Code of Hammurabi Line 196

The example above is the law of retribution or lex talionis. The law of retribution is found in many other places. One example would be the Bible. A later King named Nebuchannezer developed the idea of incentives by providing more food to workers who produced more.

Ancient Egypt also had contributed to management when they developed ideas behind the division of labor. Dividing labor is taken for granted; however, when agrarian cultures moved towards developing trade and cities, everyone did not have the time to farm. By dividing labor, people could focus and become highly competent at something. In addition, division of labor allows some of the Egyptians to develop the pyramids.

Management In China and the West

In China, Sun Tzu and his “Art of War” lays down many ideas related to management. Ideas behind resources management, inspiring the people, and examining oneself are all addressed in this classic. Countless managers have read and received inspiration from this practical book.

The Han dynasty of China (206 BC – 220 AD) also contributed to management through its development of bureaucracy. The large governmental system that was important at this time helped the dynasty control and monitor the people while also providing opportunities to people good enough to pass the various civil servant exams.

The Greeks and the Romans have also made their contributions to management. The Greeks also developed division of labor, or perhaps they borrowed the idea from the Egyptians with who they had frequent contact through trade. The Romans gave the world standardization. Standardizing everything allowed the Romans to produce things much faster for conquest. The Romans could pave the world because the roads were generally built the same way, saving time and resources.


Management will continue to play a role in the world as the world becomes more complex. Therefore, it will be interesting to see what the next generation of innovations will be.

brain inscription on cardboard box under flying paper pieces

Challenges to Decision-Making

Decisions are a critical part of the life of people, whether teachers or leaders. Even though this is an important skill, many people struggle with making decisions about important and even mundane matters. In this post, we will look at several challenges to making decisions.

Sunk Cost

There are times when a decision is made, and after some time, all parties involved begin to realize it was a bad decision. The challenge in this context is that since time and resources have already been devoted to this bad choice, maybe if everyone is patient, things will begin to work out. Generally, this is not the case.


Organizations and schools make this kind of mistake all the time. For example, a new curriculum or technology is adopted by the school. It is clear that this software or tech is not working, but a commitment has already been made. Such a situation can lead to a great deal of frustration among faculty and staff.


Nobody can predict the future. When it is unclear in terms of what to expect, it can lead to analysis paralysis, which essentially means that leadership or the teacher tries not to make a decision until new evidence arises. Unfortunately, new evidence is normally not forthcoming except that there is now less time to decide, and options begin to disappear because of lost time.

Since there is no way to be 100% sure of anything, the next best approach may be to make small incremental decisions and or take a step forward and be bold and see what happens. Neither of these alternatives is attractive, but there are times when a decision must be made.

Temporal Constraint

Due to procrastination, there are times when there is not enough time to decide. Again, some teachers and leaders what as long as possible and then go with the only viable option when they are forced to decide. When this happens, the teacher can blame the context for what happened when the reality is that they did not want to make a decision. There is no better excuse than a lack of time in many situations.

Time can be an ally in decision-making if used for thinking rather than for avoiding making a decision. Too often, people fall for the temptation of letting circumstances dictate their choices.

Limits of Reasoning

While thinking is good, there are limits to what reasoning can accomplish. There is no way to collect all data and process all possibilities when it is time to decide. Eventually, there comes the point where a teacher has thought enough about a decision and must make a decision. However, not too many people fall for the trap of limited reasoning as reasoning is not generally encouraged in this day and age.


People are often more comfortable with situations in which their own ideas and beliefs agree with the decision to be made. For example, a group of teachers may agree on something because they share similar backgrounds and thus have a similar perspective on a matter. This is an example of confirmation bias in which a person looks for information in agreement with their own position. Such examples can include people who agree with you or information that supports your position.

Bias is not always bad. If a decision needs to be made quicker, then a group of people with similar views can agree fast. However, suppose the goal is a creative or innovative solution. In that case, a diverse group is more likely to challenge and stretch each other to a novel idea.


The final barrier to decision-making is conflict. Most people want to avoid conflict as it can lead to disharmony and other problems. However, people will not agree in the decision-making process, and they often like their idea at the expense of other people’s ideas.

There are two forms of conflict. Process conflict is disagreements about doing something and is not about an individual. Relationship conflict is personal and involves attacks on the person rather than the process or idea. Process conflict can lead to better processes, but once it becomes personal, it can collapse the decision-making process. It is difficult for many people to separate themselves from their shared ideas, but learning to do this is highly beneficial for the decision-making experience.


Decisions need to be made alone and in groups. Whatever the case may be, there are impediments to the decision-making process that people need to be aware of. The ideas presented here are just some of the challenges awaiting people who need to make up their minds about something.

man sitting in front of three computers

Decision-Making and the Brain

Decision-making generally takes place in one of two ways. The two ways are the reflective system and the reactive system. The reflective system is the analytical way of making decisions and is often characterized as methodical and logical. Although the thought process is carefully laid out when using the reflective system, the downside is that reflecting is much slower than reacting. Therefore although often viewed as superior, the reflective system is not always the optimal choice.

Two Systems

The reactive system is intuitive and relies more on emotions when compared to the reflective system. Although much faster than the reflective system, the reactive system is much less accurate and or careful. As such, the benefit of reactive is when spending is needed, and the complexity of the problem is not significant. Children tend to rely more on the reactive system as they lack the cognitive ability and experience to ponder reflectively.


The system that people use often depends on their emotional states. When people are calm, and at peace, they are more likely to use the reflective system. However, if people are angry, sad, happy, etc., they may use the reactive system. We have all been in situations where our emotions control us when dealing with students. This may be an example of the reactive system taking over reasonably. The choice of which system is also associated with personality as some prefer one style over another regardless of their emotional state.

Different decisions can rely on different systems. If a teacher faces a routine decision, they may choose to use the reactive system to make a fast decision. If the situation is novel and unusual, the teacher may adopt a reflective approach. This is one reason why experienced teachers can work faster. The speed is based on using prior knowledge to make a quick, insightful decision that reactively while a new teacher has to reflect on every single experience because they are all so novel.

Types of Decisions

Decisions that are repeated frequently and based on rules are called programmed decisions. These can include things such as when to take a break, how much time to give for a test, etc. The ability to autopilot these decisions comes from experience.

Non-programmed decisions are decisions in a context in which clear criteria are not available. Examples of non-programmed decisions in the classroom may include equipment breakdowns, accepting new students, etc. This implies that reflection will be necessary to decide in this unclear situation.


The point here was not to try and make a case that one form of decision-making is superior to the other. Each system has its pros and cons and what really determines what’s best is the context in which the decision needs to be made. There is little time for reflecting if there is a fire in the class. In addition, it is equally harmful to determine students’ grades reactively.

woman in red long sleeve writing on chalk board

Responsibilities and Skills of Teachers

Every job has its list of responsibilities and skills required for the position. This post will look at some of the common skills and responsibilities associated with teaching.


Teachers are expected to spend a large amount of their time making daily and long-term lesson plans. Developing these plans can include setting long-term goals, short-term objectives, procedures, assignments, and more. However, Once plans are developed, they have to be implemented, which involves coordinating students’ behavior and, at times, working with people outside of the class for various reasons.


Teachers have to constantly observe the behavior of their students and make adjustments to what plans or goals they have in mind. For example, if students are struggling, the teacher needs to slow down and reteach. Suppose the problem is not comprehension but a rather poor attitude. In that case, the teacher needs to modify how they enforce rules.

books ad

Teachers also have to track resources such as paper, pencils, books, time, etc. These things must be observed while also trying to move forward in the curriculum and maintain learning.

Professional Development

Teachers also must stay abreast of the latest developments in their field. This includes changes and innovation in teaching and in one’s area of expertise. Different fields change at different speeds, but all teachers have to stay current to help students to be prepared for the workforce and or college.

Staying current in one’s profession is not overly time-consuming. The real challenge is doing this along with the other responsibilities of teaching and the demands of one’s life outside the classroom.

Skills of Teachers

The skills of teachers can be broken down into three categories

  • Technical skills
  • Human relation skills
  • Conceptual skills

Technical skills are essentially the expertise of the teacher. For example, a math teacher knows math and can use it practically. In addition, teachers must have technical knowledge of teaching, such as familiarity with pedagogy and various approaches to instruction. Generally, a teacher must have a high degree of technical skill because they are a teacher to others.

Human relation skills are the ability to work with other people. Teachers need to have ways to connect with students to inspire enthusiasm and growth. In addition, teachers also need to maintain relationships with other teachers, parents, and the administration. Working with others is often dicey, and surprisingly, teachers can often struggle to maintain a cordial relationship with their peers, students, and community members.

Conceptual skills relate to planning and seeing the big picture. Developing this skill comes with experience. For example, new teachers often cannot see beyond developing daily lesson plans, while more experienced teachers can plan months or semesters at a time. Conceptual skills become more important if a teacher moves more in the direction of leadership after a few years in the classroom.


Teaching is a challenging field in that it calls on a person to keep track of several important tasks while also developing themselves and working with others. Since doing this is no easy task, perhaps that is why so many teachers can find their jobs challenging.

crop businessman giving contract to woman to sign

Teachers as Classroom Managers

Henry Mintzberg (1973) researched what business managers do within companies. His results indicated that managers have three primary roles, which are…

  • Interpersonal
  • Informational
  • Decisional

We will examine each of these roles within the context of a teacher as a classroom manager.

Interpersonal Roles

The interpersonal role of a manager involves dealing with many people during a given day. Managers serve as figureheads, and this involves such tasks as greeting guests, participating in various ceremonies/formal activities, and being the general face of whatever they are in charge of. Teachers are frequently involved in figurehead-type roles as classroom managers. For example, teachers are often responsible for flag ceremonies in the morning, participating in graduation, responding to guess who comes to the classroom, etc. As such, teachers have a lot in common with business managers in the role of figurehead.


A second interpersonal role for managers is that of liaison. The liaison role involves maintaining connections outside of the group or unit that the manager is in charge of. It also involves connecting people within the organization with those outside and keeping track of information gained through external and internal relationships. For teachers, serving as a liaison is not as common in my experience. Often the student has access to the same people like the teacher. One exception may be if a teacher helps a student obtain a job or get into a college by providing connections to such opportunities.

A final interpersonal role of managers as a leader. The leader role involves training, motivating, and communicating with subordinates. When most people think of managers, this may be the first thing that comes to mind. This is also a primary function for teachers as they are expected to lead the classroom and communicate expectations with students.

Informational Roles

The informational role defines itself and involves obtaining pertaining data relating to the goals of the manager’s team. One role that falls under this category is that of a monitor. The manager is supposed to gather information from various sources to improve decision-making, among other things. Teachers also have to play this role as one of their primary functions is communicating what they have learned with their students. Teachers and managers who like knowledge or expertise will generally struggle with their role as a manager.

A second informational role is that of a disseminator of information. As mentioned with the teacher, the manager gathers information to share it. There are various lines of communication such as telephone, email, chat, etc. Whatever channel(s) is chosen is just how the manager shares information. We have already discussed how teachers spend the majority of their time sharing information, so we do not need to add much but to mention that it is important to consider how the information is shared in that do the students understand.

Lastly, managers serve as spokespersons, which means sharing information with people outside the unit or team. Sharing information like this can involve speaking with superiors, members of the community, etc. For teachers, the role of spokesperson may involve sharing concerns of their students with administration or with other teachers. Students sometimes like to raise concerns about things that the teacher can speak about because the teacher has a higher status. Thus the spokesperson role may be an advocacy position for a classroom teacher.

Decisional ROles

The final collection of roles of managers involves decisions. A manager is also an entrepreneur, which involves taking the initiative in projects and delegating responsibilities. Teachers are often implementing new ideas and teaching approaches in their classroom, and when possible, they will delegate responsibilities to students.

Managers also must handle conflicts and other emergencies. These conflicts can be among coworkers, with people outside the team, and even with the manager themself. As such, diplomatic skills are an important aspect of a manager’s skill set. Teachers may deal with even more conflicts than managers, given the age of the students. Both managers and teachers have in common the must know how to handle conflict and surprises.

Managers are also resource allocators, and this involves sharing not necessarily information but tangibles things such as budget resources, determining schedules, and setting wages. Teachers also serve as resource allocators as they determine who gets to use the computers, when it’s time to play, what rewards students get for good behavior, and much more. Care must be given to resource allocation as hints of unfairness and favoritism can lead to conflict.

The final role of a manager is that of a negotiator. This role is often paired with many of the other roles already mentioned. For example, the manager may negotiate as a spokesperson for their team, negotiate a conflict between subordinates, etc. For teachers, the same ideas apply. Teachers have to negotiate for themselves, their students, and with parents as just some examples.


From the examples presented here, we can see that teachers as classroom managers have a lot in common with managers in the business world. Both teachers and manger need to perform roles that involve interpersonal skills, informational skills, and decision-making skills. As such, a knowledge of management in the context of business could help teachers in their classrooms.

scientists experimenting in the laboratory

Acid & Bases

We will take a look at some simple ideas related to acid bases

Acids and bases are classified by the chemical behavior of their molecules. Acids usually have a sour taste, are covalent electrolytes, and turn litmus paper red. Citric acid is one example of an acid many of us have encountered as it is commonly found in citrus fruits such as oranges. At a technical level, acids donate a H+ ion during a chemical reaction.


On the other hand, Bases tend to have a better taste, are slippery when mixed with water, and turn litmus paper blue. Soap is one example of the use of a base in everyday life. Bases accept an H+ ion during a chemical reaction at a technical level. When acids and bases are mixed, they generally neutralize each other and produce water as a by-product.

Most acids and bases are aqueous solutions, which means they are found in a liquid state. However, some liquids do not neatly fall into the category of acid or base. Water is an example of this, and the term used to describe this is amphoteric. This means that water will sometimes donate an H+ ion or accept an H+ ion depending on the context. For this reason, water is often added to acids/bases to dilute the concentration of either one.

Water is also considered neutral on the pH scale commonly used to identify acids and bases. The Ph scale stands for potential hydrogen scale and measures the amount of hydronium ion in the solution. Lower numbers on the pH scale indicate higher levels of hydronium.

Most fruits and vegetables are considered to have low pH, thus considered base or alkaline, and they include the following

  • Avocados
  • Persimmon
  • lentils
  • Olives, black
  • Honeydew melon
  • Mangoes, ripe
  • Honeydew

Foods that are acidic in nature include the following

  • Most dairy
  • Citrus fruits
  • Meat
  • Sweeteners
  • Alcohol

There are lots of websites that promote such things as an alkaline diet. However, this is generally highly controversial, and the experts do not seem to agree about the benefits of eating alkaline foods.


Understanding acids/bases and their behavior can be important, especially in everyday life. Acid and bases serve a vital role in many different substances and can be helpful or harmful depending on the context.

activity adventure aerial air

Gases, Pressure, & Laws

It is common in chemistry to have to deal with gases. Naturally, scientists have uncovered various laws that describe how gases act. This post will look at concepts such as pressure and the development of various laws related to gases and pressure.

Pressure and Units

Pressure is defined as (force / area). To make this practical, scientists have found that our bodies are constantly exposed to 14.7 pounds of pressure per square inch by the air around us. Our bodies are so used to this constant external pressure that without it breathing would be difficult, if not impossible.

There are various units of measurement of pressure. The Pascal, named after Blaise Pascal, is newtons per meter square. However, Pascals are rarely used by scientists. Another common unit is standard atmospheric pressure or atm for short, which is the average amount of pressure exerted by air at sea level. As a fact, one atm is the equivalent of 101,325 pascals.


One more unit for pressure is the torr, which is 1 /760th of an atm. In terms of measuring pressure, it is common to use a barometer, and a barometer measures pressure using millimeters of mercury or mmHg. The units on a barometer are almost the same as for the torr.

Laws Related to Gases

There are several laws related to gases. For example, Boyle’s law states an inverse relationship between pressure and volume with the assumption that temperature is constant. In other words, when the pressure goes up, the volume will go down and vice versa. Boyle’s law was developed by Robert Boyle, an Irish scientist from the 17th century.

Breathing is based on Boyle’s law. When we breathe, inhaling causes the volume of our lungs to grow, which leads to a drop in pressure. The pressure drop is what allows air to flow into the lungs. The opposite takes place when we exhale. Our lungs become smaller, raising the pressure and forcing the air out of our bodies.

Charles’s laws are somewhat of a variation on Boyle’s law. This law was developed by Jacques Charles, a French scientist of the 18th century. Charles law states that if pressure is constant, then temperature and volume are proportional. In other words, when the temperature goes up or down, then the volume will go up or down.

An interesting by-product of Charles’ law is the idea behind absolute zero. Essentially, as we lower the temperature, the volume of a gas will shrink. However, gas is made of matter, and it can’t go to zero. This implies that there is a lower limit to temperature, and this lower limit is called absolute zero and is -273.15 C.

As shown below, the combined gas law combines Boyle and Charles’ law into one equation.

(p * v) / T

Pressure times volume captures a value to describe a gas in a particular context. However, we use the equation to solve for unknown values, so it is more appropriate to show it as follows.

(p1 * v1) / T1 = (p2 * v2) / T2


People generally dislike pressure, but the pressure is literally needed for life, at least when it comes to gases. Thanks to the work of many excellent scientists, we have a better understanding of how gases behave in the world around us.

bird s eye view of group of people

Crowds and Theories on Collective Behavior

This post will look at various types of crowds that we often find ourselves a part of at different times. In addition, we will look at two theories that attempt to explain the collective behavior that happens when crowds form.


A crowd is a group of people who are close to each other. There are several types of crowds. A casual crowd is a group of people who are together but not really interacting with each such as what one would find in a shopping mall. In the shopping mall, there are lots of people, but the interaction among the people is often limited to small groups.

A conventional crowd is a group of people who come together for a scheduled event. A common example of a conventional crowd would be people coming together for a religious service. In such an environment, the people have a general-purpose. There is generally more interaction because of the unity that a religious experience can often bring people.


An expressive crowd is a crowd that is together for an emotional purpose. Examples of expressive crowds can include such things as weddings and funerals. Lastly, an acting crowd is a crowd that comes together for a specific purpose or goal, such as a sporting event. Of course, these categories are artificial, and maybe an event may not fit neatly in anyone exclusively, but they do provide a way to organize large groups of people.

When people find themselves in crowds, they often exhibit the group’s norms, which is called collective behavior. For example, a perfectly rational individual will begin to act emotionally in a charismatic religious experience or will become violent within the context of a riot.

Emergent Theory

Several theories have attempted to explain how norms in crowds develop. Emergent norm theory states that people react to the crowd they are in with their own norms, which change as the crowd responds to different stimuli. For example, suppose people are angry and frustrated with the government. In that case, the group may believe that breaking and burning things is acceptable. Outsiders consider this lawbreaking, but for the people within the crowd, this is justifiable behavior in the face of injustice. In other words, the emergent theory attempts to explain that the behavior of a crowd is not irrational and unpredictable but rather a logical response to the current situation.

An example of such behavior can be found in the protesting in the US. People got together and began to break into buildings and steal and destroy property. Things individuals would have never done by themselves were brazenly done in a justified manner due to the perception of injustice.

Value-Added Theory

Value-added theory states that several conditions must be present for collective behavior as found in a crowd can take place.

  1. The first is structural conduciveness which means that people are aware of a problem and begin to gather together.
  2. The second is a structural strain which is people developing frustration over the unsolved problem.
  3. Third is growth and spread of disbelief which means the problem is clearly defined and blame is placed on an individual or group.
  4. The fourth condition is called precipitating factors, which is a trigger event that leads to collective behavior.
  5. The fifth condition is mobilization which involves the emergence of leaders to guide the crowd.
  6. The final condition is social control, and this involves the process of ending the collective behavior.

The protesting that has taken place in the US can also be explained from the perspective of value-added theory. A group of people gather together over a perceived injustice, they begin to get angry, they blame the people in positions of power, some starts to break, burn or steal something, more people follow this example and chaos breaks out, only after a time are the authorities able to end the carnage.

These conditions do not have to happen linearly, but most must be present for collective behavior to begin. For example, leaders can emerge at the beginning rather than the fifth condition.


The theories above try to explain from different viewpoints a phenomenon that most of us have experienced: the loss of self when moving in a crowd. The behavior of such crowds does not have to be negative, but it is negative behavior that is easier to notice compared to positive action. In whatever case, these theories do provide some insight into what can be a blessing or a curse.

graduated cylinders with yellow liquid

Solutes, Solvents, & Molality

A solution in chemistry is a homogenous mixture of two or more substances. The substances that are found in a solution can further be broken down into two types, and these are solute and solvent. The solute is the substance(s) dissolved into a solution. A solvent is a substance into which a solute is dissolved. In other words, solutes generally disappear into solvents. An example would be pouring salt into water. The salt is the solute, and the water is the solvent, and it appears that the salt disappears when added to water.

There is a limit to how much solute can be dissolved into a solvent. The term for this is solubility. Solubility varies from substance to substance but as an example, salt has a solubility of 35.9 grams per 100 grams of water. This means that you can dissolve 35.9 grams of salt in 100 grams of water. Any more salt, and there will be no more dissolving. The technical term when a solute can no longer dissolve in a solution is saturation, and the solution is now saturated.


Solubility is also affected by temperature. For a gas, the solubility increase as the temperature is lowered. However, the solubility of a gas increases with an increase in pressure. For solids, solubility actually increases with temperature.


The concentration measures the amount of substance in a given volume. Concentration is measured by a unit called molarity. Molarity is the proportion of the moles of solute to the liters of solution. For example, suppose I have 150 grams of calcium nitrate, and I dissolve this into 1 liter of water. In that case, I can calculate the molarity as follows.

  1. Determine the amu of calcium nitrate
    1. This is calculated by finding the number of amu, which in this case is 164.10 amu
  2. Convert the amu to moles
    1. This is done by placing the original grams as the numerator of a fraction and the amu as the denominator, which is
    2. 150/164.10 = 0.9141 moles
  3. Use the ratio
    1. Our answer is simple it is moles to solution as shown below
    2. 0.9141 moles / 1 liter = 0.9141 M

Freezing and Boiling

A final point to mention is a term called freezing point depression. This involves mixing solutes and solutions that can change the freezing point of the substance. What is taking place is that when a solute is added to a solution, it now requires more energy to freeze the new substance. This is why salt is thrown on roads during icy days. The salt lowers the temperature at which ice can form, thus making the roads safer. However, there is a limit, and if it becomes cold enough, the salt will no longer have the desired effect.

Another factor involves the boiling point. Solutes increase the temperature that is needed for boiling to occur.


Solutes and solvents are among many terms used in chemistry to define the behavior of substances in a certain context. It is amazing how complex the world is and how there is always so much more that can be learned in various knowledge domains.

cn tower in toronto

Demographic Theories

People have tried to explain population growth and decline for centuries. A major topic of controversy today is how to deal with an ever-increasing population. This post will look at several theories that try to address population growth.

Malthusian Theory

Thomas Malthus is famous for claiming that the Earth would lose its ability to sustain an ever-growing population. In his theory, Malthus claims three factors would limit the growth of humans on Earth. These three factors are war, famine, and disease. Malthus defined these three factors as “positive checks” because they increase mortality.

Malthus also defined “preventive checks” or factors that reduced fertility. These factors were birth control and celibacy. As resources were depleted, Malthus theorized that they would begin to fight wars, generally leading to famine and disease. As the fighting over resources continued, people would limit the children they have or even forgo marriage and having children together.


Malthus’s predictions turned out to be incorrect. There have been technological improvements that he could never have foreseen. These improvements in technology have not only increased food production but have also included treatments for diseases that used to kill.

However, Malthus was correct about preventive checks. In the western world and some parts of Asia (Japan, China, Singapore, and Thailand). Fertility rates have plummeted as people focus on careers and other things rather than raising a family. The general trend of the world is an increase in people, but this may change with time.

Zero Population Growth

A variation on Malthus theory was developed by Paul Ehrlich. Ehrlich states that the environment and not food supply is the factor that determines the planet’s population. As more and more people abuse the environment, it endangers the human population.

Ehrlich’s solution to this problem is zero population growth which, as its name implies, that the number of births equals the number of deaths. No practical way has been found to do this, but this demographic theory is often associated with conspiracy theories of how the elite wants to limit population growth.

Cornucopian Theory

The opposite of Malthus and Ehrlich’s position would be cornucopian theory. This theory posits that human ingenuity can resolve whatever problems humans face. It is possible to cite human ingenuity examples that develop after a crisis, such as vaccinations. However, often by the time the breakthrough is implemented, the catastrophe has already done significant damage has already been done.

Not even the Black Death of the medieval period completely wiped out humanity. The cornucopian theory is always correct until something happens on Earth that wipes out human existence.

Demographic Transition Theory

Demographic transition theory takes a modeling approach to demographic change. Population growth follows four predictable stages in this theory, as explained below.

Stage 1: Births, deaths, and infant mortality are high with low life expectancy.

Stage 2: Birth rates are high while infant mortality and death drops with an increase in life expectancy

Stage 3: Birthrates decline for the first time while death rates continue their decline, life expectancy continues to increase

Stage 4: Birth and death rates keep falling, life expectancy peaks, the population stabilizes, and may start to decline.

These stages are often associated with industrialization. Many countries enter stage 2 when they begin to industrialize. A fully developed country is often found in stage 3, while a post-industrial country could be found in stage 4.


The question that perhaps everyone is wondering is perhaps how much more can the population grow on this planet? It may be impossible to know for sure. Every time it appears the Earth has reached its limit, new resources are discovered, and there is a boost in technology that makes it easier to continue life with whatever resources are available. A question such as this is one that experts will wrestle with for a long time.

computer program language text

More Selecting and Transforming with dplyR

In this post, we are going to learn some more advance ways to work with functions in the dplyr package. Let’s load our libraries


Our dataset is the gapminder dataset which provides information about countries and continents related to gdp, life expectancy, and population. Here is what the data looks like as a refresher.

## Rows: 1,704
## Columns: 6
## $ country   <fct> "Afghanistan", "Afghanistan", "Afghanistan", "Afghanistan", …
## $ continent <fct> Asia, Asia, Asia, Asia, Asia, Asia, Asia, Asia, Asia, Asia, …
## $ year      <int> 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, …
## $ lifeExp   <dbl> 28.801, 30.332, 31.997, 34.020, 36.088, 38.438, 39.854, 40.8…
## $ pop       <int> 8425333, 9240934, 10267083, 11537966, 13079460, 14880372, 12…
## $ gdpPercap <dbl> 779.4453, 820.8530, 853.1007, 836.1971, 739.9811, 786.1134, …


You can use the colon symbol to select multiple columns at once. Doing this is a great way to save time when selecting variables.

## # A tibble: 1,704 x 3
##    lifeExp      pop gdpPercap
##      <dbl>    <int>     <dbl>
##  1    28.8  8425333      779.
##  2    30.3  9240934      821.
##  3    32.0 10267083      853.
##  4    34.0 11537966      836.
##  5    36.1 13079460      740.
##  6    38.4 14880372      786.
##  7    39.9 12881816      978.
##  8    40.8 13867957      852.
##  9    41.7 16317921      649.
## 10    41.8 22227415      635.
## # … with 1,694 more rows

You can see that by using the colon we were able to select the last three columns.

There are also arguments called “select helpers.” Select helpers help you find columns in really large data sets. For example, let’s say we want columns that contain the string “life” in them. To find this we would use the contain argument as shown below.

## # A tibble: 1,704 x 1
##    lifeExp
##      <dbl>
##  1    28.8
##  2    30.3
##  3    32.0
##  4    34.0
##  5    36.1
##  6    38.4
##  7    39.9
##  8    40.8
##  9    41.7
## 10    41.8
## # … with 1,694 more rows

Only the column that contains the string life is selected. There are other help selectors that you can try on your own such as starts_with, ends_with and more.

To remove a variable from a dataset you simply need to put a minus sign in front of it as shown below.

gapminder %>%
        select(-lifeExp, -gdpPercap)
## # A tibble: 1,704 x 4
##    country     continent  year      pop
##    <fct>       <fct>     <int>    <int>
##  1 Afghanistan Asia       1952  8425333
##  2 Afghanistan Asia       1957  9240934
##  3 Afghanistan Asia       1962 10267083
##  4 Afghanistan Asia       1967 11537966
##  5 Afghanistan Asia       1972 13079460
##  6 Afghanistan Asia       1977 14880372
##  7 Afghanistan Asia       1982 12881816
##  8 Afghanistan Asia       1987 13867957
##  9 Afghanistan Asia       1992 16317921
## 10 Afghanistan Asia       1997 22227415
## # … with 1,694 more rows

In the output above you can see that life expectancy and per capa GDP are missing.


Another function is the rename function which allows you to rename a variable. Below is an example in which the variable “pop” is renamed “population.”

gapminder %>%
        select(country, year, pop) %>%
## # A tibble: 1,704 x 3
##    country      year population
##    <fct>       <int>      <int>
##  1 Afghanistan  1952    8425333
##  2 Afghanistan  1957    9240934
##  3 Afghanistan  1962   10267083
##  4 Afghanistan  1967   11537966
##  5 Afghanistan  1972   13079460
##  6 Afghanistan  1977   14880372
##  7 Afghanistan  1982   12881816
##  8 Afghanistan  1987   13867957
##  9 Afghanistan  1992   16317921
## 10 Afghanistan  1997   22227415
## # … with 1,694 more rows

You can see that the “pop” variable has been renamed. Remember that the new name goes on the left of the equal sign while the old name goes on the right of the equal sign.

There is a shortcut to this and it involves renaming variables inside the select function. In the example below, we rename the pop variable population inside the select function.

gapminder %>%
        select(country, year, population=pop)
## # A tibble: 1,704 x 3
##    country      year population
##    <fct>       <int>      <int>
##  1 Afghanistan  1952    8425333
##  2 Afghanistan  1957    9240934
##  3 Afghanistan  1962   10267083
##  4 Afghanistan  1967   11537966
##  5 Afghanistan  1972   13079460
##  6 Afghanistan  1977   14880372
##  7 Afghanistan  1982   12881816
##  8 Afghanistan  1987   13867957
##  9 Afghanistan  1992   16317921
## 10 Afghanistan  1997   22227415
## # … with 1,694 more rows


The transmute function allows you to select and mutate variables at the same time. For example, let’s say that we want to know total gdp we could find this by multplying the population by gdp per capa. This is done with the transmute function below.

gapminder %>%
        transmute(country, year, total_gdp = pop * gdpPercap)
## # A tibble: 1,704 x 3
##    country      year    total_gdp
##    <fct>       <int>        <dbl>
##  1 Afghanistan  1952  6567086330.
##  2 Afghanistan  1957  7585448670.
##  3 Afghanistan  1962  8758855797.
##  4 Afghanistan  1967  9648014150.
##  5 Afghanistan  1972  9678553274.
##  6 Afghanistan  1977 11697659231.
##  7 Afghanistan  1982 12598563401.
##  8 Afghanistan  1987 11820990309.
##  9 Afghanistan  1992 10595901589.
## 10 Afghanistan  1997 14121995875.
## # … with 1,694 more rows


With these basic tools it is now a little easier to do some data analysis when using R. There is so much more than can be learned but this will have to wait for the future.

shallow focus photo of man holding floor brush ceramic figurine

Data Aggregation with dplyr

In this post, we will learn about data aggregation with the dplyr package. Data aggregation is primarily a tool for summarizing the information you have collected. Let’s start by loading our packages.


dplyr is for the data manipulation while gapminder provides us with the data. We will learn the following functions from the dplyr package

  • count()
  • summarize
  • group_by()
  • top_n()


The count function allows you to count the number of observations in your dataset as shown below.

gapminder %>%
## # A tibble: 1 x 1
##       n
##   <int>
## 1  1704

The output tells us that there are over 1700 rows of data. However, the count function can do much more. For example, we can also count values in a specific column. Below, we calculated how many rows of data we have by continent.

gapminder %>%
## # A tibble: 5 x 2
##   continent     n
##   <fct>     <int>
## 1 Africa      624
## 2 Americas    300
## 3 Asia        396
## 4 Europe      360
## 5 Oceania      24

The output speaks for its self. There are two columns the left is continent and the right is how many times that particular continent appears in the dataset. You can also sort this data by adding the argument called sort as shown below.

gapminder %>%
        count(continent, sort =TRUE)
## # A tibble: 5 x 2
##   continent     n
##   <fct>     <int>
## 1 Africa      624
## 2 Asia        396
## 3 Europe      360
## 4 Americas    300
## 5 Oceania      24

There is another argument we can add and this is called the weight or wt argument. The wt argument adds up the values of the population in our example and we can now see how many respondents there were from each continent. Below is the code an example

gapminder %>% 
        count(continent, wt=pop, sort=TRUE)
## # A tibble: 5 x 2
##   continent           n
##   <fct>           <dbl>
## 1 Asia      30507333901
## 2 Americas   7351438499
## 3 Africa     6187585961
## 4 Europe     6181115304
## 5 Oceania     212992136

You can see that we now know how many people from each continent were in the dataset.


The summarize function takes many rows of data and reduce it to a single output. For example, if we want to know the total number of people in the dataset we could run the code below.

gapminder %>%
## # A tibble: 1 x 1
##     total_pop
##         <dbl>
## 1 50440465801

You can also continue to add more and more things you want to know be separating them with a comma. In the code below, we add to it the average GDP.

gapminder %>%
        summarize(total_pop=sum(pop), average_gdp=mean(gdpPercap))
## # A tibble: 1 x 2
##     total_pop average_gdp
##         <dbl>       <dbl>
## 1 50440465801       7215.


The group by function allows you to aggregate data by groups. For example, if we want to know the total population and the average gdp by continent the code below would help to learn this.

gapminder %>%
        group_by(continent) %>%
        summarize(total_pop=sum(pop), mean_gdp=mean(gdpPercap)) %>%
## # A tibble: 5 x 3
##   continent   total_pop mean_gdp
##   <fct>           <dbl>    <dbl>
## 1 Asia      30507333901    7902.
## 2 Americas   7351438499    7136.
## 3 Africa     6187585961    2194.
## 4 Europe     6181115304   14469.
## 5 Oceania     212992136   18622.

It is also possible to group by more than one column. However, to do this we need to create another categorical variable. We are going to use mutate to create a categorical variable that breaks the data into two parts. Before 1980 and after 1980. Then we will group by country and whether the mean of the gdp was collected before or after 1980. Below is the code

gapminder %>%
        mutate(before_1980=if_else(year < 1980, "yes","no")) %>%
        group_by(country, before_1980) %>%
## # A tibble: 284 x 3
## # Groups:   country [142]
##    country     before_1980 mean_gdp
##    <fct>       <chr>          <dbl>
##  1 Afghanistan no              803.
##  2 Afghanistan yes             803.
##  3 Albania     no             3934.
##  4 Albania     yes            2577.
##  5 Algeria     no             5460.
##  6 Algeria     yes            3392.
##  7 Angola      no             2944.
##  8 Angola      yes            4270.
##  9 Argentina   no             9998.
## 10 Argentina   yes            7913.
## # … with 274 more rows


The top_n function allows you to find the most extreme values when looking at groups. For example, we could find which countries has the highest life expectancy by continent. The answer is below

gapminder %>%
        group_by(continent) %>%
        top_n(1, lifeExp)
## # A tibble: 5 x 6
## # Groups:   continent [5]
##   country   continent  year lifeExp       pop gdpPercap
##   <fct>     <fct>     <int>   <dbl>     <int>     <dbl>
## 1 Australia Oceania    2007    81.2  20434176    34435.
## 2 Canada    Americas   2007    80.7  33390141    36319.
## 3 Iceland   Europe     2007    81.8    301931    36181.
## 4 Japan     Asia       2007    82.6 127467972    31656.
## 5 Reunion   Africa     2007    76.4    798094     7670.

As an example, Japan has the highest life expectancy in Asia. Canada has the highest life expectancy in the Americas. Naturally you are not limited to the top 1. This number can be changed to whatever you want. For example, below we change the number to 3.

gapminder %>%
        group_by(continent) %>%
        top_n(3, lifeExp)
## # A tibble: 15 x 6
## # Groups:   continent [5]
##    country          continent  year lifeExp       pop gdpPercap
##    <fct>            <fct>     <int>   <dbl>     <int>     <dbl>
##  1 Australia        Oceania    2002    80.4  19546792    30688.
##  2 Australia        Oceania    2007    81.2  20434176    34435.
##  3 Canada           Americas   2002    79.8  31902268    33329.
##  4 Canada           Americas   2007    80.7  33390141    36319.
##  5 Costa Rica       Americas   2007    78.8   4133884     9645.
##  6 Hong Kong, China Asia       2007    82.2   6980412    39725.
##  7 Iceland          Europe     2007    81.8    301931    36181.
##  8 Japan            Asia       2002    82   127065841    28605.
##  9 Japan            Asia       2007    82.6 127467972    31656.
## 10 New Zealand      Oceania    2007    80.2   4115771    25185.
## 11 Reunion          Africa     1997    74.8    684810     6072.
## 12 Reunion          Africa     2002    75.7    743981     6316.
## 13 Reunion          Africa     2007    76.4    798094     7670.
## 14 Spain            Europe     2007    80.9  40448191    28821.
## 15 Switzerland      Europe     2007    81.7   7554661    37506.
brown wooden floor

Transform Data with dplyr

In this post, we will be exposed to tools for wrangling and manipulating data in R.

Let’s begin by loading the libraries we will be using. We will use the dplyr package and the gapminder package. dplyr is for manipulating the data and gapminder provides the dataset.


You can look at the data briefly by using a function called “glimpse” as shown below.

## Rows: 1,704
## Columns: 6
## $ country   <fct> "Afghanistan", "Afghanistan", "Afghanistan", "Afghanistan", …
## $ continent <fct> Asia, Asia, Asia, Asia, Asia, Asia, Asia, Asia, Asia, Asia, …
## $ year      <int> 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, …
## $ lifeExp   <dbl> 28.801, 30.332, 31.997, 34.020, 36.088, 38.438, 39.854, 40.8…
## $ pop       <int> 8425333, 9240934, 10267083, 11537966, 13079460, 14880372, 12…
## $ gdpPercap <dbl> 779.4453, 820.8530, 853.1007, 836.1971, 739.9811, 786.1134, …

You can see that we have six columns or variables and over 1700 rows of data. This data provides information about countries and various demographic statistics.


The select function allows you to grab only the variables you want for analysis. This becomes exceptionally important when you have a large number of variables. In our next example, we will select 4 variables from the gapminder dataset. Below is the code to achieve this.

gapminder %>% 
        select(country,continent, pop, lifeExp)
## # A tibble: 1,704 x 4
##    country     continent      pop lifeExp
##    <fct>       <fct>        <int>   <dbl>
##  1 Afghanistan Asia       8425333    28.8
##  2 Afghanistan Asia       9240934    30.3
##  3 Afghanistan Asia      10267083    32.0
##  4 Afghanistan Asia      11537966    34.0
##  5 Afghanistan Asia      13079460    36.1
##  6 Afghanistan Asia      14880372    38.4
##  7 Afghanistan Asia      12881816    39.9
##  8 Afghanistan Asia      13867957    40.8
##  9 Afghanistan Asia      16317921    41.7
## 10 Afghanistan Asia      22227415    41.8
## # … with 1,694 more rows

The strange symbol %>% is called a “pipe” and allows you to continuously build your code. You can also save this information by assigning a name to an object like any other variable in r.

country_data<-gapminder %>% 
        select(country,continent, pop, lifeExp)


The arrange verb sorts your data based on one or more variables. For example, let’s say we want to know which country has the highest population. The code below provides the answer.

country_data %>%
## # A tibble: 1,704 x 4
##    country               continent   pop lifeExp
##    <fct>                 <fct>     <int>   <dbl>
##  1 Sao Tome and Principe Africa    60011    46.5
##  2 Sao Tome and Principe Africa    61325    48.9
##  3 Djibouti              Africa    63149    34.8
##  4 Sao Tome and Principe Africa    65345    51.9
##  5 Sao Tome and Principe Africa    70787    54.4
##  6 Djibouti              Africa    71851    37.3
##  7 Sao Tome and Principe Africa    76595    56.5
##  8 Sao Tome and Principe Africa    86796    58.6
##  9 Djibouti              Africa    89898    39.7
## 10 Sao Tome and Principe Africa    98593    60.4
## # … with 1,694 more rows

To complete this task we had to use the arrange function and place the name of the variable we want to sort by inside the parentheses. However, this is not exactly what we want. What we have found is the countries with the smallest population. To sort from largest to smallest you must use the desc function as well and this is shown below.

country_data %>%
## # A tibble: 1,704 x 4
##    country continent        pop lifeExp
##    <fct>   <fct>          <int>   <dbl>
##  1 China   Asia      1318683096    73.0
##  2 China   Asia      1280400000    72.0
##  3 China   Asia      1230075000    70.4
##  4 China   Asia      1164970000    68.7
##  5 India   Asia      1110396331    64.7
##  6 China   Asia      1084035000    67.3
##  7 India   Asia      1034172547    62.9
##  8 China   Asia      1000281000    65.5
##  9 India   Asia       959000000    61.8
## 10 China   Asia       943455000    64.0
## # … with 1,694 more rows

Now, this is what we want. China claims several of the top spots. The reason a country is on the list more than once is that the data was collected several different years.


The filter function is used to obtain only specific values that meet the criteria. For example, what if we want to know the population of only India in descending order. Below is the code for how to do this.

country_data %>%
        arrange(desc(pop)) %>%
## # A tibble: 12 x 4
##    country continent        pop lifeExp
##    <fct>   <fct>          <int>   <dbl>
##  1 India   Asia      1110396331    64.7
##  2 India   Asia      1034172547    62.9
##  3 India   Asia       959000000    61.8
##  4 India   Asia       872000000    60.2
##  5 India   Asia       788000000    58.6
##  6 India   Asia       708000000    56.6
##  7 India   Asia       634000000    54.2
##  8 India   Asia       567000000    50.7
##  9 India   Asia       506000000    47.2
## 10 India   Asia       454000000    43.6
## 11 India   Asia       409000000    40.2
## 12 India   Asia       372000000    37.4

Now we have only data that relates to India. All we did was include one more pipe and the filter function. We had to tell R which country by placing the information above in the parentheses.

filter is not limited to text searches. You can also search based on numerical values. For example, what if we only want countries with a life expectancy of 81 or higher

country_data %>%
        arrange(desc(pop)) %>%
        filter(lifeExp >= 81)
## # A tibble: 7 x 4
##   country          continent       pop lifeExp
##   <fct>            <fct>         <int>   <dbl>
## 1 Japan            Asia      127467972    82.6
## 2 Japan            Asia      127065841    82  
## 3 Australia        Oceania    20434176    81.2
## 4 Switzerland      Europe      7554661    81.7
## 5 Hong Kong, China Asia        6980412    82.2
## 6 Hong Kong, China Asia        6762476    81.5
## 7 Iceland          Europe       301931    81.8

You can see the results for yourself. It is also possible to combine multiply conditions for whatever functions are involved. For example, if I want to arrange my data by population and country while also filtering it by a population greater than 100,000,000,000 and with a life expectancy of less than 45. This is shown below

country_data %>%
        arrange(desc(pop, country)) %>%
        filter(pop>100000000, lifeExp<45)
## # A tibble: 5 x 4
##   country continent       pop lifeExp
##   <fct>   <fct>         <int>   <dbl>
## 1 China   Asia      665770000    44.5
## 2 China   Asia      556263527    44  
## 3 India   Asia      454000000    43.6
## 4 India   Asia      409000000    40.2
## 5 India   Asia      372000000    37.4


The mutate function is for manipulating variables and creating new ones. For example, the gdpPercap variable is highly skewed. We can create a variable of gdpercap that is the log of this variable. Using the log will help the data to assume the characteristics of a normal distribution. Below is the code for this.

gapminder %>% 
        select(country,continent, pop, gdpPercap) %>%
## # A tibble: 1,704 x 5
##    country     continent      pop gdpPercap log_gdp
##    <fct>       <fct>        <int>     <dbl>   <dbl>
##  1 Afghanistan Asia       8425333      779.    6.66
##  2 Afghanistan Asia       9240934      821.    6.71
##  3 Afghanistan Asia      10267083      853.    6.75
##  4 Afghanistan Asia      11537966      836.    6.73
##  5 Afghanistan Asia      13079460      740.    6.61
##  6 Afghanistan Asia      14880372      786.    6.67
##  7 Afghanistan Asia      12881816      978.    6.89
##  8 Afghanistan Asia      13867957      852.    6.75
##  9 Afghanistan Asia      16317921      649.    6.48
## 10 Afghanistan Asia      22227415      635.    6.45
## # … with 1,694 more rows

In the code above we had to select our variables again and then we create the new variable “log_gdp”. This new variable appears all the way to the right in the dataset. Naturally, we can extend our code by using our new variable in other functions as shown below.


This post was longer than normal but several practical things were learned. You now know some basic techniques for wrangling data using the dplyr package in R.

tax documents on the table

Types of Government

In this post, we will look at different types of government.


Anarchy is defined as an absence of government. In practice, anarchies are for the short-term because eventually, from the chaos of a lack of government comes some sort of structure, whether it’s a dictator or king or some other form of government. There is always some ambitious, strong man looking to fill a power vacuum in a place of chaos.

Often after revolutions, there is a state of anarchy. The French Revolution was one example of chaos being the order until Robespierre came to power. The Russian Revolution of the early 20th century is yet another example. In both examples, there was a short period of chaos followed by a strong totalitarian reaction.


Monarchy is a government in which one person is in charge until they die or give up power. Often, the role of a monarch is hereditary but necessarily always. There is also a common claim of divine or supernatural approval. This was often the case in Europe, where monarchs frequently courted papal approval of their rule.


There are generally two types of monarchs. Absolute monarchs have complete power to do as they see fit. This still of government is rare because people generally do not appreciate being under the whim of anybody to such a degree. Many kings from medieval Europe were absolute monarchs.

The challenge of being an absolute monarch is not when things are going well. When there is peace and everybody is happy, the monarch gets all the credit because they are absolutely in charge. However, when things fall apart, the monarch also gets all the blame because they are absolutely in charge.

In addition, people, whether a monarch or not, can be capricious and unpredictable. If the monarch shows inconsistencies or weaknesses, people may try to remove them to protect themselves and their gains within the country. For example, Henry VI of England was removed several times because of the weakness of his character and mental instability. In other words, having this level of power is not as great as it seems.

Another form of monarchy is a constitutional monarchy. In this form of government, the monarch’s power is limited by the constitution. You would think that having a constitution limiting a monarch’s power would irritate them, and it has in some instances. However, the benefit of a constitution is that giving up some power can help a monarch stay in the position of privilege that they have because everything that goes wrong is not completely their fault. Many monarchies today are constitutional monarchies such as Great Britain, and often these monarchs are above politics, which makes it difficult to complain about them as they stay out of governmental decision-making for the most part.

However, even giving up power can lead to a monarchy being removed. Louis XVI of France and Czar Nicholas II of Russia both made reforms before being overthrown. On the other hand, the British monarchy has been stable for decades. therefore, there is no single strategy that can protect a government


Oligarch is government by a small elite. OFten these elites are rather sneaky and work behind the scenes. One reason for this is they do not want to be held responsible if something goes wrong. AS such, it is hard to tell when a country’s government is an oligarchy.

Members of an oligarchy tend to excel at one aspect of society or another. For example, they may be wealthy businessmen, military strongmen, or clergy members. Due to its mysterious nature, it is difficult for others to rise to membership in this exclusive and secretive club.


Dictatorship is power held by a single person. A dictator is different from a monarch because their power is not hereditary, and dictators often arise from a revolution to overthrow another government, so they avoid the word king even if they have the same powers. In other words, they are a king, but that word is not socially acceptable.

Dictators are normally charismatic leaders who rise to power on the back of the people. Once in place, they are looking to find ways to stay in power and are often worst than the people they overthrew. Pol pot of Cambodia killed millions of his own people, Hitler of Germany killed millions of Jews, Idi Amin ran his country into the ground. Each of these totalitarian dictators sought to control as much of the lives of the people under them as they could.


The most popular form of government is democracy. Democracy involves giving all citizens an equal voice in the government. These citizens then elect leaders to represent their interest in the government. In practice, this sounds great, but sometimes it can be frustrating.

People looking for a positi0n of power know that perception is more important than truth. As a result, it is common for politicians in democracies to try and find ways to manipulate their constituencies. Outlandish claims are made in the media; overt and covert lying occurs. All this is done in the name of democracy.

However, this only happens because the citizens often neglect to educate themselves about what is going on. Therefore, people cast votes for controversial topics they have not thoroughly investigated. The point here is not to criticize any position but to wonder if people have really thought about the position they support instead of the one they do not support.


Every form of government has its strengths and weaknesses. Therefore, there is no real benefit in raising one form over another. This is because governments are built upon people. If the people or not good, it doesn’t matter how good the government is.

crop laboratory technician examining interaction of chemicals in practical test modern lab

Moles in Chemistry


In this post we will have a brief introduction to moles in chemistry. This fundamental concepts is a part of Stoichiometry which is another important aspect of chemistry.

In chemistry an atomic mass unit (amu) is the mass of a proton or neutron in an atom. This number has been calculated to be.

1.66 X 10-24 g

Knowing this number we can calculate how much a single atom weighs. For example, if we want to calculate the weight in grams of oxygen, we know know that helium has an atomic weight of 4. This means that

The amu cancel each other. This number becomes important because if we take the amu of 1 atom of helium (or any element) in grams and divide by the mass of one atom in grams we get the following number no mattter which element we use.

This number above is how many atoms in 4 grams of helium. This number is called Avogadro’s constant but it also referred to as a mole. Knowing this value, it is possible to calculate the mass of single mole of a molecule. For example, if we want to know the mass of a single mole of glucose we would calculate the amu as shown below.

The mass is as follows

Element# of AtomsamuTotal
Carbon 612.0172.06
Total = 180.18 amu

This output tell us that one mole of glucose is 180.18 grams. We can use this information in other ways such as determining how many moles are in a certain number of grams of a substance. If we have 15 grams of magnesium chloride MgCl2. We can calculate how many moles are in this substance as shown below

Step 1 Calculate the amu of the molecule

Mass of MgCl2 = 24.31 amu + 2 * (35.45 amu) = 95.21 amu

Step 2 Determine Conversion Reltionship

1 Mole of MgCl2 = 95.21 grams MgCl2

Step 3 Convert from grams to Moles

We now know that there are about 0.158 moles in 15 grams of magnesium chloride. But we could take this a step further by determining how many molecules are in 15 grams of magnesium chloride as shown below

0.158 * 6.02 * 1023 = 9.84 * 1022

The first number is the number of moles in 15 grams of magnesium chloride and and the second number is one mole.

There are many variations on the calculations that were done here but this is enough to serve as an introduction.

gray concrete building

Authority Types

Various countries and governments have developed different forms of authority to maintain power and stability. This post will look at three common forms of authority found throughout the world.

Traditional Authority

As its name implies, traditional authority relies on tradition to maintain its power. Examples of traditional authority usually include monarchies such as those found in Europe at one time. People support the leader because this support has been given for a long time.

The actual leader often does not have power beyond people’s respect for them. The leader can often have a figurehead-type status while others exercise overt power. For example, it is common in many countries with traditional authority to have the monarch avoid politics and serve a ceremonial role.


A variation of traditional authority is called patrimonialism. Patrimonialism is a strong-man character who has a strong administration and military support. Some may see this as a form of military-backed dictatorship. The people under the supreme leader only have their privileges through their obedience and loyalty to the supreme leader.

Charismatic Authority

Charismatic authority generally involves an individual who gains power through the strength of their personality more than on any other single reason. Often this will happen during a time of crisis in which people are looking for help and or protection. One example of this would be Napolean Bonaparte, who rose to power in France after the French Revolution.

However, charismatic leaders often do not last long. There may be several reasons for this. The crisis may worsen, the leader’s shortcomings become more apparent over time, or someone even more popular arises to threaten the leader. These are not the only reasons, but they play a part in the demise of charismatic leaders. For example, Napolean’s shortcomings as a general were the primary reason for his downfall. Though one of the greatest generals ever, he was not perfect, and often leaders are expected to never fail.

Rational-Legal Authority

Rational-legal authority emphasizes laws, rules, regulations, and the office of authority rather than the individual person. Countries with constitutions are often inspired by rational-legal authority. For example, the United States is a strong example of rational-legal authority. They have a constitution and a new president every 4 to 8 years. The power lies within the office, and there is no idea of a single absolute authority but rather an emphasis on “we the people.”

With the focus on laws, all the lawmakers have to do is make illegal things legal and legal things illegal, and there will not be as much push-back from the people because they believe in the rule of law. Examples of this from the United States can include any controversial topic such as sexuality, taxes, reproductive rights, etc. Each of these examples involves actions that were legal, then illegal, or vice versa. In summary, whoever defines the laws appears to have the power in a rational-legal framework.


Countries require leadership, and leaders can have various forms of authority. The examples provided here are just some of the commonly seen options. Naturally, it would be an oversimplification to think that leaders and countries could not mix the examples above. For example, Cesar was charismatic and spent a lot of time passing various laws. The real point here is to be aware of these various styles.