Project Euler

Lately I’ve been thinking about what I wanted to do with an honors class I am teaching in the fall. The three things you can give a student that will help them most in the future are: good communication skills (make them write, make them give presentations), programming skills, and work on decent-sized projects that go beyond the routine weekly homework. These are discussed in this Washington Post article: Starting College? Here’s how to graduate with a job.

I’m getting burned out on teaching large projects and lots of writing. That’s not appropriate for this class anyhow. But I could throw in some programming problems. And we might do a small project with some writing/presentation. Or we might not! #1 Rule for the Moment: take it easy on yourself, Dr. Jinx. You have a lot of irons in the fire, and you work too hard.

One of my students recently pointed me to the Project Euler (http://projecteuler.net) website, which is a compendium of nice problems requiring programming and basic mathematics to solve. I am sure friends into math and programming have mentioned this site to me in the past, but I didn’t have the motivation to go check it out.

There are several small problems early on the site that I can use for my students. Then they get more interesting/harder. What I wasn’t expecting was how much fun I would have solving these.

I’m 21 problems in. The problems are getting harder. I am building a small library of general-purpose tools to make solving them easier.

I worked in software for 10 years, and when I got out, I questioned myself on many counts. Did I really like doing math, or was I just sucked in because I was one of the few women who could, and I seemed to be reasonably good at it? Did I really like programming, or did I just get sucked into it, too? While it seems possible that other paths might have been good ones for me, it also seems that I got a first-hand look on how environment can deeply effect your enjoyment of things. A poisonous environment can cause you to start to dislike and feel incompetent at activities that you are actually reasonably competent at and enjoy.

The number one advice I tend to have for students is to find people and environments that make them feel good about themselves and spend more time in them. I wish I had gotten and taken that advice myself.

Whether you are a supervisor or a teacher or a Ph.D. advisor, good advice to keep in mind is to put some thought into keeping the environment supportive and healthy. While yes, whatever you are doing is work, if you can make work fun, you win. Your employees and students will work hard and happily for you in that case.

Pool Party

What are you doing on a Friday night? I accompanied my REU students1 to a pool and pizza party hosted at the campus Recreation center outdoor pool. Aside from the two organizers from Honors and Undergraduate Research, I think I was the only faculty member there.

Sad news was shared that an REU student collapsed and died on Wednesday evening. One of my students met him and was surprised by the news. I still remember when I heard that one of my martial arts classmates had passed away suddenly and unexpectedly, the shocky sense of loss, even though I didn’t know him well. Walking around feeling weird about it for a few days. I was away at a conference; I didn’t even get to mourn with my classmates.

After carting my swimsuit and towel around all day, I was going to swim before heading home. I only got through one lap before getting tired. I did five, then I got out to dry off and watch what my “kids” were up to. To my surprise, I got picked for one of their water polo teams. It felt good to be wanted and maybe even a wee bit treasured, since I was “faculty, SCORE!” when my group outed me. How could I resist?

I didn’t know the rules, but I don’t think I was alone in that. I sure don’t throw or catch well, but a game is fun when everyone is a good sport. Mistakes were laughed off, and victories were congratulated. I had fun despite my inadequacies. They were still going strong when I left.

A friend posted from a speech about leadership on Facebook, “Take care of your people, and your people will take care of you.”

I kept thinking back to our Math Movie Night movie from last night, Stand and Deliver, about Jaime Escalante and how he got his students through the AP calculus exam. At one point, discouraged, he talks about getting a job with better pay and more respect. Jaime Escalante’s wife reminds, “But Jaime, those kids love you.”

While you can’t go into teaching wanting to be loved by your students — that will happen or not as the case may be — you have to go into teaching with a lot of love for your students. Every. Single. Day. No matter what else is going on in your life. The students might learn anyhow, even if you don’t care. They’ll learn a hell of a lot more if you do.

Another quote from the speech on leadership, “The 4 KNOWS: Know yourself; know your people; know your job; know your priorities.”

That’s what I’m thinking about tonight.

1. Research Experiences for Undergraduates, an NSF funded program to get students (especially women and minorities) primary from 4 year colleges without big research programs involved in research. In reality, a lot of the students involved are from big research institutions and few are minorities! At least more than half of our students are female.

Birthday

Today is my birthday. I’m at the age where I do not not want to be another year older. My next major birthday (fortunately still a few years off) is 50. Note to self: isn’t it interesting how I feel absolutely obligated to include the information that 50 is still a few years off? Don’t want anyone thinking I am any older than I am, like that is some kind of failing!

I am not ready to be 50…. there’s a little screamy part inside me that says I am not *ever* going to be ready to be 50. I think that most people feel this way, and we are all really good at not talking about it.

We are good at joking about it. “Sure beats the alternative.” “Inside every older person is a younger person wondering what-in-the-hell happened?” “Getting old is not for sissies.”

It is completely mind-boggling to be older for reasons I can’t fully explain. Somehow when you are 20 or 25 you never think you will get to 40. Recently I discovered, that you get to 40, and you somehow think you are never going to get past 40! Just like when you are 6 you think you will never be 10. It scares me…. but sure beats the alternative, right? Sometimes I wish I could talk about it, but even here, I am afraid.

I had a self-pity party this morning, just feeling funky and out-of-sorts. One thing I am struggling with is the lack of a family and being alone. It is hard realize that these are things I am never going to get. There are compensations; I am free to do many things others are too tied down to do. I visit more friends. I spend more time with students. I can do more travel when the opportunity arises.

Before I start complaining about life not being fair, I think to myself that I don’t live in Saudi Arabia, Sierra Leone, Iraq, or Afghanistan — even if things are unfair, I have it pretty good. The trick of it is to want the life you have, rather than to spend your energy wanting what you can’t have. But if that was easy, no one would be taking anti-depressants.

In the midst of this, I got a call from one of my REU students (just arrived yesterday). He was feeling sick and needed a trip to the doctor. I could do some complaining about having to be on call my birthday weekend, but you know what? I am actually happy to do that. I know it wasn’t a big thing, but he had someone to call and ask for help. Someone who was happy to come and help.

While he was seeing the doctor, I headed out to get some lunch. I found an electrical outlet, and I plugged in my e-reader which was low on charge. I sat down nearby, but not right next to it. My lunch didn’t arrive and didn’t arrive … I was worried my student would get done with the doctor and call. I finally asked about my food, and it was forgotten. They ended up comping it for me, so I got lunch for free my birthday. There’s one thing to be grateful for.

Turns out one of the two people who ended up sitting next to my e-reader was one of my business math students from Spring 2012 and her Mom. I taught a class of 300 that semester, and sadly I didn’t recognize her. There were too many faces in that sea of students for me to recognize them all. She recognized me, and she and Mom took time to tell me that she enjoyed my class and recommended me (as a teacher) to her friends. Even though that class was a monster with 300 people, this says I was successful at making it a human environment, rather than a dehumanizing environment. That’s something worth being proud of.

I don’t have a family, but I do have a lot of good friends. I have students to take care of. I have a lot of people in my life that look out for me.

I am not a well-respected scientist with a national reputation, but I am, perhaps, a much-loved and much-respected teacher in my corner of the world. I make a difference for many students, sometimes when I don’t even realize it. That’s something to be proud of too.

No, this is not the life I thought I wanted, but maybe I should be — and am — grateful for the one I have.

Meta-Meta-Writing

I submitted a paper om my mathematical modeling class to a special issue of PRIMUS: Problems, Resources and Issues in Mathematics Undergraduate Studies. The special issue is on writing and editing in mathematics classes, especially if it is something other than proof-writing, which is exactly what I do.

I was thinking I would write a 10 page paper. My first draft was 14 pages. I had 20 after a week worth of feedback and editing. I was cutting stuff out every place I could!

I was writing about writing, or meta-writing, and I did my best (after some feedback) to stick to writing about the writing and editing in the course. What I do, why I do it, what students should be learning from it. How the topic of mathematical modeling demands it. It is strange to realize how many considerations go in to each major assignment for the course; I didn’t capture even half of it. If I were to try to really put it all in there, I would have a book! Maybe I could write a book about mathematical modeling … or about teaching mathematical modeling.

As a teacher of writing, and one with ambitions to avoid hypocrisy, I had to follow the advice I give to my students. All-in-all, I decided that it is pretty good advice. While I put off getting started on the paper all semester long (not good), I still had about 3 weeks to work on the paper before it had to be handed in (good enough). I wrote almost every day, even just a little bit, writing at least several times a week. I had a first draft done on Monday. I needed to hand the final in on Friday. I sent it to several friends/colleagues and got feedback. Thank you, friends and colleagues who were able to find time to offer feedback. Thank you too, to those who didn’t find time — I didn’t have time to deal with any more comments! I thought about what the comments, and I worked on what I could. I think I ended with a stronger paper than I started with. I fricking hope so! I was up past midnight on Thursday working on it. Friday I read the whole thing out loud to myself in my office. I, indeed, caught a lot of spelling/grammar/sentence structure errors that way. Around noon I was at a point of fixing those last errors and handing it in. So I did.

Now I have to cross those fingers and hope that the trip through peer-review is not too bumpy.

I did it. Toward the end of the semester, I doubted I would get this done. But I did get it done. How did I eat that elephant? As advised, one bite at a time.

Final Portfolios

My final portfolio assignment (this semester; fourth revision, fourth time I’ve taught the course) for the mathematical modeling course is to

  1. Identify and include an excellent piece of mathematical writing you did this semester; alternatively select a piece of writing that posed a substantial challenge to you this semester. The writing sample should be between one and two pages long (not including figures).
  2. Select some Matlab code you feel represents one of your best e fforts at
    using Matlab in one of our modeling projects OR select one to three graphs that you feel represent your best eff orts at demonstrating the behavior of a mathematical model.
  3. Letter to Dr.Jinx: Write a 1000-1500 word (2-3 page) letter to me
    discussing what you learned in this course. You should include thoughts on
    your writing sample and on the code or graph sample you are including in this
    portfolio.
  4. Letter to a friend taking the course next semester: Suppose a friend
    of yours is taking this course next semester. What advice would you give your
    friend to insure his/her success with this course? What study habits, writing
    habits, programming habits helped you the most? Make your advice as specifi c
    as possible, and give examples from your experience this semester. Your letter
    should be at least 400 words long (1 page).

I am giving myself a solid A in final portfolio assignments. I did it right this time. It helps that I managed the class well; I really concentrated on making a good learning environment (and trusting that if I did that, gave meaningful assignments, and sufficient assistance, that learning would occur).

I have loved reading the letters. I’ve teared up a few times. There many excerpts and quotes that I want to share. Note: these are excerpted and lightly edited (spelling, grammar) unless otherwise indicated. I am only taking excerpts that show deep learning in some aspect of the course.

  • “I knew what I wanted from the course: to be able to use the programming skills I learned as a computer science major in a mathematical setting. To this end, I cannot say that I was disappointed. But when I reflect on what I learned this semester, programming is not one of the things that comes to mind. … The primary thing I believe I learned from this course is the process of mathematical modeling as a whole. … I was fascinated by the entire process … I learned that, at the heart of it, math modeling had very little to do with specific areas of mathematics or programming; it is about representing the real world with the tools you have.”
  • ” … In every other math class I had taken, the answers were solid and concrete. … But in modeling, the process of arriving at the results was more important than the results themselves.”
  • “In terms of the actual mathematical model involved, the first project was my favorite. I really liked how the concept of chaos applied to weather. … This project helped me understand why it is actually impossible to predict the weather. As we were working on this project, I wondered if chaos theory could be applied to small scale wind patterns that are extremely important for competitive sailing. I found all of the same sailing strategy articles I have already seen and studied. As a side note, I watched the original Jurassic Park in 3D when it was re-released and was very amused when Dr. Ian Malcolm constantly rambled about chaos theory. When I fi rst watched the movie some years ago I had no idea what he was talking about.”
  • “I am most proud of learning to use Matlab during your class. As a freshmen taking Calculus II, I struggled to finish the Matlab exercises and by the end of the class I hated Matlab. I had taken no programming classes before coming to Texas A&M, so I just did not have the programming mindset. After three and a half years of classes, I have done some programming and learned the basic elements of coding. Taking Linear Algebra also helped a lot. When you said that Matlab actually stood for `matrix’ laboratory instead of mathematics laboratory as I had assumed, I immediately understood better why I struggled so much as a freshmen. Through your class I came to enjoy using Matlab and appreciate its usefulness in many applications.”
  • “With that said, I would like to talk about what I learned about writing during this semester. While I am an English major and consider myself to be a very good writer, this class did pose a challenge to me. I am so accustomed to
    writing papers over literary works, such as Shakespeare, that I have developed a method for analyzing something and then determining what it is I want to say and how I should say it. However, mathematics is a long way from Shakespeare and I had to reformulate my analytic approach to my writing. I certainly took more time to understand what was going on in any given situation and took a much longer time in developing my thoughts before ever putting them down on paper. This class helped me develop this di fferent approach and I feel that I am a much better writer than I was before. Discussing mathematics is not a very simple task and I feel that this class has better prepared me to do so in the future.”
  • “In my final project, it was gratifying to be able to take what I had learned so far and use it to understand an entirely new and much more complicated mathematical model than I had ever worked with before. I was excited to be able to read and understand a fairily dense scientific paper and make connections with many of the topics and models we had discussed throughout the earlier part of the semester. Wrestling with understanding the bifurcation diagram in the Kirschner and Panetta [1998] paper was also a great learning experience. It forced me to more carefully scrutinize the authors’ explanations of the model and graphs they produced, which in turn really helped me with deciding what needed to go into my report. The understanding I gained through this process is reflected in the writing sample I chose to include in this portfolio.”
  • “The final project is where everything got interesting. The idea of providing the prices of a set of stocks as input and getting back an optimal portfolio seemed really attractive compared to the rest of the projects. While programming the Efficient Portfolio Frontier on Matlab, I started getting frustrated by the constraints of only having five different companies and the need of typing each price if I wanted another one. I decided to automate the process and use Python since I am familiar with it. … Other than math modeling, this course taught me valuable lessons. One was that I don’t need to be an expert on a topic to do good work on a topic; you only need dedication and perseverance. I really enjoyed working on the EPF. I even worked on it for two extra-curricular events: a one-night Hackathon and I presented it on 3 Day Startup as a business idea. It was really interesting to hear people’s suggestions, there were even some that approached me saying that I should keep working on it.” (Note from Dr. Jinx: Holy crap! I am impressed.)

That is nowhere close to all of them, although it is some of the best of them.

Look at all the deep learning expressed here. I got to help with that. I love my job!

Little slips of paper

I wrote earlier about my plan for the final presentations. I handed small pieces of scratch paper out to my students, and I tasked them with writing down the things the presenter did well, and any questions they had. I was already pleased with the results.

How could I not be pleased when they had questions to ask at the end of presentations? They had plenty of nice things to say to the presenters. It was easy to get the conversation started.

This is what one student wrote in his a final portfolio letter to me about what he learned in the class:

My favorite moment from the semester came after my Final Project presentation. … After my presentation, I was really down on myself. I got very nervous while presenting, missed points that I wanted to make, failed to answer questions that I knew the answer to, and on top of this I had gotten very little sleep the night before. When I got back to my seat, the little slips of paper were sitting there. Reading them absolutely turned my day around. While I cannot pinpoint an exact lesson I learned here, I can tell you that I really appreciate all of the effort you took to make this class a positive and enjoyable environment for everyone. I learned that a professor that really cares about creating a welcoming environment can make all the difference.

Am I ever glad I ran that experiment.

Endings

All good things must come to an end.

My life has been full of endings lately. I’ve told some friends privately about the wrap-up to my disastrous interview, but not everyone. If you are a friend reading this here, and I didn’t contact you, please forgive me. It hasn’t been easy to talk about, and this was not appropriate fodder for an emotional Facebook post. May I even make a request? If you are a personal friend and you want to say something to me about this that alludes to the actual real-life people involved as opposed to a general wisdom or insight on the situation as I’ve written about it here, please make it a private message, rather than a comment.

Here are the background links on the situation:

  1. What’s an Excellent Teacher (non-tenure track) worth?
  2. Survived
  3. Rebuttal

Thank you to all who took the time to comment, and, in several cases, discuss the situation and how it might be handled with me in depth. The wrap-up was that the relationship with my significant other has been difficult for a while now. Perhaps that was the main reason he was reluctant to go to bat for me or to even negotiate even a delay of his start date with this university. That ended the relationship. In some ways this has been very hard. In some ways it has been very easy. I am angry with him for not even giving a token protest over the way I was treated, when he was the reason that I was in that situation in the first place. That is absolutely unconscionable in my mind. That speaks, too, to the difficulties in the relationship predating these events.

Endings are always hard for me. This is no exception, but thus far, I think this time I’m earning an A in breaking up. There is no turning back. There is no fixing this. Nothing to do but face what is and move forward. I’ve been taking very good care of myself. Exercise. Good food. I like having nuts in the house and on my salads again. I’ve reconnected with friends that I haven’t seen in a while. I’ve tried some new things. I’ve asked for help, and I’ve gotten help. I’ve had some bad days, but I’ve also been surprised to have quite a few good days. It is nice when someone else’s mess moves out of your house, and the only ones you have to deal with are your own. And, my gosh, it is nice to realize that so many people care about me.


* * *

Second, the semester comes to an end. I am glad to get done with the grading, but I am also sad to realize I won’t see most of my students again. Our final class meeting was last Friday for the final exam, which, for my class, is the remainder of the project presentations and pizza. And then a wrap-up.

I was pleased that one of my faculty colleagues came and stayed for the entire class period, even participating in writing out the good points of the presentation on the slips of paper for my students. Another came as long as she could.

The presentations were all good this semester. One or two wobbles here and there, but that’s to be expected. The students all gave competent professional presentations geared toward an audience of non-experts.

I asked the students what they learned. A lot of LaTeX and Matlab, which is always to be expected. A student even said something like, “I never would have believed this at the beginning of the semester, but I will use LaTeX in the future. It is a good tool.” Time management and how to approach projects. I think someone even mentioned the steps in mathematical modeling, in particular, making assumptions and simplifying when approaching a problem.

I teared up trying to do my wrap-up. I told them that having many students from prior semester taking the course is always an honor, especially since this is a purely elective class. Waking up a student with the line “Now we are going to talk about sex.” Working with students on LaTeX and Matlab. Listening to students do peer review and thinking, “This is really going all right.” The excitement of seeing the final projects come together.

Last, I gave them a few things that I wanted them to take from the course that don’t have all that much to do with mathematical modeling.

First, from the Efficient Portfolio Frontier, pay yourself first. Once you are out of school and start working, take money out of your paycheck before it hits your checking account and put it away for savings and investment. Pay yourself before you pay anyone else. Save for a rainy day. I told them how having savings saved me from worry when I needed to quit my software job without having figured out what I was going to do next.

Second, writing is a skill. Practice and you will improve. You can do it.

Third, you will be a different person at 40 than you were at 20. Your life will have high points, but it will also have some real defeats. Keep your honor, grace, integrity through it, and you will get through it.

I should have told them something that always comforts me when things go really wrong. Your worst moments will always end up being your best stories. Once they stop hurting so much.

Last, if you have the opportunity to do a kindness, take it. You will regret hard words you said to someone else. The kindnesses you will be able to hold close to your heart when things go wrong. You will regret the times you passed up an opportunity to do or to say something kind. So don’t pass them up. When you see them, take the opportunity.

This certainly relates to my thinking on the first item discussed in this post and my regrets.

My students did take the opportunity to say kind things in those final portfolios. About me and about each other. I am looking forward to sharing some highlights with you.

Suckitude

The beginning of finals week is always a period of great unhappiness and stress.

Students look at their grades, seemingly for the first time, and ask instructors to magically save them from the consequences of prior inaction.

Instructors are trying to juggle getting exams prepared with answering last minute questions from students.

Instructors pay for every little delay they’ve made in preparing their grade book.

Departmental administration and college-level administration have to deal with the onslaught of complaints from students about their unfair instructors who are not magically saving them from the consequences of prior inaction. Scheduling stress too, as projections for the fall entering class come in. Sometimes that stress trickles down in, say, my direction.

Not that I should complain too much. I am relatively well-off this end-of-the-semester. I don’t give a final. My students hand in a final portfolio, so yes, I will have some writing to grade, but the portfolio description has been prepared since the beginning of the semester; I didn’t have to write that this week. It isn’t like my students need a lot of help in preparing a final portfolio. I only had four visitors today, and I answered questions on our discussion board.

Mostly for the past two days, I’ve been working on things for our REU (Research Experiences for Undergraduates) program which starts on June 1, and catching up with some students and colleagues that I haven’t had time for in a while.

Tomorrow during my “final exam” I will finish out the class’s project presentations. We will have pizza, since the exam period is from 12:30 to 2:30 pm, which will be paid by the bursary I earned by doing the first-year seminar class in the fall. Some presentations will be good. Some presentations will be slightly less awesome. The pizza should be delicious.

I hope a few instructor-friends will show up for some pizza and to watch a few presentations. I am looking forward to the end of this semester. My classes were good; my careful attention on keeping it positive made a difference. Aside from that, it was a very difficult semester.

Public Service Announcement

Link

Dear Students,

If you are going to come complain to me about your grades, please do the following first.

  1. Read the syllabus for the course so that you know how you are actually being graded.
  2. Remember that if you don’t like the policies in the syllabus that you could have dropped my course during the first week. Now you are going to have to live with them.
  3. This applies, in particular, to the late work policy … and any other policy you may not like very much right now.
  4. Look at the comments I made on your paper that explain the reasons for your grade before you start arguing with me about why it should be higher.
  5. Remember that if I made a mistake, I will always be happy to fix it.
  6. Remember that I get a lot of complaints about grades at this time of the semester, and this gets really old really fast.
  7. Remember that being a pain in my ass is not going to improve your score.
  8. Last, keep in mind, I don’t give grades. I report what happened. You earn what you get; no freebies.

To those of you who accept your grades with grace and dignity, even though the outcome may not have been what you were hoping for, thank you. I hope you know I may not have wanted to record that grade any more than you wanted to earn it, and I am grateful to not have to argue with you about it too.

Sincerely,

Dr. Jinx

Believe that they are all worthwhile

I wrote this after a conversation with a colleague that bothered me. This was probably a year or more ago. I never sent this. Honestly, I don’t think it would have been well-received. I ran across it again today. Rather than throw it out, here it is.

I think this goes well in partnership with this other blog post: http://smallpondscience.com/2013/04/23/student-quality/
—————————————————-

Hi Colleague,

I couldn’t help thinking further on our conversation from yesterday. What I heard, and perhaps I misunderstood, was a lot of categorizing students into boxes. I think it is easy to put human beings into neat little boxes, especially when we are frustrated. These students are good. These students are bad, and they aren’t worth my effort.

If we can’t walk into a classroom with the belief that they are all good, all worthy, all human, then I think we’ve failed our first and most important job as instructors. Not every student is great at math. That doesn’t mean that they aren’t worthy human beings. And it often doesn’t even mean that they aren’t trying, even though we all know that some aren’t.

They are all incredibly young, and their mission here is to figure out what it is they have to give the world. Maybe it’s math. Maybe it’s not. But I have something important to teach them whether it’s math or it’s not. Sometimes it is how to try harder. Sometimes it is how to study smarter. Sometimes it is no matter what their struggles with math are, that they are valuable human beings. Sometimes it is that actions have consequences.

If I go into it with the true belief deep in my heart that they are all worthwhile, I better open the door for them to learn, whether they are gifted and hardworking or not. If I walk in with the attitude that many (or all) are worthless, then I shut the door for the learning; my attitude itself discourages my students’ best effort.

That doesn’t mean that I don’t find some students absolutely maddening and infuriating and lazy. I’m teaching a 300 person business mathematics class; that leaves me ample opportunity to get angry and frustrated. But I sincerely hope that even if I get angry and frustrated, that I still see them as worthy and capable of doing better than whatever it is they just showed me.

From our conversation yesterday, this is not what I was hearing. Maybe I misunderstood. Maybe you were having a bad day. But I hope that this is what you try to bring to your students — all of them — because I think that they and you are worth the effort.

I was terrified of that business mathematics class; of it being an unending battle in a hostile, math-hating environment. Like I said, there are students that irritate me, but overall, I would say, the concern and warmth I have brought to them has been returned by them. And that is a gift for me and for them.

Best,

Dr. Jinx